Skip to content

Commit

Permalink
allow id attribute on headings
Browse files Browse the repository at this point in the history
  • Loading branch information
lucacasonato committed Oct 21, 2021
1 parent 82db7cb commit 446456e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,12 @@ export function render(markdown: string, baseUrl: string | undefined): string {
a: ["id", "aria-hidden", "href", "tabindex", "rel"],
svg: ["viewbox", "width", "height", "aria-hidden"],
path: ["fill-rule", "d"],
h1: ["id"],
h2: ["id"],
h3: ["id"],
h4: ["id"],
h5: ["id"],
h6: ["id"],
},
allowedClasses: {
div: ["highlight"],
Expand Down

0 comments on commit 446456e

Please sign in to comment.