mirror of
https://0xacab.org/anarsec/anarsec.guide.git
synced 2025-06-07 22:32:55 -04:00
nophones pt
This commit is contained in:
parent
e6e2300a92
commit
897c1a5d43
6 changed files with 121 additions and 1 deletions
|
@ -144,6 +144,8 @@ class Converter:
|
|||
markdown_content += f"\n\n# Annexe: Recommendations\n\n{recommendations}\n\n"
|
||||
if self.post_lang == 'el':
|
||||
markdown_content += f"\n\n# Appendix: Recommendations\n\n{recommendations}\n\n"
|
||||
if self.post_lang == 'pt':
|
||||
markdown_content += f"\n\n# Appendix: Recommendations\n\n{recommendations}\n\n"
|
||||
if self.post_lang == 'ru':
|
||||
markdown_content += f"\n\n# Appendix: Recommendations\n\n{recommendations}\n\n"
|
||||
|
||||
|
@ -156,7 +158,7 @@ class Converter:
|
|||
|
||||
# List glossary entries that appear in the Markdown content
|
||||
glossary_entries = set()
|
||||
for match in re.findall(r'\[.*?\]\((?:|/fr)(?:|/ru)(?:|/el)/glossary\/?#(.*?)\)', markdown_content):
|
||||
for match in re.findall(r'\[.*?\]\((?:|/fr)(?:|/pt)(?:|/ru)(?:|/el)/glossary\/?#(.*?)\)', markdown_content):
|
||||
glossary_entries.add(slugify.slugify(match))
|
||||
|
||||
# Add glossary entries to the Markdown content
|
||||
|
@ -167,6 +169,8 @@ class Converter:
|
|||
markdown_content += "\n\n# Annexe: Glossaire\n\n"
|
||||
if self.post_lang == 'el':
|
||||
markdown_content += "\n\n# Appendix: Glossary\n\n"
|
||||
if self.post_lang == 'pt':
|
||||
markdown_content += "\n\n# Appendix: Glossary\n\n"
|
||||
if self.post_lang == 'ru':
|
||||
markdown_content += "\n\n# Appendix: Glossary\n\n"
|
||||
for entry, entry_content in glossary.items():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue