tempestphp / highlight

🎨 Fast, extensible, server-side code highlighting for web and terminal
https://tempest.stitcher.io/highlight/01-getting-started
MIT License
640 stars 38 forks source link

Possible to work only on code blocks? #132

Closed simonhamp closed 3 months ago

simonhamp commented 3 months ago

@brendt awesome package 💯

I'm using Highlight inside CommonMark and I have a use-case where I only want the parser to run on code blocks (i.e. using triple-backticks: ```), but not on inline code (e.g. `code here`)

simonhamp commented 3 months ago

I figured it out.

I just created my own version of HighlightExtension which doesn't add the InlineCodeBlockRenderer

👍🏼

very nice