Skip to content

Commit 51390d7

Browse files
microdndMico
andauthored
handle ol start value is not number (#127)
Co-authored-by: Mico <mico_wu@trendmicro.com>
1 parent 50b4640 commit 51390d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

markdownify/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ def convert_list(self, el, text, convert_as_inline):
326326
def convert_li(self, el, text, convert_as_inline):
327327
parent = el.parent
328328
if parent is not None and parent.name == 'ol':
329-
if parent.get("start"):
329+
if parent.get("start") and str(parent.get("start")).isnumeric():
330330
start = int(parent.get("start"))
331331
else:
332332
start = 1

0 commit comments

Comments
 (0)