trentm / django-markdown-deux

A django app that provides Markdown-related template tags using the python-markdown2 library.
Other
288 stars 62 forks source link

<br> elements showing up in lists #19

Open gunthercox opened 8 years ago

gunthercox commented 8 years ago

When the break-on-newline setting is set to True, line breaks are inserted into lists.

settings.py

MARKDOWN_DEUX_STYLES = {
    "default": {
        "extras": {
            "break-on-newline": True,
        }
    }
}

For example, when this setting is enabled a markdown list with nested list items renders like this: image

To me, it would make sense if the line breaks were not rendered within list element so that the appearence would look more like this: image

Would you consider this a bug?

oskarko commented 7 years ago

did you resolve this? I have the same issue

gunthercox commented 7 years ago

Hi @oskarko, I resolved this by not using the django-markdown-deux package. Sadly it does not appear to be actively maintained. I'd recommend taking a look at one of the core markdown packages for Python such as https://pypi.python.org/pypi/Markdown as an alternative.