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
The img component still renders inside a p-tag. Removing the img component from mdsvex.svelte or removing the layout from svelte.config.js makes it work.
Happened with Svelte 4, too, but didn't notice it then. With Svelte 5, however, an error is thrown trying to place the <figure> tag inside a <p>.
Uncaught (in promise) HierarchyRequestError: Failed to execute 'appendChild' on 'Node': This node type does not support this method.
in mdsvex.svelte
in burndown-charts-visual-tool-forecasting.md
in Article.svelte
in +page.svelte
in +layout.svelte
in tooltip-provider.svelte
in +layout.svelte
in layout.svelte
in root.svelte
at Module.child (chunk-KWZHZ53T.js?v=a116dced:2379:27)
at Img (img.svelte:34:27)
The text was updated successfully, but these errors were encountered:
Using a custom layout with custom components causes plugins manipulating the HAST not to work. For example unwrapping images.
My svelte.config.js:
and mdsvex.svelte:
The
img
component still renders inside a p-tag. Removing theimg
component frommdsvex.svelte
or removing the layout fromsvelte.config.js
makes it work.Happened with Svelte 4, too, but didn't notice it then. With Svelte 5, however, an error is thrown trying to place the
<figure>
tag inside a<p>
.The text was updated successfully, but these errors were encountered: