How to combine with react-markdown?
Kadrian opened this issue · 2 comments
Kadrian commented
Hi, I'd love to combine using this with react-markdown
: https://github.com/rexxars/react-markdown
The problem
<ReactMarkdown source={text} />
accepts a string text.<Highlighter textToHighlight={text} />
accepts a string text.
Both render HTML. But how to combine both?
- How do I highlight text generated from markdown?
- How do I generate markdown from highlighted text?
Any ideas? 🤟
Kadrian commented
Okay, got it to work using a text renderer like here remarkjs/react-markdown#218 (comment)