-
I have remark-react integrated into my project and want to get some syntax highlighting. I found this issue remarkjs/remark-react#14 which was closed via remarkjs/remark-react#30 which added a note to the readme about how to configure syntax highlighting. However, that note was removed again a couple of commits on that file later, and the closest thing remaining is a link to the integrations docs of remark-html with the note "See how to integrate with other remark plugins in the Integrations section of remark-html." This is confusing to me because I was under the impression that remark-html was an alternative renderer, totally separate from remark-react. Perhaps I'm mistaken about that. I looked at that linked page and the first plugin mentioned is remark-autolink-headings, which sounded good too, so I installed that. But I'm not seeing any difference in the output from remark-react: no links on the headings, no anchors on them either. I tried remark-highlight.js too but I don't see any difference after installing that either. I'm now trying remark-react-lowlight which is what was suggested briefly in that readme, and it does seem to be working. I wonder if there's some missing documentation here -- is there some way to tell which plugins are compatible with remark-react and which are not? Or is there some trick to configuring these plugins correctly I'm missing? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Sorry, it seems I haven‘t answered here, but I do remember similar conversations somewhere else (maybe with someone else?) |
Beta Was this translation helpful? Give feedback.
Sorry, it seems I haven‘t answered here, but I do remember similar conversations somewhere else (maybe with someone else?)
Is there anything I can still help with?