eleventy-plugin-syntaxhighlight icon indicating copy to clipboard operation
eleventy-plugin-syntaxhighlight copied to clipboard

Fix table rendering when lines are highlighted

Open pborenstein opened this issue 4 years ago • 0 comments

Because of the way Prism renders Markdown tables, things get screwed up because the plugin expects that a \n ends the table line, so the markup wrappers end up in a strange place. Without highlighting, things look good, but with highlights, the spacing is all weird.

Screen Shot 2020-05-09 at 10 24 41 PM

After hacking the Prism output a tad, things are better. We change <\/span>\n<\/span> to </span></span>\n

Screen Shot 2020-05-09 at 10 26 43 PM

pborenstein avatar May 10 '20 02:05 pborenstein