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.

The path can be either absolute or relative to current file’s directory.

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


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.2.tar.gz (2.5 kB view details)

Uploaded Source

Built Distributions

pandoc_include-0.3.2-py3.6.egg (4.0 kB view details)

Uploaded Source

pandoc_include-0.3.2-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pandoc-include-0.3.2.tar.gz
  • Upload date:
  • Size: 2.5 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.2.tar.gz
Algorithm Hash digest
SHA256 e433f0282100e97137c556c28cbdbef20e7180874a3134fe354fe22c2752f145
MD5 60e4845e52709db9697586fac4c0f8e1
BLAKE2b-256 20fd0c2e390aed70813337b6a14511546d29cf4fbe6aaf7494013df9dedab485

See more details on using hashes here.

File details

Details for the file pandoc_include-0.3.2-py3.6.egg.

File metadata

  • Download URL: pandoc_include-0.3.2-py3.6.egg
  • Upload date:
  • Size: 4.0 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.2-py3.6.egg
Algorithm Hash digest
SHA256 e983563a35a6b6ff01c4911fa8e28fcb5637ae9564b5c332dc2093771ae493af
MD5 3d0b6c45ab3e2fa0dbec9a308822c819
BLAKE2b-256 1295d236ae616e13108cdfb138d934cc92d9214c918acfa1d55f1e0e6e5fcf80

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pandoc_include-0.3.2-py3-none-any.whl
  • Upload date:
  • Size: 3.8 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3e71cf19181dd4d9a31700e3f636a667debfc2960622117a70b8d8ec0e9208fe
MD5 ee4a410dba1f07fbc1023d3270db6a37
BLAKE2b-256 2052dbc97a10700a1f0bd4ff1b60cf7da321a74add4edb38aa7cd271dafcfaa9

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