Commit d9bd171
fix: support custom anchor IDs in headings ({#my-anchor} syntax)
Add parser.WithAttribute() to the goldmark parser options so that
extended Markdown heading attributes like {#custom-id} are parsed
correctly instead of appearing as literal text in the heading.
Before: # My Heading {#custom-id} → <h1>My Heading {#custom-id}</h1>
After: # My Heading {#custom-id} → <h1 id="custom-id">My Heading</h1>
Fixes #519
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent ac26421 commit d9bd171
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
| 112 | + | |
112 | 113 | | |
113 | 114 | | |
114 | 115 | | |
| |||
0 commit comments