fix accidental recognition of horizontal rule as part of a list

This commit is contained in:
Amy G. Bowersox 2024-08-10 02:53:26 -06:00
parent 1a8a3132f4
commit 7bbb53fc13

View File

@ -409,6 +409,9 @@ class ObsidianLists(Extension):
"""
m = self.UL_RE.match(line)
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
m = self.OL_RE.match(line)
if m: