Skip to content

Commit bba4fa1

Browse files
niszettarleb
authored andcommitted
Add test for asciidoc to pagebreak.lua
1 parent 8b241f7 commit bba4fa1

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

pagebreak/Makefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
DIFF ?= diff --strip-trailing-cr -u
22

3-
test: test-html test-md
3+
test: test-asciidoc test-html test-md
4+
5+
test-asciidoc:
6+
@pandoc --lua-filter=pagebreak.lua sample.md --to asciidoc | $(DIFF) expected.adoc -
47

58
test-html:
69
@pandoc --lua-filter=pagebreak.lua sample.md | $(DIFF) expected.html -
710

811
test-md:
912
@pandoc -t ms --lua-filter=pagebreak.lua sample.md | $(DIFF) expected.ms -
1013

11-
.PHONY: test test-html test-md
14+
.PHONY: test test-asciidoc test-html test-md

pagebreak/expected.adoc

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec
2+
hendrerit tempor tellus. Donec pretium posuere tellus.
3+
4+
<<<
5+
6+
Cum sociis natoque penatibus et magnis dis parturient montes, nascetur
7+
ridiculus mus. Nulla posuere. Donec vitae dolor.
8+
9+
<<<
10+
11+
Pellentesque dapibus suscipit ligula. Donec posuere augue in quam.
12+
Suspendisse potenti.
13+
14+
Final paragraph without a preceding pagebreak.

0 commit comments

Comments
 (0)