================================================================================
Sections with overline
================================================================================

~~~~
Four
~~~~

--
A
--

^^^^^^^^^^
 Subtitle
^^^^^^^^^^

~~~~~
*Foo*
~~~~~

+++
Foo **bar**
+++

====  
with whitespaces
====  

--------------------------------------------------------------------------------

(document
  (section
    (title))
  (section
    (title))
  (section
    (title))
  (section
    (title
      (emphasis)))
  (section
    (title
      (strong)))
  (section
    (title)))

================================================================================
Invalid overline sections
================================================================================

++
Short
+++

///
Short
//


!!!
Different
^^^

--------------------------------------------------------------------------------

(document
  (paragraph)
  (paragraph)
  (paragraph))

================================================================================
Underline sections
================================================================================

Four
~~~~

A
--

Subtitle
^^^^^^^^^^

*Foo*
~~~~~

Foo **bar**
+++

with whitespaces
====  

--------------------------------------------------------------------------------

(document
  (section
    (title))
  (section
    (title))
  (section
    (title))
  (section
    (title
      (emphasis)))
  (section
    (title
      (strong)))
  (section
    (title)))

================================================================================
Underline sections that start with a bullet like text
================================================================================

1. One *item*
"""""""""""""

2) Two
~~~~~~~

(3) Three
/////////

#. Four
^^^^^^^^

V. Five
||||||||

(vi) Six
))))))))

--------------------------------------------------------------------------------

(document
  (section
    (title
      (emphasis)))
  (section
    (title))
  (section
    (title))
  (section
    (title))
  (section
    (title))
  (section
    (title)))
