Skip to content

"Code Block" on GitHub Pages is not rendering and throws an error #23170

Discussion options

You must be logged in to vote

Hey @jharris1993! 👋

Hmmm, so, the raspberrypi/documentation repo you link to isn’t actually generating a GitHub Pages site, so they’re not using GitHub’s build system. How they process markdown during the page build process might be totally different.

On GitHub, at least, the code block you posted is causing problems because Jekyll’s parser treats any code using double curly braces {{ text }} or curly braces and percent signs {% text %} that’s included in inline or fenced code blocks as if it’s a Liquid tag.

To stop this happening you’ll need to surround any affected code blocks with some tags to tell Jekyll to ignore them:


{% raw %}

your code here

{% endraw %}


You can also surround the…

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@Eurekha-K
Comment options

@Eurekha-K
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants