Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
normal-coder opened this issue Oct 25, 2024 · 1 comment

Comments

@normal-coder
Copy link

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 normal-coder changed the title Frontmatter formatting errors on https://sli.dev/new with Stackblitz Editor Frontmatter formatting errors with Stackblitz Editor on https://sli.dev/new Oct 25, 2024
@KermanX
Copy link
Member

KermanX commented Nov 10, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants