Skip to content

Instantly share code, notes, and snippets.

@EnigmaCurry
Created April 20, 2011 18:35
Show Gist options
  • Save EnigmaCurry/932259 to your computer and use it in GitHub Desktop.
Save EnigmaCurry/932259 to your computer and use it in GitHub Desktop.
A hacked blogofile textile filter to get around syntax_highlight filter issues.
def run(content):
content = content.replace("<pre>","<textile-pre>").replace("</pre>","</textile-pre>")
content = textile.textile(content)
content = content.replace("<textile-pre>","<pre>").replace("</textile-pre>","</pre>")
return content
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment