11ty / eleventy-plugin-syntaxhighlight

A pack of Eleventy plugins for syntax highlighting in Markdown, Liquid, and Nunjucks templates.
https://www.11ty.dev/docs/plugins/syntaxhighlight/
MIT License
130 stars 32 forks source link

Add context info and callback to getAttributes #50

Closed chriskirknielsen closed 2 years ago

chriskirknielsen commented 3 years ago

Allows to pull in contextual information for the syntax highlighting, and pass it to a defined function to get a dynamic output.

zachleat commented 2 years ago

We are absolutely going for it here—appreciate this one, I love it!

This will be packaged with 4.1.0