Open mrkramps opened 8 years ago
Report upstream?
Pygments 2.2.0 does it correctly:
>>> from pygments import highlight
>>> from pygments.lexers import PythonLexer
>>> from pygments.formatters import HtmlFormatter
>>> code = '='
>>> highlight(code, PythonLexer(), HtmlFormatter())
'<div class="highlight"><pre><span></span><span class="o">=</span>\n</pre></div>\n'
parse_pre_block
in inyoka/markup/__init__.py
already gets the wrong data (without =
) so the bug could be in the Lexer?
Check issue at https://wiki.ubuntuusers.de/Wiki/Sandkasten
Renders empty code block.
Renders code block with one line and second
=
only.If no
LEXER
is set parser recognises=
as first character in first line. Simple code block ({{{=}}}
) is also working properly. Issue cross-checked in wiki, forum and Ikhaya comments.