patricoferris / hilite

Hilite - a simple code to HTML syntax highlighter
Other
19 stars 3 forks source link

Enabling external syntax support and maybe package splitting #17

Open xvw opened 7 months ago

xvw commented 7 months ago

Hello! This is a very interesting project, particularly in the world of static site generators, and it would make it easy to do without highlightjs to support the syntax highlighting. But at the moment, I find the package a little too opionated (to be easily usable generically). But I'm not sure what level of maintenance you assign to this package.

Would it be possible to:

Thank you in advance for your response and anyway, thank you very much for this superb library!

patricoferris commented 7 months ago

Hey @xvw thanks for the detailed issue. I agree with both points!

In #18 I split the library as you suggested so there is now a core hilite library and a hilite_markdown optional library.

In #19 I added support to pass your own textmate grammar collection into the core of the library which hopefully helps with the second point.

Let me know what you think :))

xvw commented 7 months ago

Oh lord, seems perfect. Thanks a lot for your reactivity !!

xvw commented 1 month ago

Hello @patricoferris ! Are you planning a new release soon? The latest version available on opam is 0.4.0. Thanks in advance!