table-layout-0.9.0.1: Format tabular data as grid or table.

Safe HaskellSafe
LanguageHaskell2010

Text.Layout.Table.Pandoc

Description

Render tables that can be used in Pandoc. In particular, this supports the pipe_tables extension.

Synopsis

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|