Use lists without requiring a line break above them, as in GitHub flavoured markdown.
This markdown:
This text comes before the list - list item 1 - list item 2
renders as this HTML:
<p>This text comes before the list</p> <ul> <li>list item 1</li> <li>list item 2</li> </ul>
Install from PyPI:
pip install mdx-breakless-lists
from markdown import markdown
html = markdown(text, extensions=['mdx_breakless_lists'])