File tree Expand file tree Collapse file tree 6 files changed +14
-22
lines changed Expand file tree Collapse file tree 6 files changed +14
-22
lines changed Original file line number Diff line number Diff line change @@ -5,16 +5,16 @@ PANDOC ?= pandoc
55
66test : test_latex test_html
77
8- test_html : sample.md first-line-indent.lua
9- @$(PANDOC ) -s --lua-filter first-line-indent.lua --to=html --wrap=none $< \
8+ test_html : sample.md expected.html first-line-indent.lua
9+ @$(PANDOC ) -s --lua-filter first-line-indent.lua --to=html $< \
1010 | $(DIFF ) expected.html -
1111
12- test_latex : sample.md first-line-indent.lua
12+ test_latex : sample.md expected.tex first-line-indent.lua
1313 @$(PANDOC ) -s --lua-filter first-line-indent.lua --to=latex $< \
1414 | $(DIFF ) expected.tex -
1515
1616expected.html : sample.md first-line-indent.lua
17- $(PANDOC ) -s --lua-filter first-line-indent.lua --wrap=none -- output $@ $<
17+ $(PANDOC ) -s --lua-filter first-line-indent.lua --output $@ $<
1818
1919expected.tex : sample.md first-line-indent.lua
2020 $(PANDOC ) -s --lua-filter first-line-indent.lua --output $@ $<
Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ test: sample.md math2svg.lua
55 @$(PANDOC ) \
66 --mathml --lua-filter=math2svg.lua \
77 -M math2svg_font=' Gyre-Pagella' \
8- --wrap=none \
98 --to=html sample.yaml $< \
109 | $(DIFF ) expected.html -
1110
@@ -14,7 +13,6 @@ expected: sample.md math2svg.lua
1413 --mathml --lua-filter=math2svg.lua \
1514 -M math2svg_tex2svg=' /usr/local/bin/tex2svg' \
1615 -M math2svg_font=' Gyre-Pagella' \
17- --wrap=none \
1816 --output=expected.html sample.yaml $<
1917
2018.PHONY : test
Original file line number Diff line number Diff line change @@ -6,15 +6,15 @@ PANDOC ?= pandoc
66test : test_html test_latex
77
88test_html : sample.md expected.html not-in-format.lua
9- @$(PANDOC ) --lua-filter not-in-format.lua --to=html --wrap=none $< \
9+ @$(PANDOC ) --lua-filter not-in-format.lua --to=html $< \
1010 | $(DIFF ) expected.html -
1111
1212test_latex : sample.md expected.tex not-in-format.lua
1313 @$(PANDOC ) --lua-filter not-in-format.lua --to=latex $< \
1414 | $(DIFF ) expected.tex -
1515
1616expected.html : sample.md not-in-format.lua
17- $(PANDOC ) --lua-filter not-in-format.lua --wrap=none -- output $@ $<
17+ $(PANDOC ) --lua-filter not-in-format.lua --output $@ $<
1818
1919expected.tex : sample.md not-in-format.lua
2020 $(PANDOC ) --lua-filter not-in-format.lua --output $@ $<
Original file line number Diff line number Diff line change @@ -4,15 +4,12 @@ PANDOC ?= pandoc
44test : test-asciidoc test-html test-md
55
66test-asciidoc :
7- @$(PANDOC ) --lua-filter=pagebreak.lua sample.md --to asciidoc | \
8- $(DIFF ) expected.adoc -
7+ @$(PANDOC ) --lua-filter=pagebreak.lua sample.md --to asciidoc | $(DIFF ) expected.adoc -
98
109test-html :
11- @$(PANDOC ) --lua-filter=pagebreak.lua --wrap=none sample.md | \
12- $(DIFF ) expected.html -
10+ @$(PANDOC ) --lua-filter=pagebreak.lua sample.md | $(DIFF ) expected.html -
1311
1412test-md :
15- @$(PANDOC ) -t ms --lua-filter=pagebreak.lua sample.md | \
16- $(DIFF ) expected.ms -
13+ @$(PANDOC ) -t ms --lua-filter=pagebreak.lua sample.md | $(DIFF ) expected.ms -
1714
1815.PHONY : test test-asciidoc test-html test-md
Original file line number Diff line number Diff line change @@ -15,13 +15,13 @@ prepare-tmp:
1515 @rm -f test/tmp/*
1616
1717test-noop : prepare-tmp
18- @$(PANDOC ) --lua-filter ./pandoc -quotes.lua -f markdown-smart -t html \
19- --wrap=none - o $(TMP_DIR ) /$@ .out $(DATA_DIR ) /$@ .md
18+ @$(PANDOC ) --lua-filter ./$( PANDOC ) -quotes.lua -f markdown-smart -t html \
19+ -o $(TMP_DIR ) /$@ .out $(DATA_DIR ) /$@ .md
2020 @$(DIFF ) $(TMP_DIR ) /$@ .out $(NORM_DIR ) /$@ .out
2121
2222$(TESTS ) : prepare-tmp
23- @$(PANDOC ) --lua-filter ./pandoc -quotes.lua -t html \
24- --wrap=none - o $(TMP_DIR ) /$@ .out $(DATA_DIR ) /$@ .md
23+ @$(PANDOC ) --lua-filter ./$( PANDOC ) -quotes.lua -t html \
24+ -o $(TMP_DIR ) /$@ .out $(DATA_DIR ) /$@ .md
2525 @$(DIFF ) $(TMP_DIR ) /$@ .out $(NORM_DIR ) /$@ .out
2626
2727
Original file line number Diff line number Diff line change @@ -2,10 +2,7 @@ DIFF ?= diff --strip-trailing-cr -u
22PANDOC ?= pandoc
33
44test :
5- @$(PANDOC ) --lua-filter=revealjs-codeblock.lua \
6- --to=revealjs \
7- --wrap=none \
8- sample.md | \
5+ @$(PANDOC ) --lua-filter=revealjs-codeblock.lua sample.md -t revealjs | \
96 $(DIFF ) expected.html -
107
118.PHONY : test
You can’t perform that action at this time.
0 commit comments