Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Paragraph is joined to previous nested list #91

Open
alek3y opened this issue Sep 30, 2023 · 3 comments
Open

Paragraph is joined to previous nested list #91

alek3y opened this issue Sep 30, 2023 · 3 comments

Comments

@alek3y
Copy link
Contributor

alek3y commented Sep 30, 2023

When the graphviz preprocessor is enabled, the list

- A
    - B
    
    C

is rendered as

  • A
    • B C

instead of

  • A

    • B

    C

@alek3y
Copy link
Contributor Author

alek3y commented Oct 1, 2023

I think this might actually be an issue of pulldown-cmark-to-cmark. I'll wait confirmation before closing this.

@Cypher1
Copy link
Collaborator

Cypher1 commented May 1, 2024

@alek3y I know it's been a while but is there any change you know if this bug still occurs?

@alek3y
Copy link
Contributor Author

alek3y commented May 1, 2024

As far as I can tell it's still happening.
I just took another look at the code, and I'm pretty sure it's pulldown_cmark_to_cmark::cmark that causes this.

The events generated by pulldown_cmark::Parser seem to be correct:

[Start(List(None))],
[Start(Item)],
[Start(Paragraph)], [Text(Borrowed("A"))], [End(Paragraph)],
[Start(List(None))], [Start(Item)], [Text(Borrowed("B"))], [End(Item)], [End(List(false))],
[Start(Paragraph)], [Text(Borrowed("C"))], [End(Paragraph)],
[End(Item)],
[End(List(false))]

However, buf is then filled with * A\n \n * B\n C which produces the wrong output I mentioned.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants