Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom components with HTML tags #314

Open
Tracked by #587
iceghost opened this issue Oct 4, 2021 · 1 comment
Open
Tracked by #587

Custom components with HTML tags #314

iceghost opened this issue Oct 4, 2021 · 1 comment
Labels
assigned Whether or not this bug has been assigned some to some other issues as a subtask or pre-req enhancement New feature or request
Milestone

Comments

@iceghost
Copy link

iceghost commented Oct 4, 2021

Suppose I have a post layout like this:

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:

---
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 😀

@pngwn pngwn added enhancement New feature or request v1 labels Oct 14, 2021
@pngwn
Copy link
Owner

pngwn commented Oct 14, 2021

This is not supported right now but will be in the future (probably via a flag).

@pngwn pngwn added this to the 1.0 milestone Oct 16, 2021
@pngwn pngwn added this to mdsvex Oct 16, 2021
@pngwn pngwn moved this to Refine in mdsvex Oct 16, 2021
@pngwn pngwn removed the v1 label Feb 23, 2024
@pngwn pngwn mentioned this issue Feb 23, 2024
6 tasks
@pngwn pngwn added the assigned Whether or not this bug has been assigned some to some other issues as a subtask or pre-req label Feb 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
assigned Whether or not this bug has been assigned some to some other issues as a subtask or pre-req enhancement New feature or request
Projects
No open projects
Status: Refine
Development

No branches or pull requests

2 participants