~sircmpwn/sr.ht-dev

core.sr.ht: Add aria param to a tag and remove extra # from toc v2 PROPOSED

gildarts: 1
 Add aria param to a tag and remove extra # from toc

 1 files changed, 3 insertions(+), 3 deletions(-)
#304934 alpine.yml failed
#304936 archlinux.yml failed
#304937 debian.yml failed
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~sircmpwn/sr.ht-dev/patches/13931/mbox | git am -3
Learn more about email & git
View this thread in the archives

[PATCH core.sr.ht v2] Add aria param to a tag and remove extra # from toc Export this patch

---
 srht/markdown.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/srht/markdown.py b/srht/markdown.py
index 391730e..2151557 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 = 9
SRHT_MARKDOWN_VERSION = 10

class PlainLink(SpanToken):
    """
@@ -114,7 +114,7 @@ class SrhtRenderer(m.HTMLRenderer):
        return template.format(attr=attr, inner=inner)

    def render_heading(self, token):
        template = '<h{level} id="{_id}"><a href="#{_id}">#</a>{inner}</h{level}>'
        template = '<h{level} id="{_id}"><a href="#{_id}" aria-hidden="true">#</a>{inner}</h{level}>'
        level = token.level + self.baselevel
        if level > 6:
            level = 6
@@ -217,7 +217,7 @@ def extract_toc(markup):
        while cur.level >= level:
            cur = cur.parent
        heading = Heading(
            level=level, name=el.text,
            level=level, name=el.text[1:],
            id=el.attrs.get("id"),
            children=list(),
            parent=cur
-- 
2.25.1
I already merged v1, can you rebase and split out the aria change?
And bump the markdown version again
builds.sr.ht
core.sr.ht/patches: FAILED in 17m19s

[Add aria param to a tag and remove extra # from toc][0] v2 from [gildarts][1]

[0]: https://lists.sr.ht/~sircmpwn/sr.ht-dev/patches/13931
[1]: mailto:gildarts@orbital.rocks

✗ #304934 FAILED core.sr.ht/patches/alpine.yml    https://builds.sr.ht/~sircmpwn/job/304934
✗ #304936 FAILED core.sr.ht/patches/archlinux.yml https://builds.sr.ht/~sircmpwn/job/304936
✗ #304937 FAILED core.sr.ht/patches/debian.yml    https://builds.sr.ht/~sircmpwn/job/304937