markdown: use hardbreaks to be consistent with previous behaviour of markdown generated content

This commit is contained in:
RhodeCode Admin 2023-07-28 09:38:40 +02:00
parent 8a427f4a24
commit eb5d1c61e3

View file

@ -198,7 +198,7 @@ def get_markdown_renderer_flavored(extensions, output_format):
class GFM(object):
def convert(self, source):
with pycmarkgfm.parse_gfm(source) as document:
with pycmarkgfm.parse_gfm(source, options=pycmarkgfm.options.hardbreaks) as document:
parsed_md = document.to_commonmark()
return md.convert(parsed_md)