Panpipe.to_markdown

You're seeing just the function to_markdown, go back to Panpipe module for more information.
Link to this function

to_markdown(input, opts \\ [])

View Source

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.

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.