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-07-06 20:35:32 +02:00
|
|
|
"acros.utils.wikilinks"
|
2020-06-01 20:26:00 +02:00
|
|
|
]
|
|
|
|
)
|
|
|
|
return html
|