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
2020-06-02 18:05:58 +02:00

12 lines
197 B
Python

import markdown
def md_to_html(md: str) -> str:
html = markdown.markdown(
md,
output_format="html5",
extensions=[
"nl2br",
]
)
return html