fix glossary footnotes

This commit is contained in:
anarsec 2024-11-22 20:19:50 -05:00
parent aafcc0969b
commit cf2025b3a6
No known key found for this signature in database
2 changed files with 5 additions and 5 deletions

View file

@ -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)
] ]

View file

@ -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