mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-28 17:50:28 +08:00
@@ -8,7 +8,7 @@
|
||||
export let fontSize: "tiny" | "small" | "medium" = "small";
|
||||
|
||||
const render = (content: string): string =>
|
||||
dompurify.sanitize(markdown.parseInline(content));
|
||||
dompurify.sanitize(markdown.parseInline(content) as string);
|
||||
</script>
|
||||
|
||||
<style>
|
||||
|
||||
@@ -53,7 +53,9 @@
|
||||
|
||||
function render(content: string): string {
|
||||
return dompurify.sanitize(
|
||||
markdown.parse(content, { renderer: new Renderer(linkBaseUrl) }),
|
||||
markdown.parse(content, {
|
||||
renderer: new Renderer(linkBaseUrl),
|
||||
}) as string,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user