Usage
To apply the filter, use the following option with pandoc:
$ pandoc --filter pandoc-codeblock-include
Explanation
In the attributes of a CodeBlock
element, you can specify an file to be included and the start and end lines using attributes:
include
for the path of the included filestartFrom
for the first line to includeendAt
for the last line to include
Example
Demonstration: Using pandoc-codeblock-include-sample.txt as input gives output file in pdf (use lorem content).