markdownfmt icon indicating copy to clipboard operation
markdownfmt copied to clipboard

Nested lists behave strangely when using spaces

Open karelbilek opened this issue 4 years ago • 2 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

karelbilek avatar Feb 26 '20 06:02 karelbilek

Perhaps related to https://github.com/russross/blackfriday/issues/329

karelbilek avatar Feb 26 '20 09:02 karelbilek

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. :((( )

karelbilek avatar Feb 26 '20 11:02 karelbilek

#56

karelbilek avatar May 02 '24 11:05 karelbilek