aboutsummaryrefslogtreecommitdiffstats
path: root/godocs.py
diff options
context:
space:
mode:
authorEddy Pedroni <epedroni@pm.me>2025-04-08 23:34:13 +0200
committerEddy Pedroni <epedroni@pm.me>2025-04-08 23:34:13 +0200
commitd039f2f56e0874866537ab890cfcd14cbb566e76 (patch)
treea76f83ea4f1482ad33c5e1fe235276c08e11c543 /godocs.py
parentdb6e135a777ca67534de4af7d3cb677e2d06ff76 (diff)
Switched to markdown2
Diffstat (limited to 'godocs.py')
-rw-r--r--godocs.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/godocs.py b/godocs.py
index 87396cd..a207c83 100644
--- a/godocs.py
+++ b/godocs.py
@@ -27,7 +27,7 @@ class Page:
def renderPageCallback(template_file: Path, stylesheet_url: str) -> Callable[[Page, str], None]:
""" Callback to process the provided page metadata and output the final page to the filesystem """
from jinja2 import Environment, FileSystemLoader, select_autoescape
- from markdown import markdown
+ from markdown2 import markdown
env = Environment(
loader=FileSystemLoader(template_file.parent),
@@ -38,7 +38,7 @@ def renderPageCallback(template_file: Path, stylesheet_url: str) -> Callable[[Pa
def entries(page: Page) -> Iterator[str]:
for entry in page.entries:
with open(entry, "r") as f:
- yield markdown(f.read(), extensions=["fenced_code", "tables"])
+ yield markdown(f.read(), extras=["fenced-code-blocks", "strike", "tables"])
def render(page: Page, site_title: str, navigation: list[dict[str, str]]) -> None:
print(f"Rendering {page.output}")