Multi-line code blocks don't have any content
tannerdolby opened this issue · comments
@zachleat I referred back to an article on Add Lighthouse to footer and noticed all of the multi-line code blocks that are highlighted with Prism don't have any content within the <code>
tags even though they indeed have content inside Markdown.
I suspect something with {% highlight %}
is for some reason ignoring the text inside and not displaying any content within the <code>
tags. Here is an example on Line 36.
{% highlight bash %}npm install @11ty/eleventy-cache-assets --save-dev{% endhighlight %}
Screenshot of empty code block
This issue is happening for all posts on your website at the current time (11:05pm PST). Just wanted to let you know!
Oh thank you very much for the report! Looks like {% highlight %}
is broken but the markdown version is working okay so it’s only for about 5 or so pages on the site. I’ll have a deeper look
Looks like this unearthed an incompatibility with the upcoming Eleventy 1.0 and the syntax highlighter plugin. I rolled back for now to fix this and filed 11ty/eleventy-plugin-syntaxhighlight#40
Thank you!
You're welcome Zach!