added latex support
This commit is contained in:
parent
5bd9e26a49
commit
12f4670533
3 changed files with 28 additions and 1 deletions
|
@ -3,6 +3,7 @@ from collections.abc import Sequence
|
|||
from pathlib import Path
|
||||
from typing import Any, override
|
||||
|
||||
from l2m4m import LaTeX2MathMLExtension
|
||||
from markdown import Markdown
|
||||
from markdown.extensions.abbr import AbbrExtension
|
||||
from markdown.extensions.attr_list import AttrListExtension
|
||||
|
@ -157,6 +158,7 @@ def md_to_html(
|
|||
SaneListExtension(),
|
||||
MarkdownInHtmlExtension(),
|
||||
EscapeAllExtension(hardbreak=True),
|
||||
LaTeX2MathMLExtension(),
|
||||
]
|
||||
kwargs: dict[str, Any] = {
|
||||
"extensions": extensions,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue