View Source Panpipe (Panpipe v0.3.1)

An Elixir wrapper around Pandoc.

The Panpipe.Pandoc module implements a wrapper around the Pandoc CLI.

The Panpipe.AST.Node behaviour defines the functions implemented by all nodes of a Panpipe AST.

Summary

Functions

Creates the Panpipe AST representation of some input.

Calls ast/2 and delivers the result directly in success case, otherwise raises an error.

Creates an Panpipe.AST.Node of some input without the surrounding Document structure.

Calls ast_fragment/2 and delivers the result directly in success case, otherwise raises an error.

Calls pandoc/1 with the option to: :ansi automatically set.

Calls pandoc/1 with the option to: :asciidoc automatically set.

Calls pandoc/1 with the option to: :asciidoc_legacy automatically set.

Calls pandoc/1 with the option to: :asciidoctor automatically set.

Calls pandoc/1 with the option to: :beamer automatically set.

Calls pandoc/1 with the option to: :biblatex automatically set.

Calls pandoc/1 with the option to: :bibtex automatically set.

Calls pandoc/1 with the option to: :chunkedhtml automatically set.

Calls pandoc/1 with the option to: :commonmark automatically set.

Calls pandoc/1 with the option to: :commonmark_x automatically set.

Calls pandoc/1 with the option to: :context automatically set.

Calls pandoc/1 with the option to: :csljson automatically set.

Calls pandoc/1 with the option to: :djot automatically set.

Calls pandoc/1 with the option to: :docbook4 automatically set.

Calls pandoc/1 with the option to: :docbook5 automatically set.

Calls pandoc/1 with the option to: :docbook automatically set.

Calls pandoc/1 with the option to: :docx automatically set.

Calls pandoc/1 with the option to: :dokuwiki automatically set.

Calls pandoc/1 with the option to: :dzslides automatically set.

Calls pandoc/1 with the option to: :epub2 automatically set.

Calls pandoc/1 with the option to: :epub3 automatically set.

Calls pandoc/1 with the option to: :epub automatically set.

Calls pandoc/1 with the option to: :fb2 automatically set.

Calls pandoc/1 with the option to: :gfm automatically set.

Calls pandoc/1 with the option to: :haddock automatically set.

Calls pandoc/1 with the option to: :html4 automatically set.

Calls pandoc/1 with the option to: :html5 automatically set.

Calls pandoc/1 with the option to: :html automatically set.

Calls pandoc/1 with the option to: :icml automatically set.

Calls pandoc/1 with the option to: :ipynb automatically set.

Calls pandoc/1 with the option to: :jats automatically set.

Calls pandoc/1 with the option to: :jats_archiving automatically set.

Calls pandoc/1 with the option to: :jats_articleauthoring automatically set.

Calls pandoc/1 with the option to: :jats_publishing automatically set.

Calls pandoc/1 with the option to: :jira automatically set.

Calls pandoc/1 with the option to: :json automatically set.

Calls pandoc/1 with the option to: :latex automatically set.

Calls pandoc/1 with the option to: :man automatically set.

Calls pandoc/1 with the option to: :markdown automatically set.

Calls pandoc/1 with the option to: :markdown_github automatically set.

Calls pandoc/1 with the option to: :markdown_mmd automatically set.

Calls pandoc/1 with the option to: :markdown_phpextra automatically set.

Calls pandoc/1 with the option to: :markdown_strict automatically set.

Calls pandoc/1 with the option to: :markua automatically set.

Calls pandoc/1 with the option to: :mediawiki automatically set.

Calls pandoc/1 with the option to: :ms automatically set.

Calls pandoc/1 with the option to: :muse automatically set.

Calls pandoc/1 with the option to: :native automatically set.

Calls pandoc/1 with the option to: :odt automatically set.

Calls pandoc/1 with the option to: :opendocument automatically set.

Calls pandoc/1 with the option to: :opml automatically set.

Calls pandoc/1 with the option to: :org automatically set.

Calls pandoc/1 with the option to: :pdf automatically set.

Calls pandoc/1 with the option to: :plain automatically set.

Calls pandoc/1 with the option to: :pptx automatically set.

Calls pandoc/1 with the option to: :revealjs automatically set.

Calls pandoc/1 with the option to: :rst automatically set.

Calls pandoc/1 with the option to: :rtf automatically set.

Calls pandoc/1 with the option to: :s5 automatically set.

Calls pandoc/1 with the option to: :slideous automatically set.

Calls pandoc/1 with the option to: :slidy automatically set.

Calls pandoc/1 with the option to: :tei automatically set.

Calls pandoc/1 with the option to: :texinfo automatically set.

Calls pandoc/1 with the option to: :textile automatically set.

Calls pandoc/1 with the option to: :typst automatically set.

Calls pandoc/1 with the option to: :xwiki automatically set.

Calls pandoc/1 with the option to: :zimwiki automatically set.

Functions

ast(input_or_opts, opts \\ nil)

Creates the Panpipe AST representation of some input.

It accepts the same arguments as Panpipe.Pandoc.call/2 which will be called implicitly to get the Pandoc AST representation.

The result is returned in an ok tuple.

ast!(input_or_opts, opts \\ nil)

Calls ast/2 and delivers the result directly in success case, otherwise raises an error.

ast_fragment(input_or_opts, opts \\ nil)

Creates an Panpipe.AST.Node of some input without the surrounding Document structure.

ast_fragment!(input_or_opts, opts \\ nil)

Calls ast_fragment/2 and delivers the result directly in success case, otherwise raises an error.

pandoc(input_or_opts, opts \\ nil)

See Panpipe.Pandoc.call/2.

pandoc!(input_or_opts, opts \\ nil)

See Panpipe.Pandoc.call!/2.

to_ansi(input, opts \\ [])

Calls pandoc/1 with the option to: :ansi automatically set.

It also accepts Panpipe.AST.Nodes. pandoc/1 will then be called with Pandoc AST form of the node.

By default, the converted output by Pandoc always ends with a newline. This can not be what you want, esp. when you convert small fragments by passing nodes directly. For this reason Panpipe will remove this newline by default for inline nodes, but keeps them on block nodes. You can control whether they should be removed manually with the remove_trailing_newline option.

To enable or disable extensions for the target format, you can use the keyword options :enable and :disable with a list of extension atom names.

Note: This function only works with directly passed strings or nodes. If you want to convert a file using the input option, you'll have to read the file first manually or use pandoc/1 directly.

to_asciidoc(input, opts \\ [])

Calls pandoc/1 with the option to: :asciidoc automatically set.

It also accepts Panpipe.AST.Nodes. pandoc/1 will then be called with Pandoc AST form of the node.

By default, the converted output by Pandoc always ends with a newline. This can not be what you want, esp. when you convert small fragments by passing nodes directly. For this reason Panpipe will remove this newline by default for inline nodes, but keeps them on block nodes. You can control whether they should be removed manually with the remove_trailing_newline option.

To enable or disable extensions for the target format, you can use the keyword options :enable and :disable with a list of extension atom names.

Note: This function only works with directly passed strings or nodes. If you want to convert a file using the input option, you'll have to read the file first manually or use pandoc/1 directly.

to_asciidoc_legacy(input, opts \\ [])

Calls pandoc/1 with the option to: :asciidoc_legacy automatically set.

It also accepts Panpipe.AST.Nodes. pandoc/1 will then be called with Pandoc AST form of the node.

By default, the converted output by Pandoc always ends with a newline. This can not be what you want, esp. when you convert small fragments by passing nodes directly. For this reason Panpipe will remove this newline by default for inline nodes, but keeps them on block nodes. You can control whether they should be removed manually with the remove_trailing_newline option.

To enable or disable extensions for the target format, you can use the keyword options :enable and :disable with a list of extension atom names.

Note: This function only works with directly passed strings or nodes. If you want to convert a file using the input option, you'll have to read the file first manually or use pandoc/1 directly.

to_asciidoctor(input, opts \\ [])

Calls pandoc/1 with the option to: :asciidoctor automatically set.

It also accepts Panpipe.AST.Nodes. pandoc/1 will then be called with Pandoc AST form of the node.

By default, the converted output by Pandoc always ends with a newline. This can not be what you want, esp. when you convert small fragments by passing nodes directly. For this reason Panpipe will remove this newline by default for inline nodes, but keeps them on block nodes. You can control whether they should be removed manually with the remove_trailing_newline option.

To enable or disable extensions for the target format, you can use the keyword options :enable and :disable with a list of extension atom names.

Note: This function only works with directly passed strings or nodes. If you want to convert a file using the input option, you'll have to read the file first manually or use pandoc/1 directly.

to_beamer(input, opts \\ [])

Calls pandoc/1 with the option to: :beamer automatically set.

It also accepts Panpipe.AST.Nodes. pandoc/1 will then be called with Pandoc AST form of the node.

By default, the converted output by Pandoc always ends with a newline. This can not be what you want, esp. when you convert small fragments by passing nodes directly. For this reason Panpipe will remove this newline by default for inline nodes, but keeps them on block nodes. You can control whether they should be removed manually with the remove_trailing_newline option.

To enable or disable extensions for the target format, you can use the keyword options :enable and :disable with a list of extension atom names.

Note: This function only works with directly passed strings or nodes. If you want to convert a file using the input option, you'll have to read the file first manually or use pandoc/1 directly.

to_biblatex(input, opts \\ [])

Calls pandoc/1 with the option to: :biblatex automatically set.

It also accepts Panpipe.AST.Nodes. pandoc/1 will then be called with Pandoc AST form of the node.

By default, the converted output by Pandoc always ends with a newline. This can not be what you want, esp. when you convert small fragments by passing nodes directly. For this reason Panpipe will remove this newline by default for inline nodes, but keeps them on block nodes. You can control whether they should be removed manually with the remove_trailing_newline option.

To enable or disable extensions for the target format, you can use the keyword options :enable and :disable with a list of extension atom names.

Note: This function only works with directly passed strings or nodes. If you want to convert a file using the input option, you'll have to read the file first manually or use pandoc/1 directly.

to_bibtex(input, opts \\ [])

Calls pandoc/1 with the option to: :bibtex automatically set.

It also accepts Panpipe.AST.Nodes. pandoc/1 will then be called with Pandoc AST form of the node.

By default, the converted output by Pandoc always ends with a newline. This can not be what you want, esp. when you convert small fragments by passing nodes directly. For this reason Panpipe will remove this newline by default for inline nodes, but keeps them on block nodes. You can control whether they should be removed manually with the remove_trailing_newline option.

To enable or disable extensions for the target format, you can use the keyword options :enable and :disable with a list of extension atom names.

Note: This function only works with directly passed strings or nodes. If you want to convert a file using the input option, you'll have to read the file first manually or use pandoc/1 directly.

to_chunkedhtml(input, opts \\ [])

Calls pandoc/1 with the option to: :chunkedhtml automatically set.

It also accepts Panpipe.AST.Nodes. pandoc/1 will then be called with Pandoc AST form of the node.

By default, the converted output by Pandoc always ends with a newline. This can not be what you want, esp. when you convert small fragments by passing nodes directly. For this reason Panpipe will remove this newline by default for inline nodes, but keeps them on block nodes. You can control whether they should be removed manually with the remove_trailing_newline option.

To enable or disable extensions for the target format, you can use the keyword options :enable and :disable with a list of extension atom names.

Note: This function only works with directly passed strings or nodes. If you want to convert a file using the input option, you'll have to read the file first manually or use pandoc/1 directly.

to_commonmark(input, opts \\ [])

Calls pandoc/1 with the option to: :commonmark automatically set.

It also accepts Panpipe.AST.Nodes. pandoc/1 will then be called with Pandoc AST form of the node.

By default, the converted output by Pandoc always ends with a newline. This can not be what you want, esp. when you convert small fragments by passing nodes directly. For this reason Panpipe will remove this newline by default for inline nodes, but keeps them on block nodes. You can control whether they should be removed manually with the remove_trailing_newline option.

To enable or disable extensions for the target format, you can use the keyword options :enable and :disable with a list of extension atom names.

Note: This function only works with directly passed strings or nodes. If you want to convert a file using the input option, you'll have to read the file first manually or use pandoc/1 directly.

to_commonmark_x(input, opts \\ [])

Calls pandoc/1 with the option to: :commonmark_x automatically set.

It also accepts Panpipe.AST.Nodes. pandoc/1 will then be called with Pandoc AST form of the node.

By default, the converted output by Pandoc always ends with a newline. This can not be what you want, esp. when you convert small fragments by passing nodes directly. For this reason Panpipe will remove this newline by default for inline nodes, but keeps them on block nodes. You can control whether they should be removed manually with the remove_trailing_newline option.

To enable or disable extensions for the target format, you can use the keyword options :enable and :disable with a list of extension atom names.

Note: This function only works with directly passed strings or nodes. If you want to convert a file using the input option, you'll have to read the file first manually or use pandoc/1 directly.

to_context(input, opts \\ [])

Calls pandoc/1 with the option to: :context automatically set.

It also accepts Panpipe.AST.Nodes. pandoc/1 will then be called with Pandoc AST form of the node.

By default, the converted output by Pandoc always ends with a newline. This can not be what you want, esp. when you convert small fragments by passing nodes directly. For this reason Panpipe will remove this newline by default for inline nodes, but keeps them on block nodes. You can control whether they should be removed manually with the remove_trailing_newline option.

To enable or disable extensions for the target format, you can use the keyword options :enable and :disable with a list of extension atom names.

Note: This function only works with directly passed strings or nodes. If you want to convert a file using the input option, you'll have to read the file first manually or use pandoc/1 directly.

to_csljson(input, opts \\ [])

Calls pandoc/1 with the option to: :csljson automatically set.

It also accepts Panpipe.AST.Nodes. pandoc/1 will then be called with Pandoc AST form of the node.

By default, the converted output by Pandoc always ends with a newline. This can not be what you want, esp. when you convert small fragments by passing nodes directly. For this reason Panpipe will remove this newline by default for inline nodes, but keeps them on block nodes. You can control whether they should be removed manually with the remove_trailing_newline option.

To enable or disable extensions for the target format, you can use the keyword options :enable and :disable with a list of extension atom names.

Note: This function only works with directly passed strings or nodes. If you want to convert a file using the input option, you'll have to read the file first manually or use pandoc/1 directly.

to_djot(input, opts \\ [])

Calls pandoc/1 with the option to: :djot automatically set.

It also accepts Panpipe.AST.Nodes. pandoc/1 will then be called with Pandoc AST form of the node.

By default, the converted output by Pandoc always ends with a newline. This can not be what you want, esp. when you convert small fragments by passing nodes directly. For this reason Panpipe will remove this newline by default for inline nodes, but keeps them on block nodes. You can control whether they should be removed manually with the remove_trailing_newline option.

To enable or disable extensions for the target format, you can use the keyword options :enable and :disable with a list of extension atom names.

Note: This function only works with directly passed strings or nodes. If you want to convert a file using the input option, you'll have to read the file first manually or use pandoc/1 directly.

to_docbook4(input, opts \\ [])

Calls pandoc/1 with the option to: :docbook4 automatically set.

It also accepts Panpipe.AST.Nodes. pandoc/1 will then be called with Pandoc AST form of the node.

By default, the converted output by Pandoc always ends with a newline. This can not be what you want, esp. when you convert small fragments by passing nodes directly. For this reason Panpipe will remove this newline by default for inline nodes, but keeps them on block nodes. You can control whether they should be removed manually with the remove_trailing_newline option.

To enable or disable extensions for the target format, you can use the keyword options :enable and :disable with a list of extension atom names.

Note: This function only works with directly passed strings or nodes. If you want to convert a file using the input option, you'll have to read the file first manually or use pandoc/1 directly.

to_docbook5(input, opts \\ [])

Calls pandoc/1 with the option to: :docbook5 automatically set.

It also accepts Panpipe.AST.Nodes. pandoc/1 will then be called with Pandoc AST form of the node.

By default, the converted output by Pandoc always ends with a newline. This can not be what you want, esp. when you convert small fragments by passing nodes directly. For this reason Panpipe will remove this newline by default for inline nodes, but keeps them on block nodes. You can control whether they should be removed manually with the remove_trailing_newline option.

To enable or disable extensions for the target format, you can use the keyword options :enable and :disable with a list of extension atom names.

Note: This function only works with directly passed strings or nodes. If you want to convert a file using the input option, you'll have to read the file first manually or use pandoc/1 directly.

to_docbook(input, opts \\ [])

Calls pandoc/1 with the option to: :docbook automatically set.

It also accepts Panpipe.AST.Nodes. pandoc/1 will then be called with Pandoc AST form of the node.

By default, the converted output by Pandoc always ends with a newline. This can not be what you want, esp. when you convert small fragments by passing nodes directly. For this reason Panpipe will remove this newline by default for inline nodes, but keeps them on block nodes. You can control whether they should be removed manually with the remove_trailing_newline option.

To enable or disable extensions for the target format, you can use the keyword options :enable and :disable with a list of extension atom names.

Note: This function only works with directly passed strings or nodes. If you want to convert a file using the input option, you'll have to read the file first manually or use pandoc/1 directly.

to_docx(input, opts \\ [])

Calls pandoc/1 with the option to: :docx automatically set.

It also accepts Panpipe.AST.Nodes. pandoc/1 will then be called with Pandoc AST form of the node.

By default, the converted output by Pandoc always ends with a newline. This can not be what you want, esp. when you convert small fragments by passing nodes directly. For this reason Panpipe will remove this newline by default for inline nodes, but keeps them on block nodes. You can control whether they should be removed manually with the remove_trailing_newline option.

To enable or disable extensions for the target format, you can use the keyword options :enable and :disable with a list of extension atom names.

Note: This function only works with directly passed strings or nodes. If you want to convert a file using the input option, you'll have to read the file first manually or use pandoc/1 directly.

to_dokuwiki(input, opts \\ [])

Calls pandoc/1 with the option to: :dokuwiki automatically set.

It also accepts Panpipe.AST.Nodes. pandoc/1 will then be called with Pandoc AST form of the node.

By default, the converted output by Pandoc always ends with a newline. This can not be what you want, esp. when you convert small fragments by passing nodes directly. For this reason Panpipe will remove this newline by default for inline nodes, but keeps them on block nodes. You can control whether they should be removed manually with the remove_trailing_newline option.

To enable or disable extensions for the target format, you can use the keyword options :enable and :disable with a list of extension atom names.

Note: This function only works with directly passed strings or nodes. If you want to convert a file using the input option, you'll have to read the file first manually or use pandoc/1 directly.

to_dzslides(input, opts \\ [])

Calls pandoc/1 with the option to: :dzslides automatically set.

It also accepts Panpipe.AST.Nodes. pandoc/1 will then be called with Pandoc AST form of the node.

By default, the converted output by Pandoc always ends with a newline. This can not be what you want, esp. when you convert small fragments by passing nodes directly. For this reason Panpipe will remove this newline by default for inline nodes, but keeps them on block nodes. You can control whether they should be removed manually with the remove_trailing_newline option.

To enable or disable extensions for the target format, you can use the keyword options :enable and :disable with a list of extension atom names.

Note: This function only works with directly passed strings or nodes. If you want to convert a file using the input option, you'll have to read the file first manually or use pandoc/1 directly.

to_epub2(input, opts \\ [])

Calls pandoc/1 with the option to: :epub2 automatically set.

It also accepts Panpipe.AST.Nodes. pandoc/1 will then be called with Pandoc AST form of the node.

By default, the converted output by Pandoc always ends with a newline. This can not be what you want, esp. when you convert small fragments by passing nodes directly. For this reason Panpipe will remove this newline by default for inline nodes, but keeps them on block nodes. You can control whether they should be removed manually with the remove_trailing_newline option.

To enable or disable extensions for the target format, you can use the keyword options :enable and :disable with a list of extension atom names.

Note: This function only works with directly passed strings or nodes. If you want to convert a file using the input option, you'll have to read the file first manually or use pandoc/1 directly.

to_epub3(input, opts \\ [])

Calls pandoc/1 with the option to: :epub3 automatically set.

It also accepts Panpipe.AST.Nodes. pandoc/1 will then be called with Pandoc AST form of the node.

By default, the converted output by Pandoc always ends with a newline. This can not be what you want, esp. when you convert small fragments by passing nodes directly. For this reason Panpipe will remove this newline by default for inline nodes, but keeps them on block nodes. You can control whether they should be removed manually with the remove_trailing_newline option.

To enable or disable extensions for the target format, you can use the keyword options :enable and :disable with a list of extension atom names.

Note: This function only works with directly passed strings or nodes. If you want to convert a file using the input option, you'll have to read the file first manually or use pandoc/1 directly.

to_epub(input, opts \\ [])

Calls pandoc/1 with the option to: :epub automatically set.

It also accepts Panpipe.AST.Nodes. pandoc/1 will then be called with Pandoc AST form of the node.

By default, the converted output by Pandoc always ends with a newline. This can not be what you want, esp. when you convert small fragments by passing nodes directly. For this reason Panpipe will remove this newline by default for inline nodes, but keeps them on block nodes. You can control whether they should be removed manually with the remove_trailing_newline option.

To enable or disable extensions for the target format, you can use the keyword options :enable and :disable with a list of extension atom names.

Note: This function only works with directly passed strings or nodes. If you want to convert a file using the input option, you'll have to read the file first manually or use pandoc/1 directly.

to_fb2(input, opts \\ [])

Calls pandoc/1 with the option to: :fb2 automatically set.

It also accepts Panpipe.AST.Nodes. pandoc/1 will then be called with Pandoc AST form of the node.

By default, the converted output by Pandoc always ends with a newline. This can not be what you want, esp. when you convert small fragments by passing nodes directly. For this reason Panpipe will remove this newline by default for inline nodes, but keeps them on block nodes. You can control whether they should be removed manually with the remove_trailing_newline option.

To enable or disable extensions for the target format, you can use the keyword options :enable and :disable with a list of extension atom names.

Note: This function only works with directly passed strings or nodes. If you want to convert a file using the input option, you'll have to read the file first manually or use pandoc/1 directly.

to_gfm(input, opts \\ [])

Calls pandoc/1 with the option to: :gfm automatically set.

It also accepts Panpipe.AST.Nodes. pandoc/1 will then be called with Pandoc AST form of the node.

By default, the converted output by Pandoc always ends with a newline. This can not be what you want, esp. when you convert small fragments by passing nodes directly. For this reason Panpipe will remove this newline by default for inline nodes, but keeps them on block nodes. You can control whether they should be removed manually with the remove_trailing_newline option.

To enable or disable extensions for the target format, you can use the keyword options :enable and :disable with a list of extension atom names.

Note: This function only works with directly passed strings or nodes. If you want to convert a file using the input option, you'll have to read the file first manually or use pandoc/1 directly.

to_haddock(input, opts \\ [])

Calls pandoc/1 with the option to: :haddock automatically set.

It also accepts Panpipe.AST.Nodes. pandoc/1 will then be called with Pandoc AST form of the node.

By default, the converted output by Pandoc always ends with a newline. This can not be what you want, esp. when you convert small fragments by passing nodes directly. For this reason Panpipe will remove this newline by default for inline nodes, but keeps them on block nodes. You can control whether they should be removed manually with the remove_trailing_newline option.

To enable or disable extensions for the target format, you can use the keyword options :enable and :disable with a list of extension atom names.

Note: This function only works with directly passed strings or nodes. If you want to convert a file using the input option, you'll have to read the file first manually or use pandoc/1 directly.

to_html4(input, opts \\ [])

Calls pandoc/1 with the option to: :html4 automatically set.

It also accepts Panpipe.AST.Nodes. pandoc/1 will then be called with Pandoc AST form of the node.

By default, the converted output by Pandoc always ends with a newline. This can not be what you want, esp. when you convert small fragments by passing nodes directly. For this reason Panpipe will remove this newline by default for inline nodes, but keeps them on block nodes. You can control whether they should be removed manually with the remove_trailing_newline option.

To enable or disable extensions for the target format, you can use the keyword options :enable and :disable with a list of extension atom names.

Note: This function only works with directly passed strings or nodes. If you want to convert a file using the input option, you'll have to read the file first manually or use pandoc/1 directly.

to_html5(input, opts \\ [])

Calls pandoc/1 with the option to: :html5 automatically set.

It also accepts Panpipe.AST.Nodes. pandoc/1 will then be called with Pandoc AST form of the node.

By default, the converted output by Pandoc always ends with a newline. This can not be what you want, esp. when you convert small fragments by passing nodes directly. For this reason Panpipe will remove this newline by default for inline nodes, but keeps them on block nodes. You can control whether they should be removed manually with the remove_trailing_newline option.

To enable or disable extensions for the target format, you can use the keyword options :enable and :disable with a list of extension atom names.

Note: This function only works with directly passed strings or nodes. If you want to convert a file using the input option, you'll have to read the file first manually or use pandoc/1 directly.

to_html(input, opts \\ [])

Calls pandoc/1 with the option to: :html automatically set.

It also accepts Panpipe.AST.Nodes. pandoc/1 will then be called with Pandoc AST form of the node.

By default, the converted output by Pandoc always ends with a newline. This can not be what you want, esp. when you convert small fragments by passing nodes directly. For this reason Panpipe will remove this newline by default for inline nodes, but keeps them on block nodes. You can control whether they should be removed manually with the remove_trailing_newline option.

To enable or disable extensions for the target format, you can use the keyword options :enable and :disable with a list of extension atom names.

Note: This function only works with directly passed strings or nodes. If you want to convert a file using the input option, you'll have to read the file first manually or use pandoc/1 directly.

to_icml(input, opts \\ [])

Calls pandoc/1 with the option to: :icml automatically set.

It also accepts Panpipe.AST.Nodes. pandoc/1 will then be called with Pandoc AST form of the node.

By default, the converted output by Pandoc always ends with a newline. This can not be what you want, esp. when you convert small fragments by passing nodes directly. For this reason Panpipe will remove this newline by default for inline nodes, but keeps them on block nodes. You can control whether they should be removed manually with the remove_trailing_newline option.

To enable or disable extensions for the target format, you can use the keyword options :enable and :disable with a list of extension atom names.

Note: This function only works with directly passed strings or nodes. If you want to convert a file using the input option, you'll have to read the file first manually or use pandoc/1 directly.

to_ipynb(input, opts \\ [])

Calls pandoc/1 with the option to: :ipynb automatically set.

It also accepts Panpipe.AST.Nodes. pandoc/1 will then be called with Pandoc AST form of the node.

By default, the converted output by Pandoc always ends with a newline. This can not be what you want, esp. when you convert small fragments by passing nodes directly. For this reason Panpipe will remove this newline by default for inline nodes, but keeps them on block nodes. You can control whether they should be removed manually with the remove_trailing_newline option.

To enable or disable extensions for the target format, you can use the keyword options :enable and :disable with a list of extension atom names.

Note: This function only works with directly passed strings or nodes. If you want to convert a file using the input option, you'll have to read the file first manually or use pandoc/1 directly.

to_jats(input, opts \\ [])

Calls pandoc/1 with the option to: :jats automatically set.

It also accepts Panpipe.AST.Nodes. pandoc/1 will then be called with Pandoc AST form of the node.

By default, the converted output by Pandoc always ends with a newline. This can not be what you want, esp. when you convert small fragments by passing nodes directly. For this reason Panpipe will remove this newline by default for inline nodes, but keeps them on block nodes. You can control whether they should be removed manually with the remove_trailing_newline option.

To enable or disable extensions for the target format, you can use the keyword options :enable and :disable with a list of extension atom names.

Note: This function only works with directly passed strings or nodes. If you want to convert a file using the input option, you'll have to read the file first manually or use pandoc/1 directly.

to_jats_archiving(input, opts \\ [])

Calls pandoc/1 with the option to: :jats_archiving automatically set.

It also accepts Panpipe.AST.Nodes. pandoc/1 will then be called with Pandoc AST form of the node.

By default, the converted output by Pandoc always ends with a newline. This can not be what you want, esp. when you convert small fragments by passing nodes directly. For this reason Panpipe will remove this newline by default for inline nodes, but keeps them on block nodes. You can control whether they should be removed manually with the remove_trailing_newline option.

To enable or disable extensions for the target format, you can use the keyword options :enable and :disable with a list of extension atom names.

Note: This function only works with directly passed strings or nodes. If you want to convert a file using the input option, you'll have to read the file first manually or use pandoc/1 directly.

to_jats_articleauthoring(input, opts \\ [])

Calls pandoc/1 with the option to: :jats_articleauthoring automatically set.

It also accepts Panpipe.AST.Nodes. pandoc/1 will then be called with Pandoc AST form of the node.

By default, the converted output by Pandoc always ends with a newline. This can not be what you want, esp. when you convert small fragments by passing nodes directly. For this reason Panpipe will remove this newline by default for inline nodes, but keeps them on block nodes. You can control whether they should be removed manually with the remove_trailing_newline option.

To enable or disable extensions for the target format, you can use the keyword options :enable and :disable with a list of extension atom names.

Note: This function only works with directly passed strings or nodes. If you want to convert a file using the input option, you'll have to read the file first manually or use pandoc/1 directly.

to_jats_publishing(input, opts \\ [])

Calls pandoc/1 with the option to: :jats_publishing automatically set.

It also accepts Panpipe.AST.Nodes. pandoc/1 will then be called with Pandoc AST form of the node.

By default, the converted output by Pandoc always ends with a newline. This can not be what you want, esp. when you convert small fragments by passing nodes directly. For this reason Panpipe will remove this newline by default for inline nodes, but keeps them on block nodes. You can control whether they should be removed manually with the remove_trailing_newline option.

To enable or disable extensions for the target format, you can use the keyword options :enable and :disable with a list of extension atom names.

Note: This function only works with directly passed strings or nodes. If you want to convert a file using the input option, you'll have to read the file first manually or use pandoc/1 directly.

to_jira(input, opts \\ [])

Calls pandoc/1 with the option to: :jira automatically set.

It also accepts Panpipe.AST.Nodes. pandoc/1 will then be called with Pandoc AST form of the node.

By default, the converted output by Pandoc always ends with a newline. This can not be what you want, esp. when you convert small fragments by passing nodes directly. For this reason Panpipe will remove this newline by default for inline nodes, but keeps them on block nodes. You can control whether they should be removed manually with the remove_trailing_newline option.

To enable or disable extensions for the target format, you can use the keyword options :enable and :disable with a list of extension atom names.

Note: This function only works with directly passed strings or nodes. If you want to convert a file using the input option, you'll have to read the file first manually or use pandoc/1 directly.

to_json(input, opts \\ [])

Calls pandoc/1 with the option to: :json automatically set.

It also accepts Panpipe.AST.Nodes. pandoc/1 will then be called with Pandoc AST form of the node.

By default, the converted output by Pandoc always ends with a newline. This can not be what you want, esp. when you convert small fragments by passing nodes directly. For this reason Panpipe will remove this newline by default for inline nodes, but keeps them on block nodes. You can control whether they should be removed manually with the remove_trailing_newline option.

To enable or disable extensions for the target format, you can use the keyword options :enable and :disable with a list of extension atom names.

Note: This function only works with directly passed strings or nodes. If you want to convert a file using the input option, you'll have to read the file first manually or use pandoc/1 directly.

to_latex(input, opts \\ [])

Calls pandoc/1 with the option to: :latex automatically set.

It also accepts Panpipe.AST.Nodes. pandoc/1 will then be called with Pandoc AST form of the node.

By default, the converted output by Pandoc always ends with a newline. This can not be what you want, esp. when you convert small fragments by passing nodes directly. For this reason Panpipe will remove this newline by default for inline nodes, but keeps them on block nodes. You can control whether they should be removed manually with the remove_trailing_newline option.

To enable or disable extensions for the target format, you can use the keyword options :enable and :disable with a list of extension atom names.

Note: This function only works with directly passed strings or nodes. If you want to convert a file using the input option, you'll have to read the file first manually or use pandoc/1 directly.

to_man(input, opts \\ [])

Calls pandoc/1 with the option to: :man automatically set.

It also accepts Panpipe.AST.Nodes. pandoc/1 will then be called with Pandoc AST form of the node.

By default, the converted output by Pandoc always ends with a newline. This can not be what you want, esp. when you convert small fragments by passing nodes directly. For this reason Panpipe will remove this newline by default for inline nodes, but keeps them on block nodes. You can control whether they should be removed manually with the remove_trailing_newline option.

To enable or disable extensions for the target format, you can use the keyword options :enable and :disable with a list of extension atom names.

Note: This function only works with directly passed strings or nodes. If you want to convert a file using the input option, you'll have to read the file first manually or use pandoc/1 directly.

to_markdown(input, opts \\ [])

Calls pandoc/1 with the option to: :markdown automatically set.

It also accepts Panpipe.AST.Nodes. pandoc/1 will then be called with Pandoc AST form of the node.

By default, the converted output by Pandoc always ends with a newline. This can not be what you want, esp. when you convert small fragments by passing nodes directly. For this reason Panpipe will remove this newline by default for inline nodes, but keeps them on block nodes. You can control whether they should be removed manually with the remove_trailing_newline option.

To enable or disable extensions for the target format, you can use the keyword options :enable and :disable with a list of extension atom names.

Note: This function only works with directly passed strings or nodes. If you want to convert a file using the input option, you'll have to read the file first manually or use pandoc/1 directly.

to_markdown_github(input, opts \\ [])

Calls pandoc/1 with the option to: :markdown_github automatically set.

It also accepts Panpipe.AST.Nodes. pandoc/1 will then be called with Pandoc AST form of the node.

By default, the converted output by Pandoc always ends with a newline. This can not be what you want, esp. when you convert small fragments by passing nodes directly. For this reason Panpipe will remove this newline by default for inline nodes, but keeps them on block nodes. You can control whether they should be removed manually with the remove_trailing_newline option.

To enable or disable extensions for the target format, you can use the keyword options :enable and :disable with a list of extension atom names.

Note: This function only works with directly passed strings or nodes. If you want to convert a file using the input option, you'll have to read the file first manually or use pandoc/1 directly.

to_markdown_mmd(input, opts \\ [])

Calls pandoc/1 with the option to: :markdown_mmd automatically set.

It also accepts Panpipe.AST.Nodes. pandoc/1 will then be called with Pandoc AST form of the node.

By default, the converted output by Pandoc always ends with a newline. This can not be what you want, esp. when you convert small fragments by passing nodes directly. For this reason Panpipe will remove this newline by default for inline nodes, but keeps them on block nodes. You can control whether they should be removed manually with the remove_trailing_newline option.

To enable or disable extensions for the target format, you can use the keyword options :enable and :disable with a list of extension atom names.

Note: This function only works with directly passed strings or nodes. If you want to convert a file using the input option, you'll have to read the file first manually or use pandoc/1 directly.

to_markdown_phpextra(input, opts \\ [])

Calls pandoc/1 with the option to: :markdown_phpextra automatically set.

It also accepts Panpipe.AST.Nodes. pandoc/1 will then be called with Pandoc AST form of the node.

By default, the converted output by Pandoc always ends with a newline. This can not be what you want, esp. when you convert small fragments by passing nodes directly. For this reason Panpipe will remove this newline by default for inline nodes, but keeps them on block nodes. You can control whether they should be removed manually with the remove_trailing_newline option.

To enable or disable extensions for the target format, you can use the keyword options :enable and :disable with a list of extension atom names.

Note: This function only works with directly passed strings or nodes. If you want to convert a file using the input option, you'll have to read the file first manually or use pandoc/1 directly.

to_markdown_strict(input, opts \\ [])

Calls pandoc/1 with the option to: :markdown_strict automatically set.

It also accepts Panpipe.AST.Nodes. pandoc/1 will then be called with Pandoc AST form of the node.

By default, the converted output by Pandoc always ends with a newline. This can not be what you want, esp. when you convert small fragments by passing nodes directly. For this reason Panpipe will remove this newline by default for inline nodes, but keeps them on block nodes. You can control whether they should be removed manually with the remove_trailing_newline option.

To enable or disable extensions for the target format, you can use the keyword options :enable and :disable with a list of extension atom names.

Note: This function only works with directly passed strings or nodes. If you want to convert a file using the input option, you'll have to read the file first manually or use pandoc/1 directly.

to_markua(input, opts \\ [])

Calls pandoc/1 with the option to: :markua automatically set.

It also accepts Panpipe.AST.Nodes. pandoc/1 will then be called with Pandoc AST form of the node.

By default, the converted output by Pandoc always ends with a newline. This can not be what you want, esp. when you convert small fragments by passing nodes directly. For this reason Panpipe will remove this newline by default for inline nodes, but keeps them on block nodes. You can control whether they should be removed manually with the remove_trailing_newline option.

To enable or disable extensions for the target format, you can use the keyword options :enable and :disable with a list of extension atom names.

Note: This function only works with directly passed strings or nodes. If you want to convert a file using the input option, you'll have to read the file first manually or use pandoc/1 directly.

to_mediawiki(input, opts \\ [])

Calls pandoc/1 with the option to: :mediawiki automatically set.

It also accepts Panpipe.AST.Nodes. pandoc/1 will then be called with Pandoc AST form of the node.

By default, the converted output by Pandoc always ends with a newline. This can not be what you want, esp. when you convert small fragments by passing nodes directly. For this reason Panpipe will remove this newline by default for inline nodes, but keeps them on block nodes. You can control whether they should be removed manually with the remove_trailing_newline option.

To enable or disable extensions for the target format, you can use the keyword options :enable and :disable with a list of extension atom names.

Note: This function only works with directly passed strings or nodes. If you want to convert a file using the input option, you'll have to read the file first manually or use pandoc/1 directly.

to_ms(input, opts \\ [])

Calls pandoc/1 with the option to: :ms automatically set.

It also accepts Panpipe.AST.Nodes. pandoc/1 will then be called with Pandoc AST form of the node.

By default, the converted output by Pandoc always ends with a newline. This can not be what you want, esp. when you convert small fragments by passing nodes directly. For this reason Panpipe will remove this newline by default for inline nodes, but keeps them on block nodes. You can control whether they should be removed manually with the remove_trailing_newline option.

To enable or disable extensions for the target format, you can use the keyword options :enable and :disable with a list of extension atom names.

Note: This function only works with directly passed strings or nodes. If you want to convert a file using the input option, you'll have to read the file first manually or use pandoc/1 directly.

to_muse(input, opts \\ [])

Calls pandoc/1 with the option to: :muse automatically set.

It also accepts Panpipe.AST.Nodes. pandoc/1 will then be called with Pandoc AST form of the node.

By default, the converted output by Pandoc always ends with a newline. This can not be what you want, esp. when you convert small fragments by passing nodes directly. For this reason Panpipe will remove this newline by default for inline nodes, but keeps them on block nodes. You can control whether they should be removed manually with the remove_trailing_newline option.

To enable or disable extensions for the target format, you can use the keyword options :enable and :disable with a list of extension atom names.

Note: This function only works with directly passed strings or nodes. If you want to convert a file using the input option, you'll have to read the file first manually or use pandoc/1 directly.

to_native(input, opts \\ [])

Calls pandoc/1 with the option to: :native automatically set.

It also accepts Panpipe.AST.Nodes. pandoc/1 will then be called with Pandoc AST form of the node.

By default, the converted output by Pandoc always ends with a newline. This can not be what you want, esp. when you convert small fragments by passing nodes directly. For this reason Panpipe will remove this newline by default for inline nodes, but keeps them on block nodes. You can control whether they should be removed manually with the remove_trailing_newline option.

To enable or disable extensions for the target format, you can use the keyword options :enable and :disable with a list of extension atom names.

Note: This function only works with directly passed strings or nodes. If you want to convert a file using the input option, you'll have to read the file first manually or use pandoc/1 directly.

to_odt(input, opts \\ [])

Calls pandoc/1 with the option to: :odt automatically set.

It also accepts Panpipe.AST.Nodes. pandoc/1 will then be called with Pandoc AST form of the node.

By default, the converted output by Pandoc always ends with a newline. This can not be what you want, esp. when you convert small fragments by passing nodes directly. For this reason Panpipe will remove this newline by default for inline nodes, but keeps them on block nodes. You can control whether they should be removed manually with the remove_trailing_newline option.

To enable or disable extensions for the target format, you can use the keyword options :enable and :disable with a list of extension atom names.

Note: This function only works with directly passed strings or nodes. If you want to convert a file using the input option, you'll have to read the file first manually or use pandoc/1 directly.

to_opendocument(input, opts \\ [])

Calls pandoc/1 with the option to: :opendocument automatically set.

It also accepts Panpipe.AST.Nodes. pandoc/1 will then be called with Pandoc AST form of the node.

By default, the converted output by Pandoc always ends with a newline. This can not be what you want, esp. when you convert small fragments by passing nodes directly. For this reason Panpipe will remove this newline by default for inline nodes, but keeps them on block nodes. You can control whether they should be removed manually with the remove_trailing_newline option.

To enable or disable extensions for the target format, you can use the keyword options :enable and :disable with a list of extension atom names.

Note: This function only works with directly passed strings or nodes. If you want to convert a file using the input option, you'll have to read the file first manually or use pandoc/1 directly.

to_opml(input, opts \\ [])

Calls pandoc/1 with the option to: :opml automatically set.

It also accepts Panpipe.AST.Nodes. pandoc/1 will then be called with Pandoc AST form of the node.

By default, the converted output by Pandoc always ends with a newline. This can not be what you want, esp. when you convert small fragments by passing nodes directly. For this reason Panpipe will remove this newline by default for inline nodes, but keeps them on block nodes. You can control whether they should be removed manually with the remove_trailing_newline option.

To enable or disable extensions for the target format, you can use the keyword options :enable and :disable with a list of extension atom names.

Note: This function only works with directly passed strings or nodes. If you want to convert a file using the input option, you'll have to read the file first manually or use pandoc/1 directly.

to_org(input, opts \\ [])

Calls pandoc/1 with the option to: :org automatically set.

It also accepts Panpipe.AST.Nodes. pandoc/1 will then be called with Pandoc AST form of the node.

By default, the converted output by Pandoc always ends with a newline. This can not be what you want, esp. when you convert small fragments by passing nodes directly. For this reason Panpipe will remove this newline by default for inline nodes, but keeps them on block nodes. You can control whether they should be removed manually with the remove_trailing_newline option.

To enable or disable extensions for the target format, you can use the keyword options :enable and :disable with a list of extension atom names.

Note: This function only works with directly passed strings or nodes. If you want to convert a file using the input option, you'll have to read the file first manually or use pandoc/1 directly.

to_pdf(input, opts \\ [])

Calls pandoc/1 with the option to: :pdf automatically set.

It also accepts Panpipe.AST.Nodes. pandoc/1 will then be called with Pandoc AST form of the node.

By default, the converted output by Pandoc always ends with a newline. This can not be what you want, esp. when you convert small fragments by passing nodes directly. For this reason Panpipe will remove this newline by default for inline nodes, but keeps them on block nodes. You can control whether they should be removed manually with the remove_trailing_newline option.

To enable or disable extensions for the target format, you can use the keyword options :enable and :disable with a list of extension atom names.

Note: This function only works with directly passed strings or nodes. If you want to convert a file using the input option, you'll have to read the file first manually or use pandoc/1 directly.

to_plain(input, opts \\ [])

Calls pandoc/1 with the option to: :plain automatically set.

It also accepts Panpipe.AST.Nodes. pandoc/1 will then be called with Pandoc AST form of the node.

By default, the converted output by Pandoc always ends with a newline. This can not be what you want, esp. when you convert small fragments by passing nodes directly. For this reason Panpipe will remove this newline by default for inline nodes, but keeps them on block nodes. You can control whether they should be removed manually with the remove_trailing_newline option.

To enable or disable extensions for the target format, you can use the keyword options :enable and :disable with a list of extension atom names.

Note: This function only works with directly passed strings or nodes. If you want to convert a file using the input option, you'll have to read the file first manually or use pandoc/1 directly.

to_pptx(input, opts \\ [])

Calls pandoc/1 with the option to: :pptx automatically set.

It also accepts Panpipe.AST.Nodes. pandoc/1 will then be called with Pandoc AST form of the node.

By default, the converted output by Pandoc always ends with a newline. This can not be what you want, esp. when you convert small fragments by passing nodes directly. For this reason Panpipe will remove this newline by default for inline nodes, but keeps them on block nodes. You can control whether they should be removed manually with the remove_trailing_newline option.

To enable or disable extensions for the target format, you can use the keyword options :enable and :disable with a list of extension atom names.

Note: This function only works with directly passed strings or nodes. If you want to convert a file using the input option, you'll have to read the file first manually or use pandoc/1 directly.

to_revealjs(input, opts \\ [])

Calls pandoc/1 with the option to: :revealjs automatically set.

It also accepts Panpipe.AST.Nodes. pandoc/1 will then be called with Pandoc AST form of the node.

By default, the converted output by Pandoc always ends with a newline. This can not be what you want, esp. when you convert small fragments by passing nodes directly. For this reason Panpipe will remove this newline by default for inline nodes, but keeps them on block nodes. You can control whether they should be removed manually with the remove_trailing_newline option.

To enable or disable extensions for the target format, you can use the keyword options :enable and :disable with a list of extension atom names.

Note: This function only works with directly passed strings or nodes. If you want to convert a file using the input option, you'll have to read the file first manually or use pandoc/1 directly.

to_rst(input, opts \\ [])

Calls pandoc/1 with the option to: :rst automatically set.

It also accepts Panpipe.AST.Nodes. pandoc/1 will then be called with Pandoc AST form of the node.

By default, the converted output by Pandoc always ends with a newline. This can not be what you want, esp. when you convert small fragments by passing nodes directly. For this reason Panpipe will remove this newline by default for inline nodes, but keeps them on block nodes. You can control whether they should be removed manually with the remove_trailing_newline option.

To enable or disable extensions for the target format, you can use the keyword options :enable and :disable with a list of extension atom names.

Note: This function only works with directly passed strings or nodes. If you want to convert a file using the input option, you'll have to read the file first manually or use pandoc/1 directly.

to_rtf(input, opts \\ [])

Calls pandoc/1 with the option to: :rtf automatically set.

It also accepts Panpipe.AST.Nodes. pandoc/1 will then be called with Pandoc AST form of the node.

By default, the converted output by Pandoc always ends with a newline. This can not be what you want, esp. when you convert small fragments by passing nodes directly. For this reason Panpipe will remove this newline by default for inline nodes, but keeps them on block nodes. You can control whether they should be removed manually with the remove_trailing_newline option.

To enable or disable extensions for the target format, you can use the keyword options :enable and :disable with a list of extension atom names.

Note: This function only works with directly passed strings or nodes. If you want to convert a file using the input option, you'll have to read the file first manually or use pandoc/1 directly.

to_s5(input, opts \\ [])

Calls pandoc/1 with the option to: :s5 automatically set.

It also accepts Panpipe.AST.Nodes. pandoc/1 will then be called with Pandoc AST form of the node.

By default, the converted output by Pandoc always ends with a newline. This can not be what you want, esp. when you convert small fragments by passing nodes directly. For this reason Panpipe will remove this newline by default for inline nodes, but keeps them on block nodes. You can control whether they should be removed manually with the remove_trailing_newline option.

To enable or disable extensions for the target format, you can use the keyword options :enable and :disable with a list of extension atom names.

Note: This function only works with directly passed strings or nodes. If you want to convert a file using the input option, you'll have to read the file first manually or use pandoc/1 directly.

to_slideous(input, opts \\ [])

Calls pandoc/1 with the option to: :slideous automatically set.

It also accepts Panpipe.AST.Nodes. pandoc/1 will then be called with Pandoc AST form of the node.

By default, the converted output by Pandoc always ends with a newline. This can not be what you want, esp. when you convert small fragments by passing nodes directly. For this reason Panpipe will remove this newline by default for inline nodes, but keeps them on block nodes. You can control whether they should be removed manually with the remove_trailing_newline option.

To enable or disable extensions for the target format, you can use the keyword options :enable and :disable with a list of extension atom names.

Note: This function only works with directly passed strings or nodes. If you want to convert a file using the input option, you'll have to read the file first manually or use pandoc/1 directly.

to_slidy(input, opts \\ [])

Calls pandoc/1 with the option to: :slidy automatically set.

It also accepts Panpipe.AST.Nodes. pandoc/1 will then be called with Pandoc AST form of the node.

By default, the converted output by Pandoc always ends with a newline. This can not be what you want, esp. when you convert small fragments by passing nodes directly. For this reason Panpipe will remove this newline by default for inline nodes, but keeps them on block nodes. You can control whether they should be removed manually with the remove_trailing_newline option.

To enable or disable extensions for the target format, you can use the keyword options :enable and :disable with a list of extension atom names.

Note: This function only works with directly passed strings or nodes. If you want to convert a file using the input option, you'll have to read the file first manually or use pandoc/1 directly.

to_tei(input, opts \\ [])

Calls pandoc/1 with the option to: :tei automatically set.

It also accepts Panpipe.AST.Nodes. pandoc/1 will then be called with Pandoc AST form of the node.

By default, the converted output by Pandoc always ends with a newline. This can not be what you want, esp. when you convert small fragments by passing nodes directly. For this reason Panpipe will remove this newline by default for inline nodes, but keeps them on block nodes. You can control whether they should be removed manually with the remove_trailing_newline option.

To enable or disable extensions for the target format, you can use the keyword options :enable and :disable with a list of extension atom names.

Note: This function only works with directly passed strings or nodes. If you want to convert a file using the input option, you'll have to read the file first manually or use pandoc/1 directly.

to_texinfo(input, opts \\ [])

Calls pandoc/1 with the option to: :texinfo automatically set.

It also accepts Panpipe.AST.Nodes. pandoc/1 will then be called with Pandoc AST form of the node.

By default, the converted output by Pandoc always ends with a newline. This can not be what you want, esp. when you convert small fragments by passing nodes directly. For this reason Panpipe will remove this newline by default for inline nodes, but keeps them on block nodes. You can control whether they should be removed manually with the remove_trailing_newline option.

To enable or disable extensions for the target format, you can use the keyword options :enable and :disable with a list of extension atom names.

Note: This function only works with directly passed strings or nodes. If you want to convert a file using the input option, you'll have to read the file first manually or use pandoc/1 directly.

to_textile(input, opts \\ [])

Calls pandoc/1 with the option to: :textile automatically set.

It also accepts Panpipe.AST.Nodes. pandoc/1 will then be called with Pandoc AST form of the node.

By default, the converted output by Pandoc always ends with a newline. This can not be what you want, esp. when you convert small fragments by passing nodes directly. For this reason Panpipe will remove this newline by default for inline nodes, but keeps them on block nodes. You can control whether they should be removed manually with the remove_trailing_newline option.

To enable or disable extensions for the target format, you can use the keyword options :enable and :disable with a list of extension atom names.

Note: This function only works with directly passed strings or nodes. If you want to convert a file using the input option, you'll have to read the file first manually or use pandoc/1 directly.

to_typst(input, opts \\ [])

Calls pandoc/1 with the option to: :typst automatically set.

It also accepts Panpipe.AST.Nodes. pandoc/1 will then be called with Pandoc AST form of the node.

By default, the converted output by Pandoc always ends with a newline. This can not be what you want, esp. when you convert small fragments by passing nodes directly. For this reason Panpipe will remove this newline by default for inline nodes, but keeps them on block nodes. You can control whether they should be removed manually with the remove_trailing_newline option.

To enable or disable extensions for the target format, you can use the keyword options :enable and :disable with a list of extension atom names.

Note: This function only works with directly passed strings or nodes. If you want to convert a file using the input option, you'll have to read the file first manually or use pandoc/1 directly.

to_xwiki(input, opts \\ [])

Calls pandoc/1 with the option to: :xwiki automatically set.

It also accepts Panpipe.AST.Nodes. pandoc/1 will then be called with Pandoc AST form of the node.

By default, the converted output by Pandoc always ends with a newline. This can not be what you want, esp. when you convert small fragments by passing nodes directly. For this reason Panpipe will remove this newline by default for inline nodes, but keeps them on block nodes. You can control whether they should be removed manually with the remove_trailing_newline option.

To enable or disable extensions for the target format, you can use the keyword options :enable and :disable with a list of extension atom names.

Note: This function only works with directly passed strings or nodes. If you want to convert a file using the input option, you'll have to read the file first manually or use pandoc/1 directly.

to_zimwiki(input, opts \\ [])

Calls pandoc/1 with the option to: :zimwiki automatically set.

It also accepts Panpipe.AST.Nodes. pandoc/1 will then be called with Pandoc AST form of the node.

By default, the converted output by Pandoc always ends with a newline. This can not be what you want, esp. when you convert small fragments by passing nodes directly. For this reason Panpipe will remove this newline by default for inline nodes, but keeps them on block nodes. You can control whether they should be removed manually with the remove_trailing_newline option.

To enable or disable extensions for the target format, you can use the keyword options :enable and :disable with a list of extension atom names.

Note: This function only works with directly passed strings or nodes. If you want to convert a file using the input option, you'll have to read the file first manually or use pandoc/1 directly.

transform(node, fun)

See Panpipe.AST.Node.transform/2.