slidev
slidev copied to clipboard
Frontmatter formatting errors with Stackblitz Editor on https://sli.dev/new
Describe the bug
Frontmatter formatting for multi-section Markdown is flawed at https://sli.dev/new.
Suggest adding a
.prettierrcconfiguration to the template to avoid.
Minimal reproduction
- Use https://sli.dev/new to initialize Slides
- Write multi-section Markdown slides, including the following content:
... content ...
---
level: 2
---
... content ...
- 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
Adding a .prettierrc to the stackblitz project does not fix this