diff options
author | Qrius <[email protected]> | 2025-05-19 09:22:11 +0200 |
---|---|---|
committer | Qrius <[email protected]> | 2025-05-19 09:22:13 +0200 |
commit | ac3da922858d7a5f94a9b62af598f678aac22989 (patch) | |
tree | 7a57e226e199edd8329cb64dc105c863a7d9347d | |
parent | 77e73d70a9b81a7bbd8e49be52612fc62a9f9502 (diff) | |
download | skaldpress-ac3da922858d7a5f94a9b62af598f678aac22989.tar.gz skaldpress-ac3da922858d7a5f94a9b62af598f678aac22989.zip |
-rw-r--r-- | debian/control | 2 | ||||
-rw-r--r-- | pyproject.toml | 2 | ||||
-rw-r--r-- | src/smp/builtins.py | 3 |
3 files changed, 5 insertions, 2 deletions
diff --git a/debian/control b/debian/control index d7d8c3e..a2566be 100644 --- a/debian/control +++ b/debian/control @@ -8,5 +8,5 @@ Rules-Requires-Root: no Package: skaldpress Architecture: any -Depends: python3, python3-markdown-it +Depends: python3, python3-markdown-it python3-mdit-py-plugins Description: Skaldpress diff --git a/pyproject.toml b/pyproject.toml index 88737b4..6a1ccfb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -22,7 +22,7 @@ classifiers = [ "Programming Language :: Python :: 3.13", "Programming Language :: Python :: 3 :: Only", ] -dependencies = ["markdown-it-py"] +dependencies = ["markdown-it-py", "mdit-py-plugins"] [project.optional-dependencies] dev = ["check-manifest", "black", "pyflakes", "mypy", "types-Markdown", "pyinstrument"] diff --git a/src/smp/builtins.py b/src/smp/builtins.py index 6beb224..00d002b 100644 --- a/src/smp/builtins.py +++ b/src/smp/builtins.py @@ -6,6 +6,7 @@ import urllib.error import urllib.parse import datetime from markdown_it import MarkdownIt +from mdit_py_plugins import tasklists_plugin from skaldpress.metadata_parser import extract_parse_yaml_metadata from typing import Any @@ -187,6 +188,8 @@ def smp_builtin_html_from_markdown(macro_processor, text, extensions=list()): MarkdownIt("commonmark", {"breaks": False, "html": True}) .enable("table") .enable("list") + .enable("strikethrough") + .enable(tasklists_plugin) ) for extension in extensions: |