Skip to content

Commit 446456e

Browse files
committed
allow id attribute on headings
1 parent 82db7cb commit 446456e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

mod.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,12 @@ export function render(markdown: string, baseUrl: string | undefined): string {
5555
a: ["id", "aria-hidden", "href", "tabindex", "rel"],
5656
svg: ["viewbox", "width", "height", "aria-hidden"],
5757
path: ["fill-rule", "d"],
58+
h1: ["id"],
59+
h2: ["id"],
60+
h3: ["id"],
61+
h4: ["id"],
62+
h5: ["id"],
63+
h6: ["id"],
5864
},
5965
allowedClasses: {
6066
div: ["highlight"],

0 commit comments

Comments
 (0)