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

Fix rendering of lists #122

Merged
merged 2 commits into from
Sep 16, 2024
Merged

Commits on Sep 12, 2024

  1. Support multi-paragraph definition lists

    The AST hierarchy for a list item is always List > Item > Paragraph.
    Emit newlines when visiting the Paragraph node instead of the Item and
    List so that Items with multiple Paragraphs and nested Lists correctly
    render with just the right number of line breaks.
    
    Signed-off-by: Cory Snider <[email protected]>
    corhere committed Sep 12, 2024
    Configuration menu
    Copy the full SHA
    f486e72 View commit details
    Browse the repository at this point in the history
  2. Stop over-indenting lists that are not nested

    List items are already indented paragraphs. There is no need to also
    increase the relative inset unless the list is nested inside another
    list.
    
    Signed-off-by: Cory Snider <[email protected]>
    corhere committed Sep 12, 2024
    Configuration menu
    Copy the full SHA
    149c352 View commit details
    Browse the repository at this point in the history