MDC already supports {#id .class} syntax, but only on components/blocks—not when placed at the end of a plain heading or paragraph line, like in markdown-it.
Problem
- Headings in multi-language content get long, ugly URI‑encoded IDs
- Cannot override heading ID or add classes to paragraphs by just appending
{...}
Proposal
Support the trailing {...} syntax on plain text blocks:
- Headings:
## 标题 {#my-id} → set id="my-id"
- Paragraphs:
Text {.class} → add class to the <p> container
- Strip the
{...} part from rendered text
Why
- Clean, readable URLs/anchors for multi‑language sites
- Simple styling without wrapper components