summaryrefslogtreecommitdiff
path: root/paper/lua-filters/section-refs/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'paper/lua-filters/section-refs/Makefile')
-rw-r--r--paper/lua-filters/section-refs/Makefile26
1 files changed, 26 insertions, 0 deletions
diff --git a/paper/lua-filters/section-refs/Makefile b/paper/lua-filters/section-refs/Makefile
new file mode 100644
index 0000000..dcceb70
--- /dev/null
+++ b/paper/lua-filters/section-refs/Makefile
@@ -0,0 +1,26 @@
+OPTIONS_test_default := -t native \
+ -M bibliography=bibliography.bib \
+ -F pandoc-citeproc \
+ --lua-filter=section-refs.lua
+
+OPTIONS_test_no_citeproc := -t native \
+ --lua-filter=section-refs.lua
+
+OPTIONS_test_refs_name := -t native \
+ -M bibliography=bibliography.bib \
+ -M reference-section-title="Works Cited" \
+ -F pandoc-citeproc \
+ --lua-filter=section-refs.lua
+
+OPTIONS_test_section_level := -t native \
+ -M bibliography=bibliography.bib \
+ -M reference-section-title="Works Cited" \
+ -M section-refs-level=2\
+ -F pandoc-citeproc \
+ --lua-filter=section-refs.lua
+
+.PHONY: test
+test: test_default test_no_citeproc test_refs_name test_section_level
+
+test_%: expected_%.native sample.md bibliography.bib
+ @pandoc sample.md $(OPTIONS_$@) | diff --strip-trailing-cr -u $< -