update markdown extensions
This commit is contained in:
parent
12f4670533
commit
eacaeba2ab
2 changed files with 9 additions and 6 deletions
|
@ -59,9 +59,7 @@ IGNORELIST = [".marksman.toml"]
|
||||||
class ZonaConfig:
|
class ZonaConfig:
|
||||||
base_url: str = "/"
|
base_url: str = "/"
|
||||||
# dictionary where key is name, value is url
|
# dictionary where key is name, value is url
|
||||||
sitemap: SitemapConfig = field(
|
sitemap: SitemapConfig = field(default_factory=lambda: {"Home": "/"})
|
||||||
default_factory=lambda: {"Home": "/"}
|
|
||||||
)
|
|
||||||
# list of globs relative to content that should be ignored
|
# list of globs relative to content that should be ignored
|
||||||
ignore: list[str] = field(default_factory=lambda: IGNORELIST)
|
ignore: list[str] = field(default_factory=lambda: IGNORELIST)
|
||||||
markdown: MarkdownConfig = field(default_factory=MarkdownConfig)
|
markdown: MarkdownConfig = field(default_factory=MarkdownConfig)
|
||||||
|
|
|
@ -4,6 +4,8 @@ from pathlib import Path
|
||||||
from typing import Any, override
|
from typing import Any, override
|
||||||
|
|
||||||
from l2m4m import LaTeX2MathMLExtension
|
from l2m4m import LaTeX2MathMLExtension
|
||||||
|
|
||||||
|
# from l2m4m import LaTeX2MathMLExtension
|
||||||
from markdown import Markdown
|
from markdown import Markdown
|
||||||
from markdown.extensions.abbr import AbbrExtension
|
from markdown.extensions.abbr import AbbrExtension
|
||||||
from markdown.extensions.attr_list import AttrListExtension
|
from markdown.extensions.attr_list import AttrListExtension
|
||||||
|
@ -18,9 +20,12 @@ from markdown.extensions.toc import TocExtension
|
||||||
from markdown.treeprocessors import Treeprocessor
|
from markdown.treeprocessors import Treeprocessor
|
||||||
from pygments.formatters.html import HtmlFormatter
|
from pygments.formatters.html import HtmlFormatter
|
||||||
from pymdownx.betterem import BetterEmExtension
|
from pymdownx.betterem import BetterEmExtension
|
||||||
|
from pymdownx.caret import InsertSupExtension
|
||||||
from pymdownx.escapeall import EscapeAllExtension
|
from pymdownx.escapeall import EscapeAllExtension
|
||||||
from pymdownx.inlinehilite import InlineHiliteExtension
|
from pymdownx.inlinehilite import InlineHiliteExtension
|
||||||
|
from pymdownx.smartsymbols import SmartSymbolsExtension
|
||||||
from pymdownx.superfences import SuperFencesCodeExtension
|
from pymdownx.superfences import SuperFencesCodeExtension
|
||||||
|
from pymdownx.tilde import DeleteSubExtension
|
||||||
|
|
||||||
from zona import util
|
from zona import util
|
||||||
from zona.config import ZonaConfig
|
from zona.config import ZonaConfig
|
||||||
|
@ -152,9 +157,9 @@ def md_to_html(
|
||||||
TableExtension(),
|
TableExtension(),
|
||||||
AbbrExtension(),
|
AbbrExtension(),
|
||||||
SmartyExtension(),
|
SmartyExtension(),
|
||||||
"pymdownx.tilde",
|
InsertSupExtension(),
|
||||||
"pymdownx.caret",
|
DeleteSubExtension(),
|
||||||
"pymdownx.smartsymbols",
|
SmartSymbolsExtension(),
|
||||||
SaneListExtension(),
|
SaneListExtension(),
|
||||||
MarkdownInHtmlExtension(),
|
MarkdownInHtmlExtension(),
|
||||||
EscapeAllExtension(hardbreak=True),
|
EscapeAllExtension(hardbreak=True),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue