python-creole icon indicating copy to clipboard operation
python-creole copied to clipboard

creole2html using blog_line_breaks=False breaks headlines

Open bernhardreiter opened this issue 2 years ago • 0 comments

>>> import creole
>>> creole.__version__
'1.4.10'
>>> creole2html("\n== heading \n\nWiki style\\\\line breaks.", blog_line_breaks=False)
'<p>== heading </p>\n\n<p>Wiki style<br />\nline breaks.</p>'
>>> creole2html("\n== heading \n\nWiki style\\\\line breaks.", blog_line_breaks=True)
'<h2>heading</h2>\n\n<p>Wiki style<br />\nline breaks.</p>'

IMO using blog_line_breaks=True as default is not a good idea as it does not adhere to the creole 1.0 standard.

bernhardreiter avatar Jun 30 '23 13:06 bernhardreiter