Notenik Knowledge Base

Back to

9.2 Notenik Markdown Parser ↑

9.2.22 Include a Note or File

As an extension to the original Markdown spec from John Gruber, a second Note or text file may be included by placing the literal {:include:xxx} on a line by itself (where ‘xxx’ is replaced by the identifier for the text to be included), as in the following example:


If the supplied identifier contains a period, then Notenik will first attempt to interpret the identifier as a file path, relative to the Collection folder.

Another Note within the same Collection may be included as follows:

{{include:A Second Note to be Included}}

When including a second Note, an optional style may be specified as follows (where quote is a style):

{{include-quote:Title of a Quotation}}

The following styles are available at this time:

Note that includes may be nested; in other words, if Note B includes Note C, and Note A includes Note B, then Note C will appear within Note A as well.

Note also that, if a Note is included within the Body of a Note, via this Markdown extension, then that same Note will not be displayed at the bottom of the the parent Note’s page as part of the Include Children display.

Note that this format, and the intent of this Markdown extension, is slightly different from the Include Command as implemented for Merge Templates.

Alternate Syntax

Some other note processing software uses the terminology embed rather than include, and uses the following syntax to embed a file.


The following syntax is used to embed a Note:

![[A Second Note to be embedded]]

Notenik will try to respect this alternate syntax, in addition to its native syntax, as described above.

Includes Between Collections

Note that the same syntax and rules used to create Wiki Links Between Collections can also be applied when including a Note or file.

Next: Display Teasers