Panpipe.to_textile
You're seeing just the function
to_textile
, go back to Panpipe module for more information.
Calls pandoc/1
with the option to: :textile
automatically set.
It also accepts Panpipe.AST.Node
s. 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.