iamacup / react-native-markdown-display

React Native 100% compatible CommonMark renderer
MIT License
568 stars 167 forks source link

Syntax Highlighting #139

Closed ospfranco closed 9 months ago

ospfranco commented 3 years ago

Hi! First of all thank you a lot for the awesome plugin! it works wonderfully for most use cases, there is one small hiccup which also wasn't addressed in the original repo, which is syntax highlighting, is there any plan to get that working any time soon?

PeterVuyk commented 3 years ago

+1

this would be very helpful

isaachinman commented 7 months ago

@iamacup Why was this issue closed? Is there any recommended way to achieve syntax highlighting in code fences?

ospfranco commented 7 months ago

Code syntax highlighting is actually not part of markdown and requires something like tree-sitter which would be complex to integrate. I understand why this was closed. You probably want to use a different library for this to keep this package simple.

isaachinman commented 7 months ago

Yep, I wasn't expecting it to be included out of the box, but closing an issue without any comment isn't very helpful.