PhoenixPandoc.Pandoc (phoenix_pandoc v1.1.2)

View Source

A thin wrapper around the pandoc executable.

Pandoc must be installed on your system for this module to work.

Summary

Functions

Convert a string between markup formats using pandoc.

List of readers supported by pandoc.

List of writers supported by pandoc.

Functions

convert(input, from, from)

@spec convert(String.t(), String.t(), String.t()) :: String.t()

Convert a string between markup formats using pandoc.

Parameters

  • input - The string to convert with pandoc
  • from - The pandoc reader to parse input with
  • to - The pandoc writer for the output

When from and to are the same, the input is returned unmodified.

readers()

@spec readers() :: [String.t()]

List of readers supported by pandoc.

writers()

@spec writers() :: [String.t()]

List of writers supported by pandoc.