diagrams-pandoc-0.2: A pandoc filter to express diagrams inline using the haskell EDSL _diagrams_

Safe HaskellNone
LanguageHaskell2010

Text.Pandoc.Diagrams

Description

Convert appropriately annotated Code blocks to an image, with or without display of the code. Interpret the Code blocks as Haskell code using the Diagrams libraries.

Synopsis

Documentation

data Opts Source

Constructors

Opts 

Fields

_outFormat :: String

Not currently used

_outDir :: FilePath
 
_expression :: String
 

data Echo Source

Constructors

Above 
Below 

compileDiagram :: Opts -> String -> IO (Either String String) Source

Compile the literate source code of a diagram to a .png file with a file name given by a hash of the source code contents