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'