diff options
author | Alexander Biehl <alexbiehl@gmail.com> | 2018-01-05 10:43:15 +0100 |
---|---|---|
committer | Alexander Biehl <alexbiehl@gmail.com> | 2018-02-01 14:58:18 +0100 |
commit | 9fd7f8bff6bdb6459fbecdc02db09789cfb6c816 (patch) | |
tree | b2ebdf0294c48a1fd91fd08e32885849e0ea633c /doc | |
parent | 088b1993fb6c6ed014a95e93d7c07f68218c7777 (diff) |
Add grid table example to cheatsheet
(pdf and svg need to be regenerated thought)
Diffstat (limited to 'doc')
-rw-r--r-- | doc/cheatsheet/haddocks.md | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/doc/cheatsheet/haddocks.md b/doc/cheatsheet/haddocks.md index fbe71392..a3464584 100644 --- a/doc/cheatsheet/haddocks.md +++ b/doc/cheatsheet/haddocks.md @@ -118,3 +118,20 @@ definitions with "[thing]" {-# OPTIONS_HADDOCK show-extensions #-} Show all enabled LANGUAGE extensions ``` + +# Grid tables + +``` ++------------------------+------------+----------+----------+ +| Header row, column 1 | Header 2 | Header 3 | Header 4 | +| (header rows optional) | | | | ++========================+============+==========+==========+ +| body row 1, column 1 | column 2 | column 3 | column 4 | ++------------------------+------------+----------+----------+ +| body row 2 | Cells may span columns. | ++------------------------+------------+---------------------+ +| body row 3 | Cells may | \[ | ++------------------------+ span rows. | f(n) = \sum_{i=1} | +| body row 4 | | \] | ++------------------------+------------+---------------------+ +``` |