altercation / OLD-ethanschoonover.com-original

website source (hakyll, pandoc markdown)
http://ethanschoonover.com
734 stars 95 forks source link

django template's code #17

Open mjhea0 opened 11 years ago

mjhea0 commented 11 years ago

I am having trouble displaying django template code.

I'd like to display this in a code block -

2012-12-30_1106

However, it always turns out like this-

2012-12-30_1110

-unless I put spaces between the bracket and percentage symbol - e.g., { %

2012-12-30_1114

This is what my markdown looks like-

2012-12-30_1112

Since I am using a list, I've found that I have to tab over twice (8 spaces) for the block code to work.

Any advice on how to handle html mixed with Python or how to address the 8 spaces issue?

Please advise. Thanks!