-
-
Notifications
You must be signed in to change notification settings - Fork 167
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Raw includes - Including/excluding on different output formats. - Variable substitution in include paths. - Documentation. - Tests.
- Loading branch information
Showing
8 changed files
with
258 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,20 @@ | ||
DIFF ?= diff --strip-trailing-cr -u | ||
|
||
.EXPORT_ALL_VARIABLES: | ||
|
||
SUBDIR_NAME=subdir | ||
|
||
|
||
test: sample.md file-a.md file-b.md file-c.md include-files.lua | ||
@pandoc --lua-filter=include-files.lua --to=native $< \ | ||
@pandoc --lua-filter=include-files.lua -M subdir-name="subdir" --to=native $< \ | ||
| $(DIFF) expected.native - | ||
@pandoc --lua-filter=include-files.lua -M include-auto --to=native $< \ | ||
@pandoc --lua-filter=include-files.lua -M subdir-name="subdir" -M include-auto --to=native $< \ | ||
| $(DIFF) expected-auto.native - | ||
|
||
expected.native: sample.md file-a.md file-b.md file-c.md include-files.lua | ||
pandoc --lua-filter=include-files.lua --output $@ $< | ||
pandoc --lua-filter=include-files.lua -M subdir-name="subdir" --output $@ $< | ||
|
||
expected-auto.native: sample.md file-a.md file-b.md file-c.md include-files.lua | ||
pandoc --lua-filter=include-files.lua -M include-auto --output $@ $< | ||
pandoc --lua-filter=include-files.lua -M subdir-name="subdir" -M include-auto --output $@ $< | ||
|
||
.PHONY: test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
\section{Some other stuff} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Some other stuff |