mirror of
https://git.ari.lt/ari.lt/blog.ari.lt.git
synced 2025-02-04 09:39:25 +01:00
update @ Tue 1 Nov 03:31:50 EET 2022
Signed-off-by: Ari Archer <ari.web.xyz@gmail.com>
This commit is contained in:
parent
3c6b949a08
commit
764445111d
2 changed files with 2 additions and 5 deletions
|
@ -84,7 +84,7 @@ body {
|
|||
text-rendering: optimizeSpeed;
|
||||
}
|
||||
|
||||
h1 {
|
||||
header > h1 {
|
||||
text-align: center;
|
||||
margin: 1em;
|
||||
font-size: 2em;
|
||||
|
|
|
@ -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">'
|
||||
|
|
Loading…
Add table
Reference in a new issue