I am using the python markdown module to allow some markdown formatting of text input.
There is one case I can't figure out:
If I use a line break followed by one or more minus symbols "-", but no other symbols, the last line will be displayed as <h2> instead or additional to other styles. Happens at the end of unordered lists sometimes.
This is unexpected for me and I couldn't find something on it in the documentation. Is this correct?
import markdown
print(markdown.markdown("Why is this h2 and not p? \n-"))
# <h2>Why is this h2 and not p?</h2>