Gatsby: Code blocks highlight all keywords even in which are enclosed in HTML tags

Created on 13 Feb 2018  路  2Comments  路  Source: gatsbyjs/gatsby

Description

In the Gatsby Docs, the code blocks highlight keywords even though they are plain text within html.
I started noticing this while I was at this particular tutorial page: (https://www.gatsbyjs.org/tutorial/part-three/)

Actual result

image

Expected behavior

The above image, the words do, of, as should be displayed like normal text, not highlighted.

good first issue blocked

Most helpful comment

Thanks @ajayns, this looks like a bug in PrismJS. I've opened an issue over there.

All 2 comments

Thanks @ajayns, this looks like a bug in PrismJS. I've opened an issue over there.

This has been fixed in PrismJS 馃帀. Once the fix is released gatsby-prism-remark will need to be updated here.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

brandonmp picture brandonmp  路  3Comments

mikestopcontinues picture mikestopcontinues  路  3Comments

benstr picture benstr  路  3Comments

totsteps picture totsteps  路  3Comments

magicly picture magicly  路  3Comments