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-07-06 20:35:32 +02:00

13 lines
233 B
Python

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