PREAMBLE

  \PREAMBLE

  some preamble text

BODY

CHAP 1 - Heading

  \PART in intro

  SEC \\7.5 - No content

  SEC 1 - Section

    a plain \\ backslash

    some \*\*text\*\* at \/\/the start\/\/ with \*\*multiple \/\/types\/\/ of\*\* markup

    some old [[remarks]] that don't [need] escaping any more

    some \{\{*new remarks\}\}

    some \_\_underline\_\_

    It is hereby certified that \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\___ of P.O. Box __\_\_\_\_\_\_\_ and ID No. \_\_\_\_\_\_\_\_ TSC No.\_\_\_\_\_\_\_\_\_\__ having met the requirements set out under Section 35 (2) (b) of the Teachers Service Commission Act, {{>/akn/ke/act/2012/20 No. 20 of 2012}} is hereby issued with a Teaching Certificate.

    include \{\{^superscripts\}\} and \{\{_subscripts\}\} which are fun

    an \{\{IMG /foo.png description\}\} image

    some **inlines \/\/ {{>#foo with \/\/ slashes}}**

    inlines that \*\* should \/\/ be [[ escaped ![ and ]]

    refs {{>#foo https:\/\/example.com with \}\} and **nested \*\* stars \*\***}}

    nested ** stars \*\* in bold \*\***

    nested // slashes \/\/ in italics \/\///

    nested ** stars in // italics \*\* // and bold **

    super {{^with \{\{^ curlies } \}\}}}

    A {{*multi
    line
    CROSSHEADING doesn't need to be escaped
    \*\*escaped
    remark}}

  SEC 3 - these should not be escaped

    a plain / forward slash

    a plain *

    a plain { open

    a plain } close

    a plain _ underscore

  \PART in the middle

  SEC 2

    \PART A should be escaped

    list \_\_intro\_\_

    (a) item (a) with a \{\{>http:\/\/example.com link\}\}

    \CHAPTER.foo

    \QUOTE{}

    \ITEMS

    \BLOCKLIST

    \BULLETS

  \FOOTNOTE 1

  \TABLE in wrapup

  \TC

  \TH

  \P foo

  \P.bar foo

  \P{class foo} bar

  Posh doesn't need to be escaped

  \APPENDIX

  \SCHEDULE

  \ATTACHMENT

  \BLOCKS

CHAP 2 - Speech

  \SPEECH

  \SCENE

  \SCENE

  \ADJOURNMENT

  \DEBATESECTION

CHAP 3 - Numbers

  SEC 1\-

    escape no heading

  SEC 1 \-

    escape no heading

  SEC 2\- - heading

    with heading

  SEC 2 \- - heading

    with heading

  SEC 3\-

    empty heading

  SEC 3 \-

    empty heading

  SEC 4\- 5

    escaped slash no heading

  SEC 4 \- 5

    escaped slash no heading

  SEC 5\- 6 - with - heading

    escaped slash with heading

  SEC 5 \- 6 - with - heading

    escaped slash with heading

  SEC \-6

    preceding slash

  SEC \- 6

    preceding slash

  SEC 6\-\-7

    multi

CHAP 4 - inline escapes

  outside \***bold**\* outside

  outside \*\***bold**\*\* outside

  inside **\*bold\*** inside

  inside **\*\*bold\*\*** inside

  outside \///italics//\/ outside

  outside \/\///italics//\/\/ outside

  inside //\/italics\/// inside

  inside //\/\/italics\/\/// inside

  outside \___underscore__\_ outside

  outside \_\___underscore__\_\_ outside

  inside __\_underscore\___ inside

  inside __\_\_underscore\_\___ inside

  \PART \***bold**

  \PART \*\***bold**

  \PART \///italics//

  \PART \/\///italics//

  \PART \___underscore__

  \PART \_\___underscore__

