DEV Community 👩‍💻👨‍💻

Erik Smith
Erik Smith

Posted on

How to Escape Numbered Lists in Markdown

Automatic creation of numbered (or ordered) lists in markdown doesn't always display as you want. When you need to manually control numbering, and don't mind losing the other list formatting styles, you can escape the leading 1., like so, 1/.

Examples

1. Ordered list item numbered one.
3. Ordered list item numbered two.
Enter fullscreen mode Exit fullscreen mode
  1. Ordered list item numbered one.
  2. Ordered list item numbered two.
1\. A line beginning with `1.`.
3\. A line beginning with `3.`.
Enter fullscreen mode Exit fullscreen mode

1. A line beginning with 1..
3. A line beginning with 3..

Top comments (0)

🌖🌗🌘 Turn on dark mode in Settings