github/gollum — Issue #280: Add syntax highlighting for asciidoc
Author: mojavelinux
Created: 2012-03-01 22:09:07+00:00
State: open

Add syntax highlighting to [source] blocks using the pygments syntax highlighting engine.

In order to support this, the [source] blocks need to be honored. Currently, this markup breaks the rendering:

[source,python]
----
''' A multi-line
comment.'''
def sub_word(mo):
''' Single line comment.'''
word = mo.group('word') # Inline comment
if word in keywords[language]:
return quote + word + quote
else:
return word
----