This commit is contained in:
2025-09-24 13:41:43 +02:00
parent bb47b3eec5
commit cfcfc61458
6 changed files with 27 additions and 9 deletions

View File

@@ -37,6 +37,8 @@ do
-e 's|^# |\\newpage\n# |' \
-e 's|^## |\\newpage\n## |' \
-e 's|\[\([^]]*\)\](#\([^)]*\))|[\1](#\L\2)|' \
-e 's|^> \[!todo\]|> \\textcolor{cyan}{TODO:}|' \
-e 's|^> \[!warn\]|> \\textcolor{orange}{WARNING:}|' \
-e "s|https://live.kladjes.nl/uploads|${BASE_DIR}/latex/images|" \
-e "s|\`\`\`mermaid|\`\`\`{.mermaid loc=${BASE_DIR}/latex/images/$(basename "$md_src")}|"
download_images "$BUILD_DIR/$md_src"
@@ -57,6 +59,8 @@ sed -i "$TEMP_MD_FILE" \
-e 's|^#||' \
-e 's|^# |\\newpage\n# |' \
-e 's|\[\([^]]*\)\](#\([^)]*\))|[\1](#\L\2)|' \
-e 's|^> \[!todo\]|> \\textcolor{cyan}{TODO:}|' \
-e 's|^> \[!warn\]|> \\textcolor{orange}{WARNING:}|' \
-e "s|https://live.kladjes.nl/uploads|${BASE_DIR}/latex/images|" \
-e "s|\`\`\`mermaid|\`\`\`{.mermaid loc=${BASE_DIR}/latex/images/$(basename "$MD_FILE")}|"