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
129 stars 32 forks source link

Add line numbers #24

Closed pborenstein closed 1 year ago

pborenstein commented 4 years ago

Building on the work of @andeersg in #14.

Requires #23

left as an exercise for the reader:

danilopolani commented 3 years ago

Is there any chance we see this merged? Of course after solving the conflicts 😄 @zachleat

JDubbTX commented 1 year ago

I'm looking at using 11ty for my blog which is in infancy. I need a good blog starter - found several 11ty blog starters and zeroed in on one that I liked - but line numbers for examples in my blog is an absolute must. Can we please get this done?

-edit- for now I'll follow instructions in the link above for How to show line numbers and see if I can get that to work.

pborenstein commented 1 year ago

@JDubbTX I don't think this will ever get merged. I made an alternate version: https://www.npmjs.com/package/@pborenstein/eleventy-md-syntax-highlight

JDubbTX commented 12 months ago

@JDubbTX I don't think this will ever get merged. I made an alternate version: https://www.npmjs.com/package/@pborenstein/eleventy-md-syntax-highlight

@pborenstein Unfortunately, the alternate version doesn't allow a custom language. I'm writing a blog about rpgle language, which isn't one of the prism.js languages. The original plugin has an init callback I was using to define the custom language for rpgle. I would like to 1) define a custom language and 2) use line numbers.