Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pandoc-include-0.3.0.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

pandoc_include-0.3.0-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file pandoc-include-0.3.0.tar.gz.

File metadata

  • Download URL: pandoc-include-0.3.0.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7

File hashes

Hashes for pandoc-include-0.3.0.tar.gz
Algorithm Hash digest
SHA256 6a3cad31f8cf2457fe86f2c2af4545d99015b29f4d8be5bce8157da7cb470d8a
MD5 52d83e7551cbb1c8e0fa261be59c57b1
BLAKE2b-256 1d108236fc69a9035a92091b029690b1dc68e018c01d2fe989f08de5393d11dd

See more details on using hashes here.

File details

Details for the file pandoc_include-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: pandoc_include-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7

File hashes

Hashes for pandoc_include-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6270d80f68238a2cc103f46d681bf41d86a78ecfcd072ca0288f441783b7748f
MD5 71d2c5b9505841a4d97c20c044158bf6
BLAKE2b-256 61541b18c079ea95e34a1d49a51072281532aa788528d2ace1b6a2b5030991e3

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page