intcreator / markdown-element

A lit-html element that renders Markdown using Commonmark.js
BSD 3-Clause "New" or "Revised" License
13 stars 2 forks source link

Support for syntax highlight #6

Open punkstarman opened 6 years ago

punkstarman commented 6 years ago

The marked-element provided support for syntax highlighting by sending a custom event named syntax-highlight. The prism-element listens for such events and reacts by calling Prism to do the highlighting.

intcreator commented 5 years ago

I know when I used this element I had syntax highlighting. It's been a little while so I don't remember if it needs to be done manually. It probably does if there's a feature request for it, right?

Here's an example of where I used this element with syntax highlighting. I've been pretty busy which is why I haven't seen these issues come through.