pandemics-include
v0.2.5
Published
Wrapper to use mdinclude as a pandemics preprocessing hook
Downloads
15
Readme
pandemics-include
Allows to include markdown, text, or csv files directly in your manuscript.
Include other markdown document:
{{ #include chapters/one.md }}
Note that you can also use jockers:
{{ #include chapters/*.md }}
Include csv file (will be converted to Markdown table, neat!):
{{ #csv data/values.csv }}
You can also pass on options to change the loading or display of the table, eg:
{{ #csv data/values.csv align=lcr colsize=2:1:1 }}
Options are:
align
: a sequence ofl
,c
, orr
to align each column to respectively to the left, center, or right. You must provide as many flags are there are columns in the table.colsize
: relative size of the columns, when the table is too large and has to be displayed in full page width. You must specify one number per column, separated by:
. For example,1:3
will scale two columns to take 25% and 75% of the page width respectively.- any option described in the csv-parse documentation, passed as
key=value
.
Include source code:
{{ #code example.js }}
The syntax highlighting will be guessed from the file extension, you can however force the language syntax:
{{ #code example.js syntax=javascript }}
Include as citation (prefixed with >
):
{{ #cite quotes/einstein.txt }}