python-creole
python-creole copied to clipboard
creole2html using blog_line_breaks=False breaks headlines
>>> 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.