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