up
All checks were successful
/ publish (push) Successful in 57s

This commit is contained in:
milovann 2024-12-06 15:59:26 +01:00
parent 2aaebcbe65
commit 5ff9c3b39c
2 changed files with 5 additions and 1 deletions

View file

@ -2,6 +2,10 @@
--
-- links-to-html.lua
function Link(el)
if el.content[1].text == "Éditer" then
return el
else
el.target = string.gsub(el.target, "%.md", ".html")
return el
end
end

View file

@ -10,7 +10,7 @@ convert()
if [[ -f ../pages/$filename.md ]]
then
echo "making $filename.html"
pandoc -s ../pages/$filename.md -t html > ../dist/$filename.html --lua-filter=links-to-html.lua
pandoc --verbose -s ../pages/$filename.md -t html > ../dist/$filename.html --lua-filter=links-to-html.lua
fi
}