fix accidental recognition of horizontal rule as part of a list
This commit is contained in:
parent
1a8a3132f4
commit
7bbb53fc13
|
@ -409,6 +409,9 @@ class ObsidianLists(Extension):
|
||||||
"""
|
"""
|
||||||
m = self.UL_RE.match(line)
|
m = self.UL_RE.match(line)
|
||||||
if m:
|
if m:
|
||||||
|
if line.lstrip() == '* * *':
|
||||||
|
# this is actually a horizontal rule, don't trip on it
|
||||||
|
return '', -1, -1
|
||||||
return 'ul', len(m.group(1)), -1
|
return 'ul', len(m.group(1)), -1
|
||||||
m = self.OL_RE.match(line)
|
m = self.OL_RE.match(line)
|
||||||
if m:
|
if m:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user