import markdown output = markdown.markdown(''' # Step 1 # Step 2 * item 1 * item 2 ''') print(output)