Reduce priority of subreddit, redditor markdown rules.
So that you can put /r/ inside of a link []() and the link takes precedence.
This commit is contained in:
parent
a01011230d
commit
1be7664c6d
1 changed files with 2 additions and 2 deletions
|
@ -154,10 +154,10 @@ class VoussoirInline(mistune.InlineLexer):
|
|||
default_rules.insert(0, 'supers_many')
|
||||
default_rules.insert(0, 'footnote_link')
|
||||
default_rules.insert(0, 'footnote_text')
|
||||
default_rules.insert(0, 'subreddit')
|
||||
default_rules.insert(0, 'redditor')
|
||||
default_rules.insert(0, 'dash_spacer')
|
||||
default_rules.insert(0, 'youtube_embed')
|
||||
default_rules.append('subreddit')
|
||||
default_rules.append('redditor')
|
||||
|
||||
def __init__(self, renderer, **kwargs):
|
||||
rules = VoussoirInlineGrammar()
|
||||
|
|
Loading…
Reference in a new issue