update most guides

This commit is contained in:
anarsec 2023-07-11 00:35:54 +00:00
parent be05046783
commit 3ce6491c8f
No known key found for this signature in database
21 changed files with 86 additions and 79 deletions

View file

@ -90,6 +90,9 @@ class Converter:
# Grab the description
description = re.search(r'^(.*?)\<\!\-\- more \-\-\>', markdown_content, re.DOTALL | re.MULTILINE).group(1).strip("\n ")
# Add the intro heading
markdown_content = f"# Introduction\n\n{markdown_content}"
# Parse the description
description_md_path = pathlib.Path(workingDirectory) / "description.md"
description_txt_path = pathlib.Path(workingDirectory) / "description.txt"
@ -156,6 +159,7 @@ class Converter:
backimage: "{back_image.name}",
lastediteddate: "{toml_front_matter["extra"]["dateedit"]}",
description: "{description}",
subtitle: "{toml_front_matter.get("description")}",
content
)
{typst_path.open().read()}