django-markdown-deux icon indicating copy to clipboard operation
django-markdown-deux copied to clipboard

<br> elements showing up in lists

Open gunthercox opened this issue 9 years ago • 2 comments

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?

gunthercox avatar Jun 08 '16 15:06 gunthercox

did you resolve this? I have the same issue

oskarko avatar Dec 05 '16 12:12 oskarko

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.

gunthercox avatar Dec 05 '16 12:12 gunthercox