Describe the bug
According to the Slidev documentation:
Slidev supports optional Comark Syntax (formerly known as MDC, Markdown Components) powered by @comark/markdown-it.
In the Comark documentation, blocks can be styled by adding a space at the end, and then curly braces.
In Slidev, this does not style the block, but rather the last attribute.
Minimal reproduction
---
comark: true
---
## h2 with _italic_ {style="color: blue"}
The whole line should be blue, not just the italic text.
Steps to reproduce the behavior:
- Expected behaviour (comark):
- Open https://comark.dev/play/editor?example=undefined
- Paste the code block above
- Observe that the entire line is blue.
- Slidev behaviour:
- Open https://sli.dev/new
- Paste the code block above
- Observe that only the italic text is blue.
- There is no way to style the entire line.
https://stackblitz.com/edit/github-mvd3wqut?file=slides.md
Environment
- Slidev version: v52.14.2
- Browser: Chrome 149.0.7827.115
- OS: macOS
Further notes
Additionally, wrapping a list, table, blockquote, or code block does not work
Describe the bug
According to the Slidev documentation:
In the Comark documentation, blocks can be styled by adding a space at the end, and then curly braces.
In Slidev, this does not style the block, but rather the last attribute.
Minimal reproduction
Steps to reproduce the behavior:
https://stackblitz.com/edit/github-mvd3wqut?file=slides.md
Environment
Further notes
Additionally, wrapping a list, table, blockquote, or code block does not work