> { "---" "-"* } => "hr"
> { text } => "p"
-text ::= item
-itemx ::= ws item | ()
-item ::= blockquote
- > pre itemx => []
- > structured itemx => []
- > structuredx itemx => []
- > styled itemx => []
- > qtext itemx => []
- > alphanum++ itemx => []
- > symbol itemx => []
-// > sym++ itemx => []
- > Paragraph itemx => []
+text ::= Item
+Itemx ::= ws Item | ()
+Item ::= blockquote
+ > pre Itemx => []
+ > structured Itemx => []
+ > structuredx Itemx => []
+ > styled Itemx => []
+ > qtext Itemx => []
+ > (alphanum++ => stringify) Itemx => []
+ > symbol Itemx => []
+// > sym++ Itemx => []
+ > Paragraph Itemx => []
symbol ::= sym++
styled ::= "__" text "__" => ul
| "((" text "))" => footnote
- | ( "[[" text "]]" => tt
- > "[" word "]" => citation
+ | ( "[[" text "]]" => tt
+ > "[" word "]" => citation
)
| "!!" text "!!" => strikethrough
| "^^" (word|block) => superscript
// Tokens ///////////////////////////////////////////////////////////////////
-word ::= alphanum++
+word ::= alphanum++ => stringify
| quoted
quoted ::= "\"" ((~[\"\\] | escaped)+) "\""