The pipeline was not really first class in lukas work. It was added incrementally. Now we have a real architecture. On Sun, Dec 31, 2017 at 1:59 PM, Stephan Eggermont <stephan@stack.nl> wrote:
Offray Vladimir Luna Cárdenas <offray.luna@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