File tree Expand file tree Collapse file tree 2 files changed +24
-2
lines changed Expand file tree Collapse file tree 2 files changed +24
-2
lines changed Original file line number Diff line number Diff line change 1
1
DIFF ?= diff --strip-trailing-cr -u
2
2
3
- test :
3
+ test : test-html test-md
4
+
5
+ test-html :
4
6
@pandoc --lua-filter=pagebreak.lua sample.md | $(DIFF ) expected.html -
5
7
6
- .PHONY : test
8
+ test-md :
9
+ @pandoc -t ms --lua-filter=pagebreak.lua sample.md | $(DIFF ) expected.ms -
10
+
11
+ .PHONY : test test-html test-md
Original file line number Diff line number Diff line change
1
+ .LP
2
+ Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
3
+ Donec hendrerit tempor tellus.
4
+ Donec pretium posuere tellus.
5
+ .bp
6
+ .PP
7
+ Cum sociis natoque penatibus et magnis dis parturient montes, nascetur
8
+ ridiculus mus.
9
+ Nulla posuere.
10
+ Donec vitae dolor.
11
+ .bp
12
+ .PP
13
+ Pellentesque dapibus suscipit ligula.
14
+ Donec posuere augue in quam.
15
+ Suspendisse potenti.
16
+ .PP
17
+ Final paragraph without a preceding pagebreak.
You can’t perform that action at this time.
0 commit comments