From 57a756462f30d7f2f03c8d8de9ea874cf9536fa9 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sat, 31 Jan 2015 20:41:36 -0800 Subject: Updated spec.txt from CommonMark repo. --- test/spec.txt | 86 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 86 insertions(+) (limited to 'test') diff --git a/test/spec.txt b/test/spec.txt index e754810..11b6496 100644 --- a/test/spec.txt +++ b/test/spec.txt @@ -1854,6 +1854,24 @@ them.

Foo bar

. +The title may extend over multiple lines: + +. +[foo]: /url ' +title +line1 +line2 +' + +[foo] +. +

foo

+. + The title may be omitted: . @@ -1925,6 +1943,17 @@ It contributes nothing to the document. . . +Here is another one: + +. +[ +foo +]: /url +bar +. +

bar

+. + This is not a link reference definition, because there are [non-space character]s after the title: @@ -2705,6 +2734,18 @@ far enough past the blockquote marker: . +Note that at least one space is needed between the list marker and +any following content, so these are not list items: + +. +-one + +2.two +. +

-one

+

2.two

+. + A list item may not contain blocks that are separated by more than one blank line. Thus, two blank lines will end a list, unless the two blanks are contained in a [fenced code block]. @@ -4759,6 +4800,18 @@ whitespace:

*foo bar *

. +A newline also counts as whitespace: + +. +*foo bar +* +. +

*foo bar

+ +. + This is not emphasis, because the second `*` is preceded by punctuation and followed by an alphanumeric (hence it is not part of a [right-flanking delimiter run]: @@ -4887,6 +4940,15 @@ __ foo bar__

__ foo bar__

. +A newline counts as whitespace: +. +__ +foo bar__ +. +

__ +foo bar__

+. + This is not strong emphasis, because the opening `__` is preceded by an alphanumeric and followed by punctuation: @@ -6253,6 +6315,14 @@ Thus, `[foo]` is equivalent to `[foo][]`.

[foo bar]

. +. +[[bar [foo] + +[foo]: /url +. +

[[bar foo

+. + The link labels are case-insensitive: . @@ -6625,6 +6695,14 @@ Spaces are not allowed in autolinks:

<http://foo.bar/baz bim>

. +Backslash-escapes do not work inside autolinks: + +. + +. +

http://example.com/\[\

+. + An [email autolink](@email-autolink) consists of `<`, followed by an [email address], followed by `>`. The link's label is the email address, @@ -6652,6 +6730,14 @@ Examples of email autolinks:

foo+special@Bar.baz-bar0.com

. +Backslash-escapes do not work inside email autolinks: + +. + +. +

<foo+@bar.example.com>

+. + These are not autolinks: . -- cgit v1.2.3