diff options
author | John MacFarlane <jgm@berkeley.edu> | 2014-11-09 13:37:13 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2014-11-09 13:37:13 -0800 |
commit | f1bbd869102e185b4e9178948f80c1ac66a94df7 (patch) | |
tree | 5d2f7ad813a1f6e78c5403a80d3300e266b69648 /Makefile | |
parent | 58ebff02fd350f1b73d62caf0c1e976b4576e2ab (diff) | |
parent | 014d2d0699d8875e766afcf01580c4a2ea093131 (diff) |
Merge branch 'master' of github.com:jgm/CommonMark
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 \ |