table-layout-1.0.0.0: Format tabular data as grid or table.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Text.Layout.Table.Pandoc

Description

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

Synopsis

Documentation

data PandocSeparator Source #

The separator to be used for HeaderSpec. The only supported value is def. Typically, it is not necessary to use this.

Instances

Instances details
Default PandocSeparator Source # 
Instance details

Defined in Text.Layout.Table.Pandoc

pandocPipeTableLines :: Cell c => [ColSpec] -> HeaderSpec PandocSeparator c -> [Row String] -> [String] Source #

Generate a table that is readable but also serves as input to pandoc.

>>> mapM_ putStrLn $ pandocPipeTableLines [defColSpec, numCol] (titlesH ["text", "numeric value"]) [["a", "1.5"], ["b", "6.60000"]]
|text|numberic value|
|:---|-------------:|
|a   |       1.5    |
|b   |       6.60000|