packages feed

asciidoc-0.1: test/asciidoctor/outline/numbered.test

= Document Title
:toc:
:numbered:

== Section 1

:numbered!:

== Unnumbered Section

:numbered:

== Section 2

=== Section 2.1

== Section 3
>>>
Document
  { docMeta =
      Meta
        { docTitle = [ Inline mempty (Str "Document Title") ]
        , docTitleAttributes = Nothing
        , docAuthors = []
        , docRevision = Nothing
        , docAttributes =
            fromList
              [ ( "numbered" , "" ) , ( "sectids" , "" ) , ( "toc" , "" ) ]
        }
  , docBlocks =
      [ Block
          Attr
          ( [] , fromList [ ( "id" , "_section_1" ) ] )
          Nothing
          (Section
             (Level 1)
             [ Inline mempty (Str "Section 1") ]
             [ Block
                 mempty Nothing (Paragraph [ Inline mempty (Str ":numbered!:") ])
             ])
      , Block
          Attr
          ( [] , fromList [ ( "id" , "_unnumbered_section" ) ] )
          Nothing
          (Section
             (Level 1)
             [ Inline mempty (Str "Unnumbered Section") ]
             [ Block
                 mempty Nothing (Paragraph [ Inline mempty (Str ":numbered:") ])
             ])
      , Block
          Attr
          ( [] , fromList [ ( "id" , "_section_2" ) ] )
          Nothing
          (Section
             (Level 1)
             [ Inline mempty (Str "Section 2") ]
             [ Block
                 Attr
                 ( [] , fromList [ ( "id" , "_section_2_1" ) ] )
                 Nothing
                 (Section (Level 2) [ Inline mempty (Str "Section 2.1") ] [])
             ])
      , Block
          Attr
          ( [] , fromList [ ( "id" , "_section_3" ) ] )
          Nothing
          (Section (Level 1) [ Inline mempty (Str "Section 3") ] [])
      ]
  }