~sircmpwn/sr.ht-dev

[PATCH man.sr.ht v10 4/6] Replace misaka (hoedown) with mistletoe

Details
Message ID
<WqRn4yBxRXfetdia04tgGk9ZrQO996jI1txT7rXXCkrgDSt3gfOCfBS1eSDtoOHnRGQyeX2hH67gJcT_u2VY-5VDOSMcrvBvlzr498ey7gI=@protonmail.com>
DKIM signature
pass
Download raw message
Patch: +0 -1
It looked like using hoedown (through misaka), which is very
unmaintained, was leading to a lot of issues (see [0]). This replaces
misaka by mistletoe [1], without losing any functionality (I hope).

This affects the call to 'markdown()', removing the now-redundant
argument for the tag whitelist.

[0]: https://todo.sr.ht/~sircmpwn/sr.ht/20
[1]: https://github.com/miyuchina/mistletoe
---
 mansrht/blueprints/html.py | 1 -
 1 file changed, 1 deletion(-)

diff --git a/mansrht/blueprints/html.py b/mansrht/blueprints/html.py
index 2ce1398..b39dbc3 100644
--- a/mansrht/blueprints/html.py
+++ b/mansrht/blueprints/html.py
@@ -145,7 +145,6 @@ def content(wiki, path, is_root=False, **kwargs):
        if tree["name"].endswith(".md"):
            html = markdown(
                md,
                ["h1", "h2", "h3", "h4", "h5"],
                baselevel=3,
                link_prefix=link_prefix,
            )
-- 
2.24.3
Export thread (mbox)