-
Beta Was this translation helpful? Give feedback.
Answered by
wooorm
May 29, 2025
Replies: 1 comment 6 replies
-
All nodes are affected. They all loose everything. Exception positional info. It’s like doing |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There is a difference between markdown and HTML, remark and rehype.
rehype-shiki
is for HTML. It should support HTML. It should not only support markdown. It is nice if it supports markdown. But it should also support someone writing actual HTML and passing things as HTML attributes.Such as https://github.com/rehypejs/rehype-twoslash/blob/19c933630ebb3abcce32e0dea123bb6bb2511e2b/lib/index.js#L110-L114
Why? It is a complex operation that slows people down who do not need it.
You should probably not default to it.
But if you must have it, and
rehype-shiki
supports HTML too, then you can use a plugin beforerehype-raw
to turn data into…