when computing <ol><li> numbering, ignore non-<li> previous siblings (#183)
Signed-off-by: chrispy <chrispy@synopsys.com>
This commit is contained in:
committed by
GitHub
parent
d0c4b85fd5
commit
c52a50e66a
@@ -443,7 +443,7 @@ class MarkdownConverter(object):
|
||||
start = int(parent.get("start"))
|
||||
else:
|
||||
start = 1
|
||||
bullet = '%s.' % (start + parent.index(el))
|
||||
bullet = '%s.' % (start + len(el.find_previous_siblings('li')))
|
||||
else:
|
||||
depth = -1
|
||||
while el:
|
||||
|
||||
Reference in New Issue
Block a user