e2ee update

This commit is contained in:
anarsec 2024-04-16 21:35:50 +00:00
parent 3c2946baac
commit af1bc7fc97
No known key found for this signature in database
4 changed files with 26 additions and 22 deletions

View file

@ -125,7 +125,7 @@ class Converter:
# Add recommendations to the Markdown content
recommendations = re.search(r'\+{3}.*?\+{3}(.*)', recommendations_file.open().read(), re.MULTILINE | re.DOTALL).group(1)
markdown_content += f"\n\n# Recommendations\n\n{recommendations}\n\n"
markdown_content += f"\n\n# Appendix: Recommendations\n\n{recommendations}\n\n"
# Make all images paths relative in the Markdown content
for extension in ["jpg", "png", "webp", "jpeg", "gif"]:
@ -141,7 +141,7 @@ class Converter:
# Add glossary entries to the Markdown content
if glossary_entries:
markdown_content += "\n\n# Glossary\n\n"
markdown_content += "\n\n# Appendix: Glossary\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"