JP Markdown and Code Blocks
-
Okay, I finally decided to let go my beloved, yet ancient, copy of Markdown Extra and let Jetpack do all the lifting. I’m suffering what seem to be the usual transition issues — some posts are appearing in their markdown jammos — but I can live with it because I don’t mind refreshing the fairly limited number of older posts that still get significant traffic.
One issue I can’t figure out is what’s happening when I drop in a code block (in my case it’s Python). My habit is to do it with fences like this:
`python
Some code here
`When I do that, however, I get a lot of this:
colnames = ['author',.I’m using Syntax Highlighter Evolved, and when I deactivate it, all I get is a short code,
[code lang=python]and then no actual formatting for the code block.Despite running WP for a decade, I'm still terrible at troubleshooting plug-ins -- I guess that's why I held onto PHP Markdown Extra for so long. It was just so reliable.
EDIT: I forgot to add a link to the relevant post:
http://johnlaudun.org/20170129-getting-word-frequencies-for-2000-texts/
The topic ‘JP Markdown and Code Blocks’ is closed to new replies.