aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--godocs.py4
-rw-r--r--requirements.txt2
2 files changed, 3 insertions, 3 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}")
diff --git a/requirements.txt b/requirements.txt
index 94f6f1a..b3bad09 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,4 +1,4 @@
click==8.1.8
markdown==3.7
Jinja2==3.1.6
-Markdown==3.7
+markdown2==2.5.3