Panflute filter to allow file includes
Project description
Pandoc filter to allow file includes.
The filter script is based on User Guide for Panflute. This repository is to provide a simple way to install and use it.
Installation
Use pip to install:
pip install --user pandoc-include
Usage
Command
To use this filter, add to pandoc command
pandoc input.md --filter pandoc-include -o output.pdf
Syntax
Each include statement has its own line and has the syntax:
!include ./somefolder/somefile
Or
$include ./somefolder/somefile
Each include statement must be in its own paragraph. That is, in its own line and separated by blank lines.
Leading ./ or ../ is necessary to make it work properly.
Recursive include is supported from v0.3.1.
If no extension was given, “.md” is assumed.
Note: The second syntax may lead to wrong highlighting when using a markdown editor. If it happens, use the first syntax.
License
MIT License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for pandoc_include-0.3.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ff7aafe2506b5d579c374785bd557c925c80d8d0b0d3ec6cc03bec66045f16cd |
|
MD5 | d20035aa7b11523a4a256606f94310ff |
|
BLAKE2b-256 | b79b3fe08207d09d0c37885edb2784f178e9ad01fd04f4741157ea4446e47fa2 |