diff --git a/src/lib/AsyncMarkdownReq.svelte b/src/lib/AsyncMarkdownReq.svelte index ffb25de..722912d 100644 --- a/src/lib/AsyncMarkdownReq.svelte +++ b/src/lib/AsyncMarkdownReq.svelte @@ -10,21 +10,21 @@ return md; } - const tableDiver: Partial = { - tablecell(content, _flags) { - return `
${content}
`; + // TailwindCSS makes img elements have display: block for *some* reason so + // this fixes it in this very specific instance ehehe + const imgFixer: Partial = { + image(href, title, text) { + return `${text}`; } }; - marked.use({ renderer: tableDiver }); + marked.use({ renderer: imgFixer }); -
- {#await request(url)} - - {:then resp} -
- {@html marked.parse(resp)} -
- {/await} -
+{#await request(url)} + +{:then resp} +
+ {@html marked.parse(resp)} +
+{/await}