Fix inline emphasis tags in markdown output
- Without strong, bold rendered as plain text since marked
emits
<strong>and DOMPurify stripped the unknown tag - Add strong, b, i, del, s to DOMPurify allow-list
- Cover the other inline emphasis tags authors may write as raw
HTML or that GFM strikethrough emits (
<del>)
1 file changed
+5
-0
c45c9198
→
b6743c63
modified src/lib/markdown.ts
@@ -31,14 +31,17 @@ dompurify.setConfig({
|
|
|
|
|
|
| + | |
|
|
|
|
|
|
|
|
| + | |
|
|
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -53,6 +56,8 @@ dompurify.setConfig({
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|