1
0
Fork 0
mirror of https://github.com/Findus23/acronomy.git synced 2024-09-19 15:33:45 +02:00
acronomy/acros/utils/conversion.py

13 lines
197 B
Python
Raw Normal View History

2020-06-01 20:26:00 +02:00
import markdown
def md_to_html(md: str) -> str:
html = markdown.markdown(
md,
output_format="html5",
extensions=[
2020-06-02 18:05:58 +02:00
"nl2br",
2020-06-01 20:26:00 +02:00
]
)
return html