-
Hey Sotaro! I want to render <script lang="ts">
import Markdown, { type Plugin } from 'svelte-exmarkdown';
import Link from '$lib/Link.svelte';
export let md;
const linkPlugin: Plugin = {
renderer: { a: Link },
};
</script>
<Markdown {md} plugins={[ linkPlugin ]} /> But there are two problems with it. First one is somewhat minor – there doesn't seem to be any way to correctly type the
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Thank you for your question! Sorry for the hard to read documents. I have prepared a example for your reference. |
Beta Was this translation helpful? Give feedback.
Thank you for your question!
Sorry for the hard to read documents.
I have prepared a example for your reference.
It is important to prepare a bridge component.
Please check this example: https://stackblitz.com/edit/svelte-exmarkdown-custom-link?file=src%2FApp.svelte