Pandoc
  Meta
    { unMeta =
        fromList
          [ ( "title"
            , MetaInlines
                [ Str "An"
                , Space
                , Str "Example"
                , Space
                , Str "Book"
                ]
            )
          ]
    }
  [ Header
      2
      ( "ch01" , [] , [] )
      [ Str "XRef" , Space , Str "Samples" ]
  , Para
      [ Str "This"
      , Space
      , Str "paragraph"
      , Space
      , Str "demonstrates"
      , Space
      , Str "several"
      , Space
      , Str "features"
      , Space
      , Str "of"
      , SoftBreak
      , Str "XRef."
      ]
  , BulletList
      [ [ Para
            [ Str "A"
            , Space
            , Str "straight"
            , Space
            , Str "link"
            , Space
            , Str "generates"
            , Space
            , Str "the"
            , SoftBreak
            , Str "cross-reference"
            , Space
            , Str "text:"
            , Space
            , Link
                ( "" , [] , [] )
                [ Str "The"
                , Space
                , Str "Second"
                , Space
                , Str "Chapter"
                ]
                ( "#ch02" , "" )
            , Str "."
            ]
        ]
      , [ Para
            [ Str "A"
            , Space
            , Str "link"
            , Space
            , Str "to"
            , Space
            , Str "an"
            , Space
            , Str "element"
            , Space
            , Str "with"
            , Space
            , Str "an"
            , SoftBreak
            , Str "XRefLabel:"
            , SoftBreak
            , Link
                ( "" , [] , [] )
                [ Str "Chapter"
                , Space
                , Str "the"
                , Space
                , Str "Third"
                ]
                ( "#ch03" , "" )
            , Str "."
            ]
        ]
      , [ Para
            [ Str "A"
            , Space
            , Str "link"
            , Space
            , Str "with"
            , Space
            , Str "an"
            , SoftBreak
            , Str "EndTerm:"
            , SoftBreak
            , Link
                ( "" , [] , [] )
                [ Str "Chapter" , Space , Str "4" ]
                ( "#ch04" , "" )
            , Str "."
            ]
        ]
      , [ Para
            [ Str "A"
            , Space
            , Str "link"
            , Space
            , Str "to"
            , Space
            , Str "an"
            , SoftBreak
            , Str "cmdsynopsis"
            , Space
            , Str "element:"
            , Space
            , Link ( "" , [] , [] ) [ Str "chgrp" ] ( "#cmd01" , "" )
            , Str "."
            ]
        ]
      , [ Para
            [ Str "A"
            , Space
            , Str "link"
            , Space
            , Str "to"
            , Space
            , Str "an"
            , SoftBreak
            , Str "funcsynopsis"
            , Space
            , Str "element:"
            , Space
            , Link ( "" , [] , [] ) [ Str "max" ] ( "#func01" , "" )
            , Str "."
            ]
        ]
      , [ Para
            [ Str "A"
            , Space
            , Str "link"
            , Space
            , Str "to"
            , Space
            , Str "a"
            , SoftBreak
            , Str "figure"
            , Space
            , Str "element:"
            , Space
            , Link
                ( "" , [] , [] )
                [ Str "The"
                , Space
                , Str "Pythagorean"
                , Space
                , Str "Theorem"
                , Space
                , Str "Illustrated"
                ]
                ( "#fig01" , "" )
            , Str "."
            ]
        ]
      , [ Para
            [ Str "A"
            , Space
            , Str "link"
            , Space
            , Str "to"
            , Space
            , Str "a"
            , SoftBreak
            , Str "table"
            , Space
            , Str "element:"
            , Space
            , Link
                ( "" , [] , [] )
                [ Str "Supported"
                , Space
                , Str "features"
                , Space
                , Str "by"
                , Space
                , Str "version"
                ]
                ( "#table01" , "" )
            , Str "."
            ]
        ]
      , [ Para
            [ Str "A"
            , Space
            , Str "link"
            , Space
            , Str "to"
            , Space
            , Str "a"
            , SoftBreak
            , Str "part"
            , Space
            , Str "element:"
            , Space
            , Link
                ( "" , [] , [] )
                [ Str "Later" , Space , Str "Part" ]
                ( "#part01" , "" )
            , Str "."
            ]
        ]
      , [ Para
            [ Str "A"
            , Space
            , Str "link"
            , Space
            , Str "to"
            , Space
            , Str "a"
            , SoftBreak
            , Str "book"
            , Space
            , Str "element:"
            , Space
            , Link
                ( "" , [] , [] )
                [ Str "An"
                , Space
                , Str "Example"
                , Space
                , Str "Book"
                ]
                ( "#book01" , "" )
            , Str "."
            ]
        ]
      ]
  , Header
      2
      ( "ch02" , [] , [] )
      [ Str "The" , Space , Str "Second" , Space , Str "Chapter" ]
  , Para
      [ Str "Some" , Space , Str "content" , Space , Str "here" ]
  , Header
      1
      ( "part01" , [] , [] )
      [ Str "Later" , Space , Str "Part" ]
  , Header
      2
      ( "ch03" , [] , [] )
      [ Str "The" , Space , Str "Third" , Space , Str "Chapter" ]
  , Para
      [ Str "Some" , Space , Str "content" , Space , Str "here" ]
  , Header
      2
      ( "ch04" , [] , [ ( "titleabbrev" , "Chapter 4" ) ] )
      [ Str "The" , Space , Str "Fourth" , Space , Str "Chapter" ]
  , Para
      [ Str "Some" , Space , Str "content" , Space , Str "here" ]
  , Plain [ Str "chgrp" ]
  , Plain [ Str "-R" ]
  , Plain [ Str "-H" ]
  , Plain [ Str "-L" ]
  , Plain [ Str "-P" ]
  , Plain [ Str "-f" ]
  , Plain [ Str "group" ]
  , Plain [ Str "file" ]
  , Plain [ Str "int" ]
  , Plain [ Str "max" ]
  , Plain [ Str "int" ]
  , Plain [ Str "int1" ]
  , Plain [ Str "int" ]
  , Plain [ Str "int2" ]
  , Figure
      ( "fig01" , [] , [] )
      (Caption
         Nothing
         [ Plain
             [ Str "The"
             , Space
             , Str "Pythagorean"
             , Space
             , Str "Theorem"
             , Space
             , Str "Illustrated"
             ]
         ])
      [ Plain
          [ Image
              ( "" , [] , [] )
              [ Str "An"
              , Space
              , Str "illustration"
              , Space
              , Str "of"
              , Space
              , Str "the"
              , Space
              , Str "Pythagorean"
              , Space
              , Str "Theorem"
              ]
              ( "figures/pythag.png" , "" )
          ]
      ]
  , Table
      ( "" , [] , [] )
      (Caption
         Nothing
         [ Plain
             [ Str "Supported"
             , Space
             , Str "features"
             , Space
             , Str "by"
             , Space
             , Str "version"
             ]
         ])
      [ ( AlignDefault , ColWidth 0.5 )
      , ( AlignDefault , ColWidth 0.5 )
      ]
      (TableHead
         ( "" , [] , [] )
         [ Row
             ( "" , [] , [] )
             [ Cell
                 ( "" , [] , [] )
                 AlignDefault
                 (RowSpan 1)
                 (ColSpan 1)
                 [ Plain [ Str "Version" ] ]
             , Cell
                 ( "" , [] , [] )
                 AlignDefault
                 (RowSpan 1)
                 (ColSpan 1)
                 [ Plain [ Str "Feat" ] ]
             ]
         ])
      [ TableBody
          ( "" , [] , [] )
          (RowHeadColumns 0)
          []
          [ Row
              ( "" , [] , [] )
              [ Cell
                  ( "" , [] , [] )
                  AlignDefault
                  (RowSpan 1)
                  (ColSpan 1)
                  [ Plain [ Str "Free" ] ]
              , Cell
                  ( "" , [] , [] )
                  AlignDefault
                  (RowSpan 1)
                  (ColSpan 1)
                  [ Plain [ Str "no" ] ]
              ]
          ]
      ]
      (TableFoot ( "" , [] , [] ) [])
  ]
