pandoc-ex

1.2.3 • Public • Published

NPM version

pandoc-ex

Enhanced pandoc which support watching files and pp macro, eg:https://github.com/tajmone/pandoc-goodies/tree/master/pp/macros Generate pretty word/pdf document with markdown files.

Installation

npm i pandoc-ex -g

Usage

CommandLine

pandoc-ex

CommandLine Usage

例子:

pandoc-ex --watch --to=docx --from=markdown --src=./test/src --reference-docx=/absolute_path/template.docx --dist=./test/dist --macro=./macros/macros.pp

Options

  --src=DIRECTORY  specify the source folder(absolute/relative path)
  --dist=DIRECTORY specify the destination folder(absolute/relative path)
  --from=FORMAT    source format, default is markdown
  --to=FORMAT      target format, default is docx
  --via=FORMAT     middle format for transformation, from -> via -> to
for more information, please visit: https://github.com/jgm/pandoc/issues/3924/
  --macro=FILENAME specify pp macro file
  --watch          watch the source files
  --help

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.2.3
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.2.3
    2
  • 1.2.2
    2
  • 1.2.0
    3
  • 1.1.0
    2

Package Sidebar

Install

npm i pandoc-ex

Weekly Downloads

5

Version

1.2.3

License

MIT

Last publish

Collaborators

  • goumang2010