Show More
@@ -142,7 +142,7 b' class MarkupRenderer(object):' | |||
|
142 | 142 | return '<br />' + source.replace("\n", '<br />') |
|
143 | 143 | |
|
144 | 144 | @classmethod |
|
145 |
def markdown(cls, source, safe=True, flavored= |
|
|
145 | def markdown(cls, source, safe=True, flavored=True, mentions=False): | |
|
146 | 146 | # It does not allow to insert inline HTML. In presence of HTML tags, it |
|
147 | 147 | # will replace them instead with [HTML_REMOVED]. This is controlled by |
|
148 | 148 | # the safe_mode=True parameter of the markdown method. |
@@ -170,7 +170,7 b' class MarkupRenderer(object):' | |||
|
170 | 170 | except Exception: |
|
171 | 171 | log.exception('Error when rendering Markdown') |
|
172 | 172 | if safe: |
|
173 |
log.debug('Fallback |
|
|
173 | log.debug('Fallback to render in plain mode') | |
|
174 | 174 | return cls.plain(source) |
|
175 | 175 | else: |
|
176 | 176 | raise |
@@ -189,7 +189,8 b' class MarkupRenderer(object):' | |||
|
189 | 189 | |
|
190 | 190 | source = safe_unicode(source) |
|
191 | 191 | try: |
|
192 |
docutils_settings = dict( |
|
|
192 | docutils_settings = dict( | |
|
193 | [(alias, None) for alias in | |
|
193 | 194 |
|
|
194 | 195 | |
|
195 | 196 | docutils_settings.update({'input_encoding': 'unicode', |
General Comments 0
You need to be logged in to leave comments.
Login now