Skip to content

Commit b8ca1e0

Browse files
authored
Don't convert external markdown to .html links (#8)
1 parent 67b1f89 commit b8ca1e0

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

links-to-html.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
function Link(el)
2-
el.target = string.gsub(el.target, "%.md", ".html")
2+
if not el.target:match("^https?://") then
3+
el.target = el.target:gsub("%.md$", ".html")
4+
end
35
return el
46
end

0 commit comments

Comments
 (0)