Pi66

Home | Repos | About | Blog | Gaza

merodi
A markdown-based static site generator.
git clone https://git.pi66.xyz/merodi

About | Files | Commits | Refs | License


feat: add advanced markdown extensions

Author: pi66
Date: 2026-06-27 00:16
commit: 98bc72e1

Stat

A pyproject.toml 1 +1 -0
M src/build.py 20 +15 -5

Diff

diff --git a/pyproject.toml b/pyproject.toml
index e02f737..a7777c8 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -10,6 +10,7 @@ dependencies = [
     "pywebview",
     "watchdog",
 	"PyGObject",
+	"pymdown-extensions",
 ]

[project.scripts] diff --git a/src/build.py b/src/build.py index 49dec37..ee1c8db 100644 --- a/src/build.py +++ b/src/build.py @@ -68,11 +68,21 @@ def compile_md_to_html(md_file:str, html_dest:str, config =None): md_content = read_file(md_file) raw_html_content = markdown( md_content, ...

Show all

diff --git a/pyproject.toml b/pyproject.toml
index e02f737..a7777c8 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -10,6 +10,7 @@ dependencies = [
     "pywebview",
     "watchdog",
 	"PyGObject",
+	"pymdown-extensions",
 ]

[project.scripts] diff --git a/src/build.py b/src/build.py index 49dec37..ee1c8db 100644 --- a/src/build.py +++ b/src/build.py @@ -68,11 +68,21 @@ def compile_md_to_html(md_file:str, html_dest:str, config =None): md_content = read_file(md_file) raw_html_content = markdown( md_content, - extensions=[ - "extra", - "toc", - "codehilite", - ] +extensions = [ + "extra", + "pymdownx.highlight", + "pymdownx.inlinehilite", + "pymdownx.superfences", + "pymdownx.tilde", + "pymdownx.mark", + "pymdownx.betterem", + "pymdownx.magiclink", + "pymdownx.keys", + "pymdownx.arithmatex", + "pymdownx.details", + "pymdownx.tabbed", + "pymdownx.critic", +] ) filtered_html = html_filter(raw_html_content) html_content = jinja_handler(md_file, filtered_html, config)

// Created by Pi66

// Copyright ©Pi66 2026