How to type the dot in github markdown list?

Josan picture Josan · Jan 31, 2014 · Viewed 14.7k times · Source

I try to use the markdown format to write a list in my readme file.

But in the github flavoured markdown, it using a dot "⋅" not period(".") to indicate the align for list.

How to type such dot from regular US/English keyboard? I tried to copy and paste to github, it's not work.

Thanks.

Answer

PressingOnAlways picture PressingOnAlways · Jan 31, 2014

Have you tried * (asterisk) your points? Those "dots" in that link is just spaces. They put that in the manual so you can visualize the spaces, not that it is a literal "dot" character.

Like:

  • This is a point
    • This is a subpoint
  • this is another point.
    • This is another subpoint

What they mean is:

  1. First ordered list item
  2. Another item
    • Unordered sub-list.
  3. Actual numbers don't matter, just that it's a number
    1. Ordered sub-list
  4. And another item.

    You can have properly indented paragraphs within list items. Notice the blank line above, and the leading spaces (at least one, but we'll use three here to also align the raw Markdown).

    To have a line break without a paragraph, you will need to use two trailing spaces.⋅⋅ Note that this line is separate, but within the same paragraph.⋅⋅ (This is contrary to the typical GFM line break behaviour, where trailing spaces are not required.)

    • Unordered list can use asterisks
    • Or minuses
    • Or pluses

Here's the raw code:

1. First ordered list item
2. Another item
  * Unordered sub-list. 
1. Actual numbers don't matter, just that it's a number
  1. Ordered sub-list
4. And another item.

   You can have properly indented paragraphs within list items. Notice the blank line above, and the leading spaces (at least one, but we'll use three here to also align the raw Markdown).

   To have a line break without a paragraph, you will need to use two trailing spaces.⋅⋅
   Note that this line is separate, but within the same paragraph.⋅⋅
   (This is contrary to the typical GFM line break behaviour, where trailing spaces are not required.)

* Unordered list can use asterisks
- Or minuses
+ Or pluses