Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/r2/r2/lib/contrib/markdown.py b/r2/r2/lib/contrib/markdown.py
- index 854ff01..2d344f0 100644
- --- a/r2/r2/lib/contrib/markdown.py
- +++ b/r2/r2/lib/contrib/markdown.py
- @@ -201,6 +201,7 @@ class _Markdown:
- text = self._DoAutoLinks(text)
- text = self._EncodeAmpsAndAngles(text)
- text = self._DoItalicsAndBold(text)
- + text = self._DoBlink(text)
- text = self.r_NewLine.sub(" <br%s\n" % self.emptyelt, text)
- return text
- @@ -530,6 +531,11 @@ class _Markdown:
- text = self.r_DoItalics.sub(r"<em>\2</em>", text)
- return text
- + r_DoBlink = re.compile(r"(\||_) (?=\S) (.+?) (?<=\S) ", re.VERBOSE | re.S)
- + def _DoBlink(self, text):
- + text = self.r_DoBlink.sub(r'<span style="text-decoration: blink;">\2</span>', text)
- + return text
- +
- r_start = re.compile(r"^", re.M)
- ####r_DoBlockQuotes1 = re.compile(r"^[ \t]*>[ \t]?", re.M)
- r_DoBlockQuotes1 = re.compile(r"^[ \t]*>[ \t]?", re.M)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement