aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMelody Horn <melody@boringcactus.com>2020-10-25 19:20:21 -0600
committerMelody Horn <melody@boringcactus.com>2020-10-25 19:20:21 -0600
commit71a5049a68426665d6c411ba3c00d449f0cf884d (patch)
tree740fab84b6262fd7504fc4a779240ad3491b412e
parente900d76aaaa171496d6fefa28ce07e3364500743 (diff)
downloadspec-71a5049a68426665d6c411ba3c00d449f0cf884d.tar.gz
spec-71a5049a68426665d6c411ba3c00d449f0cf884d.zip
link to HTML pages in HTML
-rw-r--r--etc/process-md.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/etc/process-md.lua b/etc/process-md.lua
index 30c85de..f0e11dc 100644
--- a/etc/process-md.lua
+++ b/etc/process-md.lua
@@ -5,3 +5,8 @@ function Pandoc(doc)
doc.blocks:insert(1, title_header)
return doc
end
+
+function Link(node)
+ node.target = node.target:gsub(".md", ".html")
+ return node
+end