eleventy-plugin-syntaxhighlight
eleventy-plugin-syntaxhighlight copied to clipboard
A pack of Eleventy plugins for syntax highlighting in Markdown, Liquid, and Nunjucks templates.
One of the reasons I currently use `markdown-it-prism` is because it's compatible with [`markdown-it-attrs`](https://www.npmjs.com/package/markdown-it-attrs), which allows me to specify any custom attribute on an as-needed basis. Like this: ````markdown ```js...
Hi, does anyone have a way for this plugin to work with inline code `like this`? Thanks!
**Situation** I have code blocks in my markdown, like the one below: ```` ```sh echo "Hello!" ``` ```` "sh" is used here purely for the sake of example - I...
The paired shortcode is great when I know that an entire block rendered in my template will be code - but sometimes I'm rendering arbitrary markdown that might have code...
When adding the plugin and trying extending languages, only a few are available. Later on other languages will be accessible. This is IMO a bug. > Adding new languages -...
Hi, Recently I've tried writing some code with 11ty in markdown and faced with something unexpectable. With block code, everything works fine. But inline code is not. This code ...
It would be great to pass an additional keywords parameter which is then matched in the code to add highlight or bold. ``` {% highlight lang keywords="['card', 'card-large', 'card-footer']" %}...
Not an issue, but I was wondering if there are any code examples or plugins that would add a copy button/icon to the code block so you can copy it...
# Short: Added an option to skip language highlighting. # Reason: While working on an internal documentation system, we came across an issue with mermaid-graph rendering and language highlighting. We...