---
name: "pandocwalk"
section: "1p"
platform: "linux"
package: "libpandoc-elements-perl"
version: "0.24-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/pandocwalk"
---

# pandocwalk(1p)

parse document with pandoc and process abstract syntax tree

## NAME

pandocwalk - parse document with pandoc and process abstract syntax tree

## SYNOPSIS

```
  pandocwalk [ options ] [ SCRIPT | 'SELECTOR => ACTION' ]
```

Calls pandoc with given options to parse a document and process its abstract syntax tree. A processing script must be given as executable file or as Perl code to filter the document. See Pandoc::Filter::Lazy for filter syntax.

### 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'
```
