forked from kate/uniborg
Fix markdown parse edge case
This commit is contained in:
parent
c41792af6b
commit
a254c113a7
|
@ -102,6 +102,8 @@ def parse(message, old_entities=None):
|
||||||
# Skip already existing entities if we're at one
|
# Skip already existing entities if we're at one
|
||||||
if i == e.offset:
|
if i == e.offset:
|
||||||
i += e.length
|
i += e.length
|
||||||
|
else:
|
||||||
|
after += 1
|
||||||
|
|
||||||
# Find the first pattern that matches
|
# Find the first pattern that matches
|
||||||
for pattern, parser in MATCHERS:
|
for pattern, parser in MATCHERS:
|
||||||
|
|
Loading…
Reference in New Issue