File tree Expand file tree Collapse file tree 6 files changed +22
-14
lines changed Expand file tree Collapse file tree 6 files changed +22
-14
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 expected.html first-line-indent.lua
9- @$(PANDOC ) -s --lua-filter first-line-indent.lua --to=html $< \
8+ test_html : sample.md first-line-indent.lua
9+ @$(PANDOC ) -s --lua-filter first-line-indent.lua --to=html --wrap=none $< \
1010 | $(DIFF ) expected.html -
1111
12- test_latex : sample.md expected.tex first-line-indent.lua
12+ test_latex : sample.md 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 --output $@ $<
17+ $(PANDOC ) -s --lua-filter first-line-indent.lua --wrap=none -- 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,6 +5,7 @@ test: sample.md math2svg.lua
55 @$(PANDOC ) \
66 --mathml --lua-filter=math2svg.lua \
77 -M math2svg_font=' Gyre-Pagella' \
8+ --wrap=none \
89 --to=html sample.yaml $< \
910 | $(DIFF ) expected.html -
1011
@@ -13,6 +14,7 @@ expected: sample.md math2svg.lua
1314 --mathml --lua-filter=math2svg.lua \
1415 -M math2svg_tex2svg=' /usr/local/bin/tex2svg' \
1516 -M math2svg_font=' Gyre-Pagella' \
17+ --wrap=none \
1618 --output=expected.html sample.yaml $<
1719
1820.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 $< \
9+ @$(PANDOC ) --lua-filter not-in-format.lua --to=html --wrap=none $< \
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 --output $@ $<
17+ $(PANDOC ) --lua-filter not-in-format.lua --wrap=none -- 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,12 +4,15 @@ PANDOC ?= pandoc
44test : test-asciidoc test-html test-md
55
66test-asciidoc :
7- @$(PANDOC ) --lua-filter=pagebreak.lua sample.md --to asciidoc | $(DIFF ) expected.adoc -
7+ @$(PANDOC ) --lua-filter=pagebreak.lua sample.md --to asciidoc | \
8+ $(DIFF ) expected.adoc -
89
910test-html :
10- @$(PANDOC ) --lua-filter=pagebreak.lua sample.md | $(DIFF ) expected.html -
11+ @$(PANDOC ) --lua-filter=pagebreak.lua --wrap=none sample.md | \
12+ $(DIFF ) expected.html -
1113
1214test-md :
13- @$(PANDOC ) -t ms --lua-filter=pagebreak.lua sample.md | $(DIFF ) expected.ms -
15+ @$(PANDOC ) -t ms --lua-filter=pagebreak.lua sample.md | \
16+ $(DIFF ) expected.ms -
1417
1518.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- -o $(TMP_DIR ) /$@ .out $(DATA_DIR ) /$@ .md
18+ @$(PANDOC ) --lua-filter ./pandoc -quotes.lua -f markdown-smart -t html \
19+ --wrap=none - 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- -o $(TMP_DIR ) /$@ .out $(DATA_DIR ) /$@ .md
23+ @$(PANDOC ) --lua-filter ./pandoc -quotes.lua -t html \
24+ --wrap=none - 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,7 +2,10 @@ DIFF ?= diff --strip-trailing-cr -u
22PANDOC ?= pandoc
33
44test :
5- @$(PANDOC ) --lua-filter=revealjs-codeblock.lua sample.md -t revealjs | \
5+ @$(PANDOC ) --lua-filter=revealjs-codeblock.lua \
6+ --to=revealjs \
7+ --wrap=none \
8+ sample.md | \
69 $(DIFF ) expected.html -
710
811.PHONY : test
You can’t perform that action at this time.
0 commit comments