Skip to content

Feature Request: Support trailing {...} attributes on headings & paragraphs in MDC #469

@L33Z22L11

Description

@L33Z22L11

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions