Skip to contents

[Experimental]

Usage

ast_skip(x)

Arguments

x

A pandoc node, or NULL.

Value

A small marker object recognised by ast_filter().

Details

Sentinel for use inside an ast_filter() pre-order handler. When a handler returns ast_skip(x), the walker installs x at that position and stops descending into its children. Equivalent to Pandoc Lua filters' return el, false under traverse = 'topdown'.

Has no effect under the default post-order traversal (where descent has already happened by the time a handler runs).

See also