Saber CN
Saber CN

Reputation: 795

In Markdown, how do I start a line with a number without creating a list?

I want to start a line with a number in Markdown without it creating a list.

1. so my next line

will be parallel to the first

    1. not indented  

like this

Upvotes: 63

Views: 14130

Answers (3)

danissimo
danissimo

Reputation: 442

Start the line with a number and escape the dot after it: https://www.markdownguide.org/basic-syntax/#starting-unordered-list-items-with-numbers

1968\. A great year!

Upvotes: 1

mahemoff
mahemoff

Reputation: 46469

Use an invisible character:

⁣1.

I did this as my MD processor didn't support the 1\. escaping notation used in Ethan's answer here.

Upvotes: 12

Ethan Furman
Ethan Furman

Reputation: 69081

From the Markdown Syntax Documentation:

It’s worth noting that it’s possible to trigger an ordered list by accident, by writing something like this:

1986. What a great season.

In other words, a number-period-space sequence at the beginning of a line. To avoid this, you can backslash-escape the period:

1986\. What a great season.

Upvotes: 96

Related Questions