Skip to content

Excess newlines when bullet points are unindented multiple levels #842

@lievendf

Description

@lievendf

The following snippet:

Available targets (default target: build) and dependencies:

- build
	- package
		- package-pl
			- compile
				- create-dbs
					- create-db
		- package-resources

is displayed as:

  Available targets (default target: build) and dependencies:

  • build
    • package
      • package-pl
        • compile
          • create-dbs
            • create-db


      • package-resources

Notice the excess newlines before "package-resources".
It seems that for every extra unindentation level a newline is added before the item.

Setup

  • Windows 11
  • cmd (cmder)
  • Windows Terminal

To Reproduce
Steps to reproduce the behavior:

  • Save the above example to a .md file
  • Open the file in Glow

Expected behavior
No excess newlines are expected.

Screenshots
Image

As comparison, this is how this snippet is shown on Gitlab:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions