Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Text.Layout.Table.Pandoc
Description
Render tables that can be used in Pandoc. In particular, this supports the pipe_tables extension.
Synopsis
- pandocPipeTableLines :: [ColSpec] -> HeaderSpec -> [Row String] -> [String]
- applyPandocPositionMarker :: Position H -> String -> String
Documentation
pandocPipeTableLines :: [ColSpec] -> HeaderSpec -> [Row String] -> [String] Source #
Generate a table that is readable but also serves as input to pandoc.
>>>
mapM_ putStrLn $ pandocPipeTableLines [def, numCol] (titlesH ["text", "numeric value"]) [["a", "1.5"], ["b", "6.60000"]]
|text|numberic value| |:---|-------------:| |a | 1.5 | |b | 6.60000|