wooorm / refractor

Lightweight, robust, elegant virtual syntax highlighting using Prism
MIT License
722 stars 33 forks source link

Add section with demo link #50

Closed karlhorky closed 3 years ago

karlhorky commented 3 years ago

I transformed the hast to HTML with hast-util-to-html, what do you think?

Closes #46

wooorm commented 3 years ago

Maybe a little note before the first .register call to mention that most common languages (https://github.com/wooorm/refractor#syntaxes) are pre-registered? What do you think?

Otherwise :+1:

karlhorky commented 3 years ago

Great idea, added! Also updated the URL to denote that it's the official demo.

And feel free to fork to have ownership.

wooorm commented 3 years ago

Sweet, thanks!

karlhorky commented 3 years ago

Glad to help! Thanks for the merge!