pandoc-include alternatives and similar packages
Based on the "pandoc" category.
Alternatively, view pandoc-include alternatives based on common mentions on social networks and blogs.
pandoc10.0 9.9 pandoc-include VS pandocUniversal markup converter
pandoc-crossrefPandoc filter for cross-references
pandoc-citeprocLibrary and executable for using citeproc with pandoc
pandoc-types9.5 3.1 pandoc-include VS pandoc-typestypes for representing structured documents
pandoc-csv2tableA Pandoc filter that renders CSV as Pandoc Markdown Tables.
pandoc-citeproc-preambleInsert a preamble before pandoc-citeproc's bibliography
pandoc-placetablePandoc filter to include CSV data (from file or URL)
pandoc-lens6.5 0.0 pandoc-include VS pandoc-lensLenses for the Pandoc AST
pandoc-vimhl5.6 0.0 pandoc-include VS pandoc-vimhlvim plugin that makes vim syntax highlighting engine available in pandoc
pandoc-japanese-filtersPandoc filters to treat Japanese-specific markups
pandoc-filter-graphvizInterpret '~~~ graphviz' bloc as a call to graphviz software and substritude text with produced picture
pandoc-highlighting-extensionsExtensions to Pandoc syntax highlighting
pandoc-utils1.8 1.1 pandoc-include VS pandoc-utilsUtility functions to work with Pandoc in Haskell applications.
ONLYOFFICE Docs — document collaboration in your environment
Do you think we are missing an alternative of pandoc-include or a related project?
A Pandoc filter that replaces include labeled Code Blocks with the contents of the referenced files. Even nested, recursive includes.
Based on the scripting tutorial for Pandoc: http://pandoc.org/scripting.html#include-files
The Code Blocks like the following will include every file in a new line. The reference paths should be either absolute or relative to the folder where the pandoc command will be executed.
```include /absolute/file/path.md relative/to/the/command/root.md #do/not/include/this.md ```
If the file does not exist, it will be skipped completely. No warnings, no
residue, nothing. Putting an
# as the first character in the line will make the
filter skip that file.
For now the nested includes only work for two levels, after that the source will be inserted and not parsed.
Note: the metadata from the included source files are discarded.
One could either install it using the Cabal packaging system by running:
cabal update cabal install pandoc-include
Or it is also possible to use the pipe method using the source code described in the Usage section.
In order to use this Pandoc filter, one has to include it into the Pandoc transformation workflow. This can be done by using the
--filter parameter, like so:
pandoc --from markdown --to latex --filter pandoc-include input.md
All this does in the background is pipelining the output of Pandoc and the last filter into the standard input of the include filter and using its output as the next filter's input:
pandoc --from markdown --to json input.md | runhaskell IncludeFilter.hs | pandoc --from json --to latex
Copyright ©2015 Dániel Stein
Source code is released under the Terms and Conditions of MIT License.
*Note that all licence references and agreements mentioned in the pandoc-include README section above are relevant to that project's source code only.