From 5163994b19197eef2fc6f46e644ef976980a6f4c Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Oct 21 2016 09:27:02 +0000 Subject: With the markdown extensions, no need to hack anything anymore --- diff --git a/pagure/lib/__init__.py b/pagure/lib/__init__.py index fbbf808..26aa32d 100644 --- a/pagure/lib/__init__.py +++ b/pagure/lib/__init__.py @@ -2909,17 +2909,7 @@ def text2markdown(text, extended=True): ) if text: - # Hack to allow blockquotes to be marked by ~~~ - ntext = [] - indent = False - for line in text.split('\n'): - if line.startswith('~~~'): - indent = not indent - continue - if indent: - line = ' %s' % line - ntext.append(line) - return clean_input(md_processor.convert('\n'.join(ntext))) + return clean_input(md_processor.convert(text)) return ''