Skip to content

Commit

Permalink
Fix tests for older pandoc versions without typst support
Browse files Browse the repository at this point in the history
  • Loading branch information
tarleb committed May 7, 2024
1 parent 6925543 commit da0ef99
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ PANDOC ?= pandoc

test: test-adoc test-html test-ms test-typst test-no-form-feed.html

test-typst: $(FILTER_FILE) test/input.md test/test-typst.yaml
@if $(PANDOC) --list-input-formats | grep -q typst; then \
$(PANDOC) --defaults test/test-typst.yaml | \
$(DIFF) test/expected.typst -; \
fi

test-%: $(FILTER_FILE) test/input.md test/test-%.yaml
@$(PANDOC) --defaults test/test-$*.yaml | \
$(DIFF) test/expected.$* -
Expand Down

0 comments on commit da0ef99

Please sign in to comment.