mirror of
https://0xacab.org/anarsec/anarsec.guide.git
synced 2025-06-08 06:42:56 -04:00
typst styling
This commit is contained in:
parent
6679c65ba9
commit
679f46f7c6
3 changed files with 12 additions and 10 deletions
|
@ -128,7 +128,7 @@ class Converter:
|
|||
markdown_content += f"\n\n# Recommendations\n\n{recommendations}\n\n"
|
||||
|
||||
# Make all images paths relative in the Markdown content
|
||||
for extension in ["jpg", "png", "webp", "jpeg"]:
|
||||
for extension in ["jpg", "png", "webp", "jpeg", "gif"]:
|
||||
markdown_content = re.sub(f'\\(\\/posts/{input_path.parent.name}/(.*?\.{extension})\\)', lambda match: f'({match.group(1)})', markdown_content)
|
||||
|
||||
# Replace all .webp images to .png images in the Markdown content
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue