Domanda

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.

È stato utile?

Soluzione

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

Altri suggerimenti

Just hit space multiple spaces for soft-breaks; (·) was just for notation

try this lesson Here

It's really pretty easy:-

In pure markdown you can add dot like this:-

- Hello
- Hello

In markdown with help of HTML you can add dot like this:-

<li> Hello
<li> Hello

DONE....!!!

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top