parent
2aaebcbe65
commit
5ff9c3b39c
2 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue