update @ Tue 1 Nov 03:31:50 EET 2022

Signed-off-by: Ari Archer <ari.web.xyz@gmail.com>
This commit is contained in:
Ari Archer 2022-11-01 03:31:50 +02:00
parent 3c6b949a08
commit 764445111d
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: A50D5B4B599AF8A2
2 changed files with 2 additions and 5 deletions

View file

@ -84,7 +84,7 @@ body {
text-rendering: optimizeSpeed;
}
h1 {
header > h1 {
text-align: center;
margin: 1em;
font-size: 2em;

View file

@ -258,10 +258,9 @@ class AddHeaderLinks(Treeprocessor):
"h5": 0.87,
"h6": 0.76,
}
all_headings: Tuple[str] = tuple(f"h{hl}" for hl in range(2, 7))
for idx, elem in enumerate(root):
if elem.tag not in all_headings:
if elem.tag not in heading_sizes_em:
continue
gen_id: str = sanitise_title(elem.text, ids)
@ -509,8 +508,6 @@ def build(config: Dict) -> Tuple[int, Dict]:
AddHeaderLinksExt(),
],
)
.replace("<h1>", "<h2>")
.replace("<h1/>", "<h2/>")
.replace("<pre>", '<pre focusable="true" role="code" tabindex="0">')
.replace(
"<blockquote>", '<blockquote focusable="true" tabindex="0">'