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

Alternate method for line highlighting #42

Closed zachleat closed 2 years ago

zachleat commented 3 years ago

Thought this was really interesting and didn’t require modification of the source to wrap/add divs, it’s a separate element: image

As seen on https://rollup-plugin-vue.vuejs.org/examples.html

siimpragi commented 2 years ago

Hi! It sure is an interesting way to achieve line highlighting. So I looked into it. It seems the wrapping <div>-s were dropped in favor of <mark>, <del>, and <ins> in #7. Since those tags are all nice and semantic, I wonder if there really are any reasons to go forward with this?

zachleat commented 2 years ago

Closing as stale. I think the now-bundled diff- plugin is the better way forward here https://github.com/11ty/eleventy-plugin-syntaxhighlight/issues/28