From: Humberto A. P. <hum...@pa...> - 2018-12-26 02:53:34
|
Hello Thanks for the library, its super useful: just upgraded from CommonMark for python. Background: I'm used to have some text before labels. This usually works on Github and other places: ######## Some text before list * Item 1 * Item 2 * Item 3 ######## This doesn't seem to work with python-markdown. I only get it to work if I provide ######## Some text before list * Item 1 * Item 2 * Item 3 ######## I tried to fix this with the nl2br extension, via html_en = markdown.markdown(request.form['text_en'], extensions=['nl2br','tables']). But I had no luck. Questions: 1. Am I using the extensions wrong? 1. Is there a way to make python-markdown work the way I described? Thanks! - patife |