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

Support custom components which get applied to the HTML AST. #672

Open
emmalexandria opened this issue Nov 20, 2024 · 0 comments
Open

Support custom components which get applied to the HTML AST. #672

emmalexandria opened this issue Nov 20, 2024 · 0 comments

Comments

@emmalexandria
Copy link

When a Rehype plugin is used, the elements it affects/creates don't seem to have the relevant custom components applied. As far as I can tell, this is because custom components are generated from the markdown AST. It would be great if they could rather be generated from the HTML AST, with properties on the HTML tags being passed through to the custom Svelte components. I do understand this has its issues, especially with plugins like rehype-toc. Maybe the list of custom components could be split into those that apply to the Markdown AST and those that apply to the HTML AST?

@github-project-automation github-project-automation bot moved this to Triage + Refine in mdsvex Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Triage + Refine
Development

No branches or pull requests

1 participant