summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2014-11-09 13:37:13 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2014-11-09 13:37:13 -0800
commitf1bbd869102e185b4e9178948f80c1ac66a94df7 (patch)
tree5d2f7ad813a1f6e78c5403a80d3300e266b69648 /Makefile
parent58ebff02fd350f1b73d62caf0c1e976b4576e2ab (diff)
parent014d2d0699d8875e766afcf01580c4a2ea093131 (diff)
Merge branch 'master' of github.com:jgm/CommonMark
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index afe939e..1b2d510 100644
--- a/Makefile
+++ b/Makefile
@@ -36,7 +36,11 @@ spec.md: $(SPEC)
perl spec2md.pl < $< > $@
spec.html: spec.md template.html
- pandoc --no-highlight --number-sections --template template.html -s --toc -S $< > $@ # | perl -pe 's/␣/<span class="space"> <\/span>/g' > $@
+ pandoc --no-highlight --number-sections --template template.html -s --toc -S $< | \
+ perl -pe 's/a href="@([^"]*)"/a id="\1" href="#\1" class="definition"/g' | \
+ perl -pe 's/␣/<span class="space"> <\/span>/g' \
+ > $@
+
spec.pdf: spec.md template.tex specfilter.hs
pandoc -s $< --template template.tex \