diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/Markdown/markdown.bnf | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/Markdown/markdown.bnf b/src/Markdown/markdown.bnf index d1cd305c..f3c484d5 100644 --- a/src/Markdown/markdown.bnf +++ b/src/Markdown/markdown.bnf @@ -47,6 +47,7 @@ Block ::= BlankLine* ( OrderedList | BulletList | HorizontalRule + | Directive | Para ) @@ -58,6 +59,10 @@ HorizontalRule ::= NonindentSpace | '_' OptionalSpace '_' OptionalSpace '_' (OptionalSpace '_')*) OptionalSpace EOL BlankLine+ +Directive ::= '{' DirectiveName DirectiveParams '}' +DirectiveName ::= Word +DirectiveParams ::= PlainText + Bullet ::= !HorizontalRule NonindentSpace ('+' | '*' | '-') Space+ Enumerator ::= NonindentSpace Number '.' Space+ @@ -76,7 +81,7 @@ ListContinuationBlock ::= BlankLine* (Indent ListBlock)+ // ---- INLINES ---- private Inlines ::= (!EndLine Inline | EndLine &Inline )+ EndLine? Inline ::= Strong | Emph | Code | Link | PlainText -PlainText ::= (Word | Number | Space+)+ +PlainText ::= (Word | Number | Space | ':')+ Emph ::= EmphStar | EmphUnderscore private EmphStar ::= '*' !Whitespace (!'*' Inline)+ '*' |