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
- data PandocSeparator
- pandocPipeTableLines :: Cell c => [ColSpec] -> HeaderSpec PandocSeparator c -> [Row String] -> [String]
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
Default PandocSeparator Source # | |
Defined in Text.Layout.Table.Pandoc Methods def :: PandocSeparator # |
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|