Skip to content

Instantly share code, notes, and snippets.

@schlueter
Last active August 29, 2023 21:20
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • 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

@ScienceTony
Copy link

Thanks!

@schlueter
Copy link
Author

Glad I could help!

@Tuldsoft
Copy link

Tried all of this for my readme.md, none had any effect.

@schlueter
Copy link
Author

@Tuldsoft Apologies for the late reply. Is this still an issue for you? Do you have a link to an affected README?

@mullaghori
Copy link

How can we do this? ๐Ÿ‘‡

Some text  -  some text
                    -  some text
                    -  some text
Some text  -  some text
                    -  some text
Some text  -  some text

I'm facing trouble in it! It isn't working for me ๐Ÿ˜”

@mullaghori
Copy link

How can we do this? ๐Ÿ‘‡

Some text  -  some text
                    -  some text
                    -  some text
Some text  -  some text
                    -  some text
Some text  -  some text

I'm facing trouble in it! It isn't working for me ๐Ÿ˜”

Look at my comment, it isn't converted to a list why? ๐Ÿค”

@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