mirror of https://github.com/zulip/zulip.git
Support !avatar syntax in bugdown.
(imported from commit 72551c5df96f5b383d3593c9618cc82413d5d95d)
This commit is contained in:
parent
2086ee8979
commit
761c0a0266
|
@ -658,7 +658,10 @@ class Bugdown(markdown.Extension):
|
|||
|
||||
md.parser.blockprocessors.add('ulist', UListProcessor(md.parser), '>hr')
|
||||
|
||||
# Note that !gravatar syntax should be deprecated long term.
|
||||
md.inlinePatterns.add('avatar', Avatar(r'!avatar\((?P<email>[^)]*)\)'), '_begin')
|
||||
md.inlinePatterns.add('gravatar', Avatar(r'!gravatar\((?P<email>[^)]*)\)'), '_begin')
|
||||
|
||||
md.inlinePatterns.add('usermention', UserMentionPattern(mention.find_mentions), '>backtick')
|
||||
md.inlinePatterns.add('emoji', Emoji(r'(?<!\w)(?P<syntax>:[^:\s]+:)(?!\w)'), '_end')
|
||||
md.inlinePatterns.add('link', AtomicLinkPattern(markdown.inlinepatterns.LINK_RE, md), '>backtick')
|
||||
|
|
Loading…
Reference in New Issue