You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Of course, this approach relies on hljs being loaded into the DOM already.
I also have a repository called react-markdown-examples which includes a better (though more complicated) example of syntax highlighting, using react-lowlight.
I could just be doing something wrong, but this is how the live demo text gets displayed in my app:
The code while code like is missing the box and the coloring
The blockquote is missing the left-hand bar.
looking at the elements, the code element is very different in my page than it is on the demo page:
Mine:
Demo:
My package.json reads:
"react": "^15.2.1",
"react-dom": "^15.1.0",
"react-markdown": "^2.4.2",
Any help would be greatly appreciated! Thanks!
The text was updated successfully, but these errors were encountered: