aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIlya Ryzhenkov <orangy@jetbrains.com>2014-10-13 14:35:00 +0400
committerIlya Ryzhenkov <orangy@jetbrains.com>2014-10-13 14:35:00 +0400
commit498448826d8762add15a524097e91e96b545a631 (patch)
tree6b50a8ac8b679e08521810b80a881d812081818b /src
parent9f0ff55b5f126c31b6d8f3cd28907e5b87601e28 (diff)
downloaddokka-498448826d8762add15a524097e91e96b545a631.tar.gz
dokka-498448826d8762add15a524097e91e96b545a631.tar.bz2
dokka-498448826d8762add15a524097e91e96b545a631.zip
Parse directives in the form of {directive params}. Parse colons in text.
Diffstat (limited to 'src')
-rw-r--r--src/Markdown/markdown.bnf7
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)+ '*'