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. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 10 replies
-
@jnorvell could you share an example of what you mean? |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
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