File tree 6 files changed +14
-22
lines changed
6 files changed +14
-22
lines changed Original file line number Diff line number Diff line change @@ -5,16 +5,16 @@ PANDOC ?= pandoc
5
5
6
6
test : test_latex test_html
7
7
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 $< \
10
10
| $(DIFF ) expected.html -
11
11
12
- test_latex : sample.md first-line-indent.lua
12
+ test_latex : sample.md expected.tex first-line-indent.lua
13
13
@$(PANDOC ) -s --lua-filter first-line-indent.lua --to=latex $< \
14
14
| $(DIFF ) expected.tex -
15
15
16
16
expected.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 $@ $<
18
18
19
19
expected.tex : sample.md first-line-indent.lua
20
20
$(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
5
5
@$(PANDOC ) \
6
6
--mathml --lua-filter=math2svg.lua \
7
7
-M math2svg_font=' Gyre-Pagella' \
8
- --wrap=none \
9
8
--to=html sample.yaml $< \
10
9
| $(DIFF ) expected.html -
11
10
@@ -14,7 +13,6 @@ expected: sample.md math2svg.lua
14
13
--mathml --lua-filter=math2svg.lua \
15
14
-M math2svg_tex2svg=' /usr/local/bin/tex2svg' \
16
15
-M math2svg_font=' Gyre-Pagella' \
17
- --wrap=none \
18
16
--output=expected.html sample.yaml $<
19
17
20
18
.PHONY : test
Original file line number Diff line number Diff line change @@ -6,15 +6,15 @@ PANDOC ?= pandoc
6
6
test : test_html test_latex
7
7
8
8
test_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 $< \
10
10
| $(DIFF ) expected.html -
11
11
12
12
test_latex : sample.md expected.tex not-in-format.lua
13
13
@$(PANDOC ) --lua-filter not-in-format.lua --to=latex $< \
14
14
| $(DIFF ) expected.tex -
15
15
16
16
expected.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 $@ $<
18
18
19
19
expected.tex : sample.md not-in-format.lua
20
20
$(PANDOC ) --lua-filter not-in-format.lua --output $@ $<
Original file line number Diff line number Diff line change @@ -4,15 +4,12 @@ PANDOC ?= pandoc
4
4
test : test-asciidoc test-html test-md
5
5
6
6
test-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 -
9
8
10
9
test-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 -
13
11
14
12
test-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 -
17
14
18
15
.PHONY : test test-asciidoc test-html test-md
Original file line number Diff line number Diff line change @@ -15,13 +15,13 @@ prepare-tmp:
15
15
@rm -f test/tmp/*
16
16
17
17
test-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
20
20
@$(DIFF ) $(TMP_DIR ) /$@ .out $(NORM_DIR ) /$@ .out
21
21
22
22
$(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
25
25
@$(DIFF ) $(TMP_DIR ) /$@ .out $(NORM_DIR ) /$@ .out
26
26
27
27
Original file line number Diff line number Diff line change @@ -2,10 +2,7 @@ DIFF ?= diff --strip-trailing-cr -u
2
2
PANDOC ?= pandoc
3
3
4
4
test :
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 | \
9
6
$(DIFF ) expected.html -
10
7
11
8
.PHONY : test
You can’t perform that action at this time.
0 commit comments