Skip to content

Commit 7009861

Browse files
authored
Allow start attribute in ordered lists (#216)
* Allow 'start' attribute in ordered lists * Add test
1 parent f9a19dc commit 7009861

File tree

3 files changed

+20
-0
lines changed

3 files changed

+20
-0
lines changed

readme_renderer/clean.py

+1
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
"h6": ["align"],
5656
"code": ["class"],
5757
"p": ["align"],
58+
"ol": ["start"],
5859
"input": ["type", "checked", "disabled"],
5960
}
6061

tests/fixtures/test_GFM_025.html

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<ol start="3">
2+
<li>Foo</li>
3+
</ol>
4+
<p>Some text</p>
5+
<ol start="2">
6+
<li>
7+
<p>Bar</p>
8+
</li>
9+
<li>
10+
<p>Baz</p>
11+
</li>
12+
</ol>

tests/fixtures/test_GFM_025.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
3. Foo
2+
3+
Some text
4+
5+
2. Bar
6+
7+
1. Baz

0 commit comments

Comments
 (0)