mirror of
https://github.com/Findus23/acronomy.git
synced 2024-09-19 15:33:45 +02:00
12 lines
196 B
Python
12 lines
196 B
Python
import markdown
|
|
|
|
|
|
def md_to_html(md: str) -> str:
|
|
html = markdown.markdown(
|
|
md,
|
|
output_format="html5",
|
|
extensions=[
|
|
"nl2br"
|
|
]
|
|
)
|
|
return html
|