From cbcaf1917470acf28099c5698fd6feec7c45c470 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Wed, 13 Nov 2019 17:07:44 -0800 Subject: Add test for #5881. --- test/A.txt | 1 + test/B.txt | 1 + test/C.txt | 1 + test/D.txt | 1 + test/command/5881.md | 14 ++++++++++++++ test/defaults1.yaml | 1 + test/defaults2.yaml | 4 ++++ 7 files changed, 23 insertions(+) create mode 100644 test/A.txt create mode 100644 test/B.txt create mode 100644 test/C.txt create mode 100644 test/D.txt create mode 100644 test/command/5881.md create mode 100644 test/defaults1.yaml create mode 100644 test/defaults2.yaml (limited to 'test') diff --git a/test/A.txt b/test/A.txt new file mode 100644 index 000000000..9e365c806 --- /dev/null +++ b/test/A.txt @@ -0,0 +1 @@ +this is a diff --git a/test/B.txt b/test/B.txt new file mode 100644 index 000000000..15e82baab --- /dev/null +++ b/test/B.txt @@ -0,0 +1 @@ +here is b diff --git a/test/C.txt b/test/C.txt new file mode 100644 index 000000000..ffe50d0ab --- /dev/null +++ b/test/C.txt @@ -0,0 +1 @@ +and this is c diff --git a/test/D.txt b/test/D.txt new file mode 100644 index 000000000..6a06fd34c --- /dev/null +++ b/test/D.txt @@ -0,0 +1 @@ +here's d diff --git a/test/command/5881.md b/test/command/5881.md new file mode 100644 index 000000000..3c3970a89 --- /dev/null +++ b/test/command/5881.md @@ -0,0 +1,14 @@ +``` +% pandoc -t markdown -s -H D.txt -d defaults1.yaml -d defaults2.yaml +Ok +^D +here's d + +this is a + +here is b + +and this is c + +Ok +``` diff --git a/test/defaults1.yaml b/test/defaults1.yaml new file mode 100644 index 000000000..b99caa46a --- /dev/null +++ b/test/defaults1.yaml @@ -0,0 +1 @@ +include-in-header: A.txt diff --git a/test/defaults2.yaml b/test/defaults2.yaml new file mode 100644 index 000000000..93f41896a --- /dev/null +++ b/test/defaults2.yaml @@ -0,0 +1,4 @@ +include-in-header: +- B.txt +- C.txt + -- cgit v1.2.3