Fix relative markdown links

Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
This commit is contained in:
Rūdolfs Ošiņš
2022-09-13 10:28:14 +02:00
committed by Alexis Sellier
parent ca8e4dce31
commit 78362cc700
+2 -1
View File
@@ -20,12 +20,13 @@
let container: HTMLElement;
const render = (content: string): string => {
return xss(marked.parse(content), {
return xss(marked.parse(content, { breaks: true }), {
whiteList: {
...getDefaultWhiteList(),
img: ["src"],
audio: ["src"],
video: ["src"],
a: ["href", "name"],
},
stripIgnoreTag: false,
});