mdast-util-to-hast Options passThrough example #136
|
I'm fairly new to mdast-util-to-hast and am hoping someone could provide a simple example of how to pass the passThrough attribute in the Options. I'm wanting to passThrough Image (img) tags especially the src attribute's values. |
Answered by
ChristianMurphy
Nov 4, 2024
Replies: 2 comments 10 replies
|
@jnorvell could you share an example of what you mean? |
9 replies
|
It sounds like you are looking for how to do HTML in markdown. That is not what But there is a lot in the readme that talks about HTML in markdown. Such as, the examples: https://github.com/syntax-tree/mdast-util-to-hast#examples |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The url transform is a top level property.
The tests give an example
https://github.com/remarkjs/react-markdown/blob/515bf190a06e2510aa4d09d4c186cfa558b75452/test.jsx#L366-L381