pandocwalk(1p)

pandocwalk1p

Parse document with pandoc and process abstract syntax tree

Usage

pandocwalk [options] [{SCRIPT | 'SELECTOR => ACTION'}]

Examples

Extract all URLs from a HTML file:

pandocwalk document.html 'Link => say $_->url'

Extract table of contents from a LaTeX file:

pandocwalk document.tex 'Header => say " " x $_->level, $_->string'

From libpandoc-elements-perl 0.24-1 in Debian 9 (Stretch). Parsed by carta from the page's man source.