We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 67b1f89 commit b8ca1e0Copy full SHA for b8ca1e0
1 file changed
links-to-html.lua
@@ -1,4 +1,6 @@
1
function Link(el)
2
- el.target = string.gsub(el.target, "%.md", ".html")
+ if not el.target:match("^https?://") then
3
+ el.target = el.target:gsub("%.md$", ".html")
4
+ end
5
return el
6
end
0 commit comments