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

Paragraphs in lists are not rendered correctly #167

Open
carlfriedrich opened this issue Oct 18, 2021 · 3 comments
Open

Paragraphs in lists are not rendered correctly #167

carlfriedrich opened this issue Oct 18, 2021 · 3 comments
Labels
bug Something isn't working renderer Everything related to the markdown renderer

Comments

@carlfriedrich
Copy link

See Markdown syntax for paragraphs in lists.

Input:

* This is the first list item.
* Here's the second list item.

    I need to add another paragraph below the second list item.

* And here's the third list item.

Expected output:

  • This is the first list item.
  • Here’s the second list item.
    I need to add another paragraph below the second list item.
  • And here’s the third list item.

Actual output:

  • This is the first list item.
  • Here's the second list item.I need to add another paragraph below the
    second list item.
  • And here's the third list item.

The nested paragraph starts on the same line, right after the list item, without any whitespace.

@paride
Copy link

paride commented Jan 23, 2022

I can confirm the described behavior, happening with Glow 1.4.1.

@muesli muesli added the bug Something isn't working label Oct 12, 2022
@muesli muesli transferred this issue from charmbracelet/glow Oct 12, 2022
@muesli muesli added the renderer Everything related to the markdown renderer label Oct 12, 2022
@testinfected
Copy link

testinfected commented Jan 23, 2024

I was wondering what is the status of this issue. I saw that several bugs related to list indentation have been reported: #170 and #225 (and maybe more).

I willing to fix this and submit a PR if somebody can point me in the right direction. I'm guessing that I need to look into elements.go and listitem.go.

Also an explanation of the rationale behind the following commit would help: dadf4bb

Cheers

@testinfected
Copy link

See muesli/reflow#70

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working renderer Everything related to the markdown renderer
Projects
None yet
Development

No branches or pull requests

4 participants