mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-21 06:10:44 +08:00
Fix relative markdown links
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
This commit is contained in:
+2
-1
@@ -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,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user