Skip to content

Commit 787666b

Browse files
committed
Add section on numbering unordered list items
1 parent 0eb2d27 commit 787666b

2 files changed

Lines changed: 39 additions & 1 deletion

File tree

_basic-syntax/unordered-lists.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,44 @@ To create an unordered list, add dashes (`-`), asterisks (`*`), or plus signs (`
173173
</tbody>
174174
</table>
175175

176+
#### Starting Unordered List Items With Numbers
177+
178+
If you need to start an unordered list item with a number followed by a period, you can use a backslash (`\`) to [escape](#escaping-characters) the period.
179+
180+
<table class="table table-bordered">
181+
<thead class="thead-light">
182+
<tr>
183+
<th>Markdown</th>
184+
<th>HTML</th>
185+
<th>Rendered Output</th>
186+
</tr>
187+
</thead>
188+
<tbody>
189+
<tr>
190+
<td>
191+
<code class="highlighter-rouge">
192+
- 1968\. A great year!<br/>
193+
- I think 1969 was second best.
194+
</code>
195+
</td>
196+
<td>
197+
<code class="highlighter-rouge">
198+
&lt;ul&gt;<br>
199+
&lt;li&gt;1968. A great year!&lt;/li&gt;<br/>
200+
&lt;li&gt;I think 1969 was second best.&lt;/li&gt;<br/>
201+
&lt;/ul&gt;
202+
</code>
203+
</td>
204+
<td>
205+
<ul>
206+
<li>1968. A great year!</li>
207+
<li>I think 1969 was second best.</li>
208+
</ul>
209+
</td>
210+
</tr>
211+
</tbody>
212+
</table>
213+
176214
#### Unordered List Best Practices
177215

178216
Markdown applications don’t agree on how to handle different delimiters in the same list. For compatibility, don't mix and match delimiters in the same list — pick one and stick with it.

basic-syntax.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
layout: default
33
title: Basic Syntax
44
description: The Markdown elements outlined in John Gruber's design document.
5-
last_modified_at: 2020-12-13
5+
last_modified_at: 2021-04-21
66
---
77

88
{% include syntax.html type="basic" syntax-id="overview" %}

0 commit comments

Comments
 (0)