Issue #169 open

{ { { #!highlight python does not work

Roger Haase
created an issue

Someone else discovered this problem in December and created http://test.moinmo.in/PythonHighlightTest.

A guess is there may be an error in the calls to default_registry.register(...) within converter/pygments_in.py.

Comments (6)

  1. Thomas Waldmann repo owner
    • changed status to open

    I still can't point at the bug, but my impression was that it somehow chooses the wrong converter from the registry, so the pygments converter is never called.

    maybe related to #190

  2. Thomas Waldmann repo owner

    reimar: for big files the transclusion is definitely better, but I think we have to keep the parser sections for smaller (few lines) stuff, when the overhead of creating a separate item would be too big.

    we can try to make both work mostly the same internally, though.

  3. Thomas Waldmann repo owner

    I analysed the issue:

    there is simply no code to process the moin_page.part element the wiki parser puts into the dom tree for parser sections.

    there is some similar code for macros in converter/macro.py, but parser sections are not handled there.

    there is still some open todo to handle parsers and macros in a similar way.

  4. Log in to comment