mirror of
https://git.sr.ht/~tsileo/microblog.pub
synced 2025-06-05 21:59:23 +02:00
Tweak Mistletoe autolink
This commit is contained in:
@ -29,7 +29,7 @@ _URL_REGEX = re.compile(
|
|||||||
|
|
||||||
class AutoLink(SpanToken):
|
class AutoLink(SpanToken):
|
||||||
parse_inner = False
|
parse_inner = False
|
||||||
precedence = 10
|
precedence = 1
|
||||||
pattern = _URL_REGEX
|
pattern = _URL_REGEX
|
||||||
|
|
||||||
def __init__(self, match_obj: re.Match) -> None:
|
def __init__(self, match_obj: re.Match) -> None:
|
||||||
|
Reference in New Issue
Block a user