Panpipe.AST.Node.to_pandoc

You're seeing just the function to_pandoc, go back to Panpipe.AST.Node module for more information.

Produces the Pandoc AST data structure of the given Panpipe AST node.

Examples

iex> %Panpipe.AST.Header{level: 1, children: [%Panpipe.AST.Str{string: "Example"}]}
...> |> Panpipe.AST.Node.to_pandoc()
%{
  "c" => [1, ["", [], []], [%{"c" => "Example", "t" => "Str"}]],
  "t" => "Header"
}