Skip to content

Commit

Permalink
Code blocks regex now captures all pygments short-names
Browse files Browse the repository at this point in the history
  • Loading branch information
shreyankg committed Oct 2, 2012
1 parent 8e576ba commit ccaf5b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/landslide/macro.py
Expand Up @@ -50,7 +50,7 @@ class CodeHighlightingMacro(Macro):
Pygments.
"""
code_blocks_re = re.compile(
r'(<pre.+?>(<code>)?\s?!(\w+?)\n(.*?)(</code>)?</pre>)',
r'(<pre.+?>(<code>)?\s?!(\S+?)\n(.*?)(</code>)?</pre>)',
re.UNICODE | re.MULTILINE | re.DOTALL)

html_entity_re = re.compile('&(\w+?);')
Expand Down

0 comments on commit ccaf5b6

Please sign in to comment.