diff --git a/src/lib/components/Markdown.svelte b/src/lib/components/Markdown.svelte index 671ae48..7560e98 100644 --- a/src/lib/components/Markdown.svelte +++ b/src/lib/components/Markdown.svelte @@ -35,7 +35,12 @@ }; renderer.codespan = ({ text }) => { - return `${text}`; + const escaped = text.replace(//g, ">"); + return `${escaped}`; + }; + + renderer.html = ({ text }) => { + return text.replace(//g, ">"); }; marked.setOptions({