0.2.5 • Published 2 months ago

pandemics-include v0.2.5

Weekly downloads
2
License
BSD-3-Clause
Repository
gitlab
Last release
2 months ago

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 of l, c, or r 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 }}
0.2.5

2 months ago

0.2.4

4 months ago

0.2.3

2 years ago

0.2.2

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.2

5 years ago