You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And this is how I am using the markdown component. I created a wrapper like this:
<scriptcontext="module"lang="ts">
// @ts-expect-error no type available for this package yet, it is possible this will break in the futureimportremoveCommentsfrom"remark-remove-comments";importMarkdownfrom"svelte-exmarkdown";import { gfmPlugin } from"svelte-exmarkdown/gfm";
</script>
<scriptlang="ts">
exportlet md:string;
</script>
<Markdown
{md}
plugins={[
gfmPlugin(),
{
remarkPlugin: [removeComments]
},
{
renderer: {
strong: "b"
}
}
]}
/>
And then use it like this:
<Markdown md={"Hello world"} />
For now I have mitigated the issue using app/environment, and only render this component in client side. This avoided the issue, but this is not ideal for SEO
Hi, I notice this error during server side rendering, with version 3.0.1:
Which seems to be an error throw by unified, and I can find their test case here:
https://github.com/unifiedjs/unified/blob/67949bb47abe4da52a20f1472ef9b0a9f0a6d123/test/parse.js#L16C9-L16C40
And this is how I am using the markdown component. I created a wrapper like this:
And then use it like this:
For now I have mitigated the issue using
app/environment
, and only render this component in client side. This avoided the issue, but this is not ideal for SEOAlso downgrading to 3.0.0 does not have this error
The text was updated successfully, but these errors were encountered: