Skip to content

Instantly share code, notes, and snippets.

@schlueter
Last active August 29, 2023 21:20
Show Gist options
  • Save schlueter/ee90c7097f633ac90d3a9da56e6a69e1 to your computer and use it in GitHub Desktop.
Save schlueter/ee90c7097f633ac90d3a9da56e6a69e1 to your computer and use it in GitHub Desktop.
How to terminate a markdown list

The problem

- one
- two
- three

    not a list item

produces:

  • one

  • two

  • three

    not a list item

Solution using an html tag

- one
- two
- three
<a/>
    not a list item

produces:

  • one
  • two
  • three
not a list item

Solution using a markdown comment

- one
- two
- three

[//]: # (Hello)
    not a list item
  • one
  • two
  • three

not a list item

@bkgelder
Copy link

One more solution - inserting a blank line ends a list. It took me a while to figure this out!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment