Update replace w/ '.html' filter
This commit is contained in:
1 parent
2e06e8ae5f
commit
e181999204
1 file changed
+6
-2
@@ -1,5 +1,9 @@
|
||||
-- https://stackoverflow.com/questions/40993488/convert-markdown-links-to-html-with-pandoc
|
||||
function Link(el)
|
||||
el.target = string.gsub(el.target, "%.md", ".html")
|
||||
--Replace markdown extension with html extension
|
||||
if string.match(el.target, '.md$') then
|
||||
el.target = string.gsub(el.target, "%.md", "")
|
||||
--Add html extension
|
||||
el.target = el.target .. '.html'
|
||||
end
|
||||
return el
|
||||
end
|
||||
Reference in new issue
Block a user