This causes issues as, for example, I'm using rehype-class-names to apply the correct classes to tags for styling, and it doesn't apply classes to the kbd element in this example.
Questions
I would believe this is intended - deal with markdown, leave everything else as-is (with the "raw") type. However, is there a way to achieve what I'm trying to do?
Also, I'm talking pure .md files, not Svelte-Markdown mix (.svx), so there is only pure HTML to parse in my case.
Problem
Consider the following Markdown:
This results in a tree similar to this:![image](https://github.com/pngwn/MDsveX/assets/8215371/5f76557a-a069-4228-9891-88f332d77433)
I would expect the tree to be:
<kbd>
elementInstead, it is:
<kbd>
(raw)</kbd>
(raw)This causes issues as, for example, I'm using rehype-class-names to apply the correct classes to tags for styling, and it doesn't apply classes to the
kbd
element in this example.Questions
I would believe this is intended - deal with markdown, leave everything else as-is (with the "raw") type. However, is there a way to achieve what I'm trying to do?
Also, I'm talking pure
.md
files, not Svelte-Markdown mix (.svx
), so there is only pure HTML to parse in my case.