vmd icon indicating copy to clipboard operation
vmd copied to clipboard

Code block after list is wrongly folded into list

Open ericonr opened this issue 4 years ago • 5 comments

Feeding


  • a
b
c

into vmdfmt spits out


  • a b c

Not sure this construct should exist in a proper document, though.

ericonr avatar Aug 04 '20 07:08 ericonr

I'll run this through my blackfriday tree dumper and see what we're dealing with here at least.

bobertlo avatar Aug 04 '20 14:08 bobertlo

I have confirmed that this is an upstream issue:

[robert@cygnus ~]$ bfdump test.md
Document
  List
    Item
      Paragraph
        Text "test\n"
        Code: `
a
b
`
        Text ""

The code block should be a different type and on a higher level in the tree.

bobertlo avatar Aug 04 '20 19:08 bobertlo

Oof, would you like me to open an issue for it? Or is it not going to fly since there's blackfriday v2?

ericonr avatar Aug 04 '20 20:08 ericonr

You could for their sake but I'm on a 2 year old branch vendoring a patch that breaks tests upstream but fixes a bug for this use case.

For these reasons I am not super interested in 'correctness' bug fixes that are irrelevant to the void-docs downstream. Might look into updating the back end at some point but not at the moment.

bobertlo avatar Aug 04 '20 21:08 bobertlo

I've gotten the impression that, while the v2 generated tree is useful, it is not exactly targetted for general public use lol

bobertlo avatar Aug 04 '20 21:08 bobertlo