Open iceghost opened 2 years ago
Suppose I have a post layout like this:
post
import H1 from '$lib/H1.svelte'; export { H1 as h1 };
This mdsvex file
--- layout: post --- # Welcome to SvelteKit <p>Visit <a href="https://kit.svelte.dev">kit.svelte.dev</a> to read the documentation</p>
works with the replaced custom H1. But this:
H1
--- layout: post --- <h1>Welcome to SvelteKit</h1> <p>Visit <a href="https://kit.svelte.dev">kit.svelte.dev</a> to read the documentation</p>
doesn't works. Is this an expected behavior?
Would be nice if this is supported 😀
This is not supported right now but will be in the future (probably via a flag).
Suppose I have a
post
layout like this:This mdsvex file
works with the replaced custom
H1
. But this:doesn't works. Is this an expected behavior?
Would be nice if this is supported 😀