Closed gustavomm19 closed 10 months ago
Welcome, @gustavomm19
Maybe you mean to use https://github.com/rehypejs/rehype/tree/main/packages/rehype-stringify
I don’t think you’re working with html. HTML does not have that at all. It looks like you want jsx.
that’s not this project. You are likely looking for MDX
I solved this problem by using the position indexes of the node that comes as a prop, to extract the parts that I needed from the original content before it is parsed by the markdown parser
I think you’re going in the wrong direction; there might be dragons, but good luck.
Hi! This was closed. Team: If this was fixed, please add phase/solved
. Otherwise, please add one of the no/*
labels.
Initial checklist
Problem
Is there a way to make the convertion optional for some components? I have a custom component in the Markdown Parser from react-markdown and I need it to keep its children always as a string, but if there is html content inside that content, that content gets parsed as nodes. Is there a way to prevent that? I need the plugin to make that convertion in other components but NOT in this one. Here is an example of my code
Solution
Maybe if there were a function to unparse the children of a component
Alternatives
Or a list of components to just receive the children unparsed