pandemics-include

0.2.5 • Public • Published

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 }}

Readme

Keywords

Package Sidebar

Install

npm i pandemics-include

Weekly Downloads

1

Version

0.2.5

License

BSD-3-Clause

Unpacked Size

12.4 kB

Total Files

12

Last publish

Collaborators

  • lionel-rigoux