mirror of
https://0xacab.org/anarsec/anarsec.guide.git
synced 2025-06-07 22:32:55 -04:00
fr final
This commit is contained in:
parent
cf2025b3a6
commit
7546c90696
11 changed files with 77 additions and 72 deletions
|
@ -163,7 +163,12 @@ class Converter:
|
|||
markdown_content += "\n\n# Annexe: Glossaire\n\n"
|
||||
for entry, entry_content in glossary.items():
|
||||
if entry in glossary_entries:
|
||||
markdown_content += f"## {entry_content[0]}\n\n{entry_content[1]}\n\n"
|
||||
markdown_content += f"""
|
||||
```{{=typst}}
|
||||
== {entry_content[0]} <{slugify.slugify(entry_content[0])}>
|
||||
```
|
||||
"""
|
||||
markdown_content += f"\n\n{entry_content[1]}\n\n"
|
||||
|
||||
# Write the Markdown content to a file
|
||||
input_markdown_path = pathlib.Path(workingDirectory) / f"{self.post_id}-markdown.md"
|
||||
|
@ -179,7 +184,7 @@ class Converter:
|
|||
|
||||
# Convert the series markdown to typst
|
||||
series_typst_path = pathlib.Path(workingDirectory) / f"series.typ"
|
||||
subprocess.check_call([str(self.pandoc_binary), "-f", "markdown", "-t", "typst", "--columns", "999999", "-o", series_typst_path, series_markdown_path])
|
||||
subprocess.check_call([str(self.pandoc_binary), "-f", "markdown+raw_attribute", "-t", "typst", "--columns", "999999", "-o", series_typst_path, series_markdown_path])
|
||||
|
||||
# mutlilingual categories
|
||||
category = toml_front_matter["taxonomies"]["categories"][0]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue