Offray Vladimir Luna Cárdenas
<offray.l...@mutabit.com> wrote:

> Pandoc consists of a set of readers and writers. When converting a
> document from one format to another, text is parsed by a reader into
> pandoc’s intermediate representation of the document—an “abstract syntax
> tree” or AST—which is then converted by the writer into the target
> format. The pandoc AST format is defined in the module
> |Text.Pandoc.Definition| in pandoc-types
> <https://hackage.haskell.org/package/pandoc-types>.
> 
> A “filter” is a program that modifies the AST, between the reader and
> the writer:
> 
> |INPUT --reader--> AST --filter--> AST --writer--> OUTPUT|
> 
> Filters are “pipes” that read from standard input and write to standard
> output.

Perhaps just reading the original Pier and Magritte thesis work by Lukas
Renggli would be helpful then. Anything new or better in Pandoc?

Stephan


Reply via email to