packages feed

asciidoc-0.1: test/asciidoctor/table/with-header.test

[options="header"]
|===
| Name of Column 1 | Name of Column 2

| Cell in column 1, row 1 | Cell in column 2, row 1
| Cell in column 1, row 2 | Cell in column 2, row 2
|===
>>>
Document
  { docMeta =
      Meta
        { docTitle = []
        , docTitleAttributes = Nothing
        , docAuthors = []
        , docRevision = Nothing
        , docAttributes = fromList [ ( "sectids" , "" ) ]
        }
  , docBlocks =
      [ Block
          mempty
          Nothing
          (Table
             [ ColumnSpec
                 { colHorizAlign = Nothing
                 , colVertAlign = Nothing
                 , colWidth = Nothing
                 , colStyle = Nothing
                 }
             , ColumnSpec
                 { colHorizAlign = Nothing
                 , colVertAlign = Nothing
                 , colWidth = Nothing
                 , colStyle = Nothing
                 }
             ]
             (Just
                [ TableRow
                    [ TableCell
                        { cellContent =
                            [ Block
                                mempty
                                Nothing
                                (Paragraph [ Inline mempty (Str "Name of Column 1") ])
                            ]
                        , cellHorizAlign = Nothing
                        , cellVertAlign = Nothing
                        , cellColspan = 1
                        , cellRowspan = 1
                        }
                    , TableCell
                        { cellContent =
                            [ Block
                                mempty
                                Nothing
                                (Paragraph [ Inline mempty (Str "Name of Column 2") ])
                            ]
                        , cellHorizAlign = Nothing
                        , cellVertAlign = Nothing
                        , cellColspan = 1
                        , cellRowspan = 1
                        }
                    ]
                ])
             [ TableRow
                 [ TableCell
                     { cellContent =
                         [ Block
                             mempty
                             Nothing
                             (Paragraph [ Inline mempty (Str "Cell in column 1, row 1") ])
                         ]
                     , cellHorizAlign = Nothing
                     , cellVertAlign = Nothing
                     , cellColspan = 1
                     , cellRowspan = 1
                     }
                 , TableCell
                     { cellContent =
                         [ Block
                             mempty
                             Nothing
                             (Paragraph [ Inline mempty (Str "Cell in column 2, row 1") ])
                         ]
                     , cellHorizAlign = Nothing
                     , cellVertAlign = Nothing
                     , cellColspan = 1
                     , cellRowspan = 1
                     }
                 ]
             ]
             (Just
                [ TableRow
                    [ TableCell
                        { cellContent =
                            [ Block
                                mempty
                                Nothing
                                (Paragraph [ Inline mempty (Str "Cell in column 1, row 2") ])
                            ]
                        , cellHorizAlign = Nothing
                        , cellVertAlign = Nothing
                        , cellColspan = 1
                        , cellRowspan = 1
                        }
                    , TableCell
                        { cellContent =
                            [ Block
                                mempty
                                Nothing
                                (Paragraph [ Inline mempty (Str "Cell in column 2, row 2") ])
                            ]
                        , cellHorizAlign = Nothing
                        , cellVertAlign = Nothing
                        , cellColspan = 1
                        , cellRowspan = 1
                        }
                    ]
                ]))
      ]
  }