Expiration time in seconds for cached HTTP requests when including from URLs.
plugins:
- include-markdown:
cache: 600
In order to use this feature, the dependency platformdirs must be installed
or the setting cache_dir must be defined. You can include
platformdirs in the installation of the plugin adding the cache extra:
File paths to include and string arguments can be wrapped by double " or
single ' quotes, which can be escaped prepending them a \ character as
\" and \'.
The arguments start and end may contain usual (Python-style) escape
sequences like \n to match against newlines.
#start: Delimiter that marks the beginning of the content to include.
#end: Delimiter that marks the end of the content to include.
#preserve-includer-indent (true): When this option is enabled (default),
every line of the content to include is indented with the same number of
spaces used to indent the includer {% %} template. Possible values are
true and false.
#dedent (false): If enabled, the included content will be dedented.
#exclude: Specify with a glob which files should be ignored. Only useful
when passing globs to include multiple files.
#trailing-newlines (true): When this option is disabled, the trailing newlines
found in the content to include are stripped. Possible values are true and false.
#recursive (true): When this option is disabled, included files are not
processed for recursive includes. Possible values are true and false.
#order ('alpha-path'): Define the order in which multiple files are included
when using globs. Possible values are:
A combination of an optional order type and an optional order by separated
by a hyphen (-), and optionally prefixed by a hyphen (-) to indicate
ascending order. If an order type or an order by is not specified, the defaults
are used. It follows the form:
[-]<order_type>-<order_by> where:
Order type:
'alpha' (default): Alphabetical order.
'natural': Natural order, so that e.g. file2.md comes before file10.md.
Order by:
'path' (default): Order by full file path.
'name': Order by file name only.
'extension': Order by file extension.
A combination of an optional prefix hyphen to denote ascending order and one
of the following values in the form [-]<value> where <value> is one of:
'size': Order by file size.
'mtime': Order by file modification time.
'ctime': Order by file creation time (or the last metadata change time
on Unix systems).
'atime': Order by file last access time.
'system': Order provided by the operating system. This is the same as not
specifying any order and relying on the default order of the filesystem.
This may be different between operating systems, so use it with care.
'random': Random order.
#encoding ('utf-8'): Specify the encoding of the included file.
If not defined 'utf-8' will be used.
include-markdown
Includes Markdown files content, optionally using two delimiters to filter the
content to include.
The YAML front matter at the beginning of the included files is skipped,
unless a start delimiter is defined.
#rewrite-relative-urls (true): When this option is enabled (default),
Markdown links and images in the content that are specified by a relative URL
are rewritten to work correctly in their new location. Possible values are
true and false.
#comments (false): When this option is enabled, the content to include
is wrapped by <!-- BEGIN INCLUDE --> and <!-- END INCLUDE --> comments
which help to identify that the content has been included. Possible values
are true and false.
#heading-offset (0): Increases or decreases the Markdown headings depth
by this number. Only supports number sign (#) heading syntax. Accepts
negative values to drop leading # characters.