analyticsplaybook / analyticsplaybook.github.io

A Repository For Digital Analysts and Marketers to Share Ideas
MIT License
23 stars 15 forks source link

Code highlighter syntax not working #2

Closed 33sticks closed 8 years ago

33sticks commented 8 years ago

I struggled to get the code highlighting to work correctly, it could have just been the markdown editor I was using, but I ended up using a different syntax.

Template Syntax {% highlight python %} code block {% endhighlight %}

Updated Syntax

code block
randyzwitch commented 8 years ago

Yup, both are possible. The second (your) way is how you do it here in comments:

randyzwitch commented 8 years ago

Turns out my above comment is incorrect; you have to use the bracket-parenthesis style in the .md file, as it gets parsed by Jekyll into "GitHub-Flavored" Markdown, which I guess is not quite standard.