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.
** Recursive include is supported **
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 Distribution
Hashes for pandoc_include-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6270d80f68238a2cc103f46d681bf41d86a78ecfcd072ca0288f441783b7748f |
|
MD5 | 71d2c5b9505841a4d97c20c044158bf6 |
|
BLAKE2b-256 | 61541b18c079ea95e34a1d49a51072281532aa788528d2ace1b6a2b5030991e3 |