mirror of
https://0xacab.org/anarsec/anarsec.guide.git
synced 2025-06-24 22:40:33 -04:00
fix glossary footnotes
This commit is contained in:
parent
aafcc0969b
commit
cf2025b3a6
2 changed files with 5 additions and 5 deletions
|
@ -78,23 +78,23 @@
|
||||||
show heading.where(level: 1): it => {
|
show heading.where(level: 1): it => {
|
||||||
block(width: 100%)[
|
block(width: 100%)[
|
||||||
#set align(center)
|
#set align(center)
|
||||||
#set text(size: 22pt, font: "Jost")
|
#set text(hyphenate: false, size: 22pt, font: "Jost")
|
||||||
#text(underline(it.body))
|
#text(underline(it.body))
|
||||||
#v(10pt)
|
#v(10pt)
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
show heading.where(level: 2): it => block(width: 100%)[
|
show heading.where(level: 2): it => block(width: 100%)[
|
||||||
#set text(size: 16pt, font: "Jost")
|
#set text(hyphenate: false, size: 16pt, font: "Jost")
|
||||||
#text(it.body)
|
#text(it.body)
|
||||||
#v(10pt)
|
#v(10pt)
|
||||||
]
|
]
|
||||||
show heading.where(level: 3): it => block(width: 100%)[
|
show heading.where(level: 3): it => block(width: 100%)[
|
||||||
#set text(size: 13pt, font: "Jost", style: "italic")
|
#set text(hyphenate: false, size: 13pt, font: "Jost", style: "italic")
|
||||||
#text(it.body)
|
#text(it.body)
|
||||||
#v(10pt)
|
#v(10pt)
|
||||||
]
|
]
|
||||||
show heading.where(level: 4): it => block(width: 100%)[
|
show heading.where(level: 4): it => block(width: 100%)[
|
||||||
#set text(size: 11pt, font: "Jost")
|
#set text(hyphenate: false, size: 11pt, font: "Jost")
|
||||||
#text(underline(it.body))
|
#text(underline(it.body))
|
||||||
#v(10pt)
|
#v(10pt)
|
||||||
]
|
]
|
||||||
|
|
|
@ -152,7 +152,7 @@ class Converter:
|
||||||
|
|
||||||
# List glossary entries that appear in the Markdown content
|
# List glossary entries that appear in the Markdown content
|
||||||
glossary_entries = set()
|
glossary_entries = set()
|
||||||
for match in re.findall(r'\[.*?\]\(/glossary\/?#(.*?)\)', markdown_content):
|
for match in re.findall(r'\[.*?\]\((?:|/fr)/glossary\/?#(.*?)\)', markdown_content):
|
||||||
glossary_entries.add(slugify.slugify(match))
|
glossary_entries.add(slugify.slugify(match))
|
||||||
|
|
||||||
# Add glossary entries to the Markdown content
|
# Add glossary entries to the Markdown content
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue