shurcooL/markdownfmt

Nested lists behave strangely when using spaces

karelbilek opened this issue · 3 comments

Another case of nested lists behaving strange. I am using spaces, not tabs.

Input:

- we
  - will
    - we
      - will
        - rock
          - you
            - we
              - will
                - we
                  - will
                    - rock
                      - you

Output - list randomly collapsed

-       we
        -       will
        -       we
                -       will
                -       rock
                        -       you
                        -       we
                                -       will
                                -       we
                                        -       will
                                        -       rock
                                                -       you

Perhaps related to russross/blackfriday#329

Yep, it's definitely the blackfriday issue. And seeing it's a 2017 issue, it seems very hard to fix. (Trivially switching 4 to 2 in blackfriday/block.go causes other parsing issues, since Markdown is hard to parse. :((( )