mirror of
https://git.ari.lt/ari.lt/blog.ari.lt.git
synced 2025-02-04 09:39:25 +01:00
update @ Fri 4 Nov 02:46:07 EET 2022
Signed-off-by: Ari Archer <ari.web.xyz@gmail.com>
This commit is contained in:
parent
8f879c46cc
commit
d3d5b7899a
1 changed files with 1 additions and 1 deletions
|
@ -313,7 +313,7 @@ class BetterHeaders(Treeprocessor):
|
||||||
class AddIDLinks(InlineProcessor):
|
class AddIDLinks(InlineProcessor):
|
||||||
"""Add support for <#ID> links"""
|
"""Add support for <#ID> links"""
|
||||||
|
|
||||||
def handleMatch(self, match, data: str) -> tuple[etree.Element, Any, Any]:
|
def handleMatch(self, match, data: str) -> Tuple[etree.Element, Any, Any]:
|
||||||
link: etree.Element = etree.Element("a")
|
link: etree.Element = etree.Element("a")
|
||||||
|
|
||||||
link.text = match.group(1) or "#"
|
link.text = match.group(1) or "#"
|
||||||
|
|
Loading…
Add table
Reference in a new issue