slidev icon indicating copy to clipboard operation
slidev copied to clipboard

Frontmatter formatting errors with Stackblitz Editor on https://sli.dev/new

Open normal-coder opened this issue 1 year ago • 1 comments

Describe the bug

Frontmatter formatting for multi-section Markdown is flawed at https://sli.dev/new.

Suggest adding a .prettierrc configuration to the template to avoid.

Minimal reproduction

  1. Use https://sli.dev/new to initialize Slides
  2. Write multi-section Markdown slides, including the following content:
... content ...

---
level: 2
---

... content ...
  1. Save the document. Stackblitz’s editor will force format the document, causing the document to become:
... content ...

---

## level: 2

... content ...

Environment

  • Slidev version: latest
  • Browser: irrelevant
  • OS: irrelevant

normal-coder avatar Oct 25 '24 13:10 normal-coder

Adding a .prettierrc to the stackblitz project does not fix this

kermanx avatar Nov 10 '24 08:11 kermanx