Properly indent Pygments code blocks under lists (BB-7079)

Issue #5882 closed
Seiji Komatsu
created an issue

Bitbucket wiki supports Pygments syntax.

It seems only it works at the top level, unfortunately.

I hope that Pygments blocks can be indented into lists, same as GitHub wiki.

Sample code:

# header 1

## header 1.1

1. Description 1

Some code 1
1. Description 2

Some code 2

Comments (5)

  1. José Luis Cruz

    Just found the same problem. As a summary:

    • Either the spacing is inside the code block
        $ hg commit -m "blablabla"
    • or pygments isn't used at all when backtics are indented.

      $ hg push

  2. Log in to comment