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

Message ID
DKIM signature
Download raw message
Patch: +1 -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
 scmsrht/formatting.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scmsrht/formatting.py b/scmsrht/formatting.py
index e56d072..36ef0ac 100644
--- a/scmsrht/formatting.py
+++ b/scmsrht/formatting.py
@@ -33,7 +33,7 @@ def format_readme(cache_prefix, content_hash, name, content_getter, user_obj,

    basename, ext = os.path.splitext(name)
    if ext in ['.md', '.markdown']:
        html = markdown(raw, ["h1", "h2", "h3", "h4", "h5"],
        html = markdown(raw,
        # Unsupported/unknown markup type.
Export thread (mbox)