Skip to content

Commit 72a68c1

Browse files
committed
fix(remove_md_links.lua): also remove md links with anchor
1 parent c0fd1c4 commit 72a68c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandoc_filters/remove_md_links.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function Link(el)
2-
if string.match(el.target, "%.md$") then
2+
if string.match(el.target, "%.md$") or string.match(el.target, "%.md#") then
33
return el.content
44
else
55
return el

0 commit comments

Comments
 (0)