Skip to content

Commit

Permalink
fix: toc not displaying
Browse files Browse the repository at this point in the history
Fix #45
  • Loading branch information
Julien-R44 committed Dec 31, 2023
1 parent dd4bc33 commit 31faad2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/services/markdown_renderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ export class MarkdownRenderer {
allowedAttributes: {
...sanitizeHtml.default.defaults.allowedAttributes,
'*': ['class', 'align'],
'h1': ['id'],
'h2': ['id'],
},
allowedClasses: { '*': ['*'] },
})
Expand Down

0 comments on commit 31faad2

Please sign in to comment.