~sircmpwn/sr.ht-dev

core.sr.ht: Remove extra # from toc generation v1 PROPOSED

gildarts: 1
 Remove extra # from toc generation

 1 files changed, 2 insertions(+), 1 deletions(-)
#304941 alpine.yml failed
#304942 archlinux.yml failed
#304943 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/13934/mbox | git am -3
Learn more about email & git
View this thread in the archives

[PATCH core.sr.ht] Remove extra # from toc generation Export this patch

Sorry for the confusion on my end with the previous patches.

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

diff --git a/srht/markdown.py b/srht/markdown.py
index 55c0755..ba0ff28 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 = 10
SRHT_MARKDOWN_VERSION = 11

class PlainLink(SpanToken):
    """
@@ -216,6 +216,7 @@ def extract_toc(markup):
            continue
        while cur.level >= level:
            cur = cur.parent
        el.a.extract()
        heading = Heading(
            level=level, name=el.text,
            id=el.attrs.get("id"),
-- 
2.25.1
Does this extract all of the links or just the first one?
Thanks!

To git@git.sr.ht:~sircmpwn/core.sr.ht
   d67a56a..22dca28  master -> master
builds.sr.ht
core.sr.ht/patches: FAILED in 11m24s

[Remove extra # from toc generation][0] from [gildarts][1]

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

✗ #304943 FAILED core.sr.ht/patches/debian.yml    https://builds.sr.ht/~sircmpwn/job/304943
✗ #304941 FAILED core.sr.ht/patches/alpine.yml    https://builds.sr.ht/~sircmpwn/job/304941
✗ #304942 FAILED core.sr.ht/patches/archlinux.yml https://builds.sr.ht/~sircmpwn/job/304942