mirror of
https://0xacab.org/anarsec/anarsec.guide.git
synced 2025-06-24 14:30:35 -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 => {
|
||||
block(width: 100%)[
|
||||
#set align(center)
|
||||
#set text(size: 22pt, font: "Jost")
|
||||
#set text(hyphenate: false, size: 22pt, font: "Jost")
|
||||
#text(underline(it.body))
|
||||
#v(10pt)
|
||||
]
|
||||
}
|
||||
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)
|
||||
#v(10pt)
|
||||
]
|
||||
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)
|
||||
#v(10pt)
|
||||
]
|
||||
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))
|
||||
#v(10pt)
|
||||
]
|
||||
|
|
|
@ -152,7 +152,7 @@ class Converter:
|
|||
|
||||
# List glossary entries that appear in the Markdown content
|
||||
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))
|
||||
|
||||
# Add glossary entries to the Markdown content
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue