~sircmpwn/sr.ht-dev

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
2 2

[PATCH core.sr.ht v2] Add strikethrough support to SrhtRenderer

Details
Message ID
<20220722180514.6611-1-jack@jpgleeson.com>
DKIM signature
pass
Download raw message
Patch: +2 -1
---
This patch adds del to the html sanitize
whitelist, allowing strikethroughs.
 srht/markdown.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/srht/markdown.py b/srht/markdown.py
index 5005542..4b8431b 100644
--- a/srht/markdown.py
+++ b/srht/markdown.py
@@ -12,7 +12,7 @@ import mistletoe as m
from mistletoe.span_token import SpanToken, RawText
import re

SRHT_MARKDOWN_VERSION = 14
SRHT_MARKDOWN_VERSION = 15

class PlainLink(SpanToken):
    """
@@ -182,6 +182,7 @@ _sanitizer = bleach.sanitizer.Cleaner(
        "h1", "h2", "h3", "h4", "h5", "h6",
        "details", "summary",
        "abbr", "dfn",
        "del",
    ],
    attributes={**bleach.sanitizer.ALLOWED_ATTRIBUTES, **_sanitizer_attrs},
    protocols=[
-- 
2.36.1

[core.sr.ht/patches] build success

builds.sr.ht <builds@sr.ht>
Details
Message ID
<CLMDWYBN7BD1.1YS1OXXZPRV3J@cirno2>
In-Reply-To
<20220722180514.6611-1-jack@jpgleeson.com> (view parent)
DKIM signature
missing
Download raw message
core.sr.ht/patches: SUCCESS in 3m46s

[Add strikethrough support to SrhtRenderer][0] v2 from [jack gleeson][1]

[0]: https://lists.sr.ht/~sircmpwn/sr.ht-dev/patches/34095
[1]: jack@jpgleeson.com

✓ #807233 SUCCESS core.sr.ht/patches/alpine.yml    https://builds.sr.ht/~sircmpwn/job/807233
✓ #807235 SUCCESS core.sr.ht/patches/debian.yml    https://builds.sr.ht/~sircmpwn/job/807235
✓ #807234 SUCCESS core.sr.ht/patches/archlinux.yml https://builds.sr.ht/~sircmpwn/job/807234
Details
Message ID
<CLOPNL9GE3YS.47S0Z2SY4IXW@taiga>
In-Reply-To
<20220722180514.6611-1-jack@jpgleeson.com> (view parent)
DKIM signature
pass
Download raw message
Thanks!

To git@git.sr.ht:~sircmpwn/core.sr.ht
   d5f6a87..822f2cf  master -> master
Reply to thread Export thread (mbox)