View Source PhoenixPandoc.Pandoc (phoenix_pandoc v1.1.1)

A thin wrapper around the pandoc executable.

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

Link to this section Summary

Functions

Convert a string between markup formats using pandoc.

List of readers supported by pandoc.

List of writers supported by pandoc.

Link to this section Functions

Link to this function

convert(input, from, from)

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

Convert a string between markup formats using pandoc.

parameters

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.

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

List of readers supported by pandoc.

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

List of writers supported by pandoc.