Skip to content

Commit 883164c

Browse files
jgmikedas
authored andcommitted
Updated spec.txt.
1 parent 0660791 commit 883164c

File tree

1 file changed

+27
-16
lines changed

1 file changed

+27
-16
lines changed

test/spec.txt

Lines changed: 27 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,12 @@ license: '[CC-BY-SA 4.0](http://creativecommons.org/licenses/by-sa/4.0/)'
1111
## What is Markdown?
1212

1313
Markdown is a plain text format for writing structured documents,
14-
based on conventions used for indicating formatting in email and
15-
usenet posts. It was developed in 2004 by John Gruber, who wrote
16-
the first Markdown-to-HTML converter in Perl, and it soon became
17-
ubiquitous. In the next decade, dozens of implementations were
14+
based on conventions for indicating formatting in email
15+
and usenet posts. It was developed by John Gruber (with
16+
help from Aaron Swartz) and released in 2004 in the form of a
17+
[syntax description](http://daringfireball.net/projects/markdown/syntax)
18+
and a Perl script (`Markdown.pl`) for converting Markdown to
19+
HTML. In the next decade, dozens of implementations were
1820
developed in many languages. Some extended the original
1921
Markdown syntax with conventions for footnotes, tables, and
2022
other document elements. Some allowed Markdown documents to be
@@ -312,7 +314,7 @@ form feed (`U+000C`), or carriage return (`U+000D`).
312314
characters].
313315

314316
A [Unicode whitespace character](@) is
315-
any code point in the Unicode `Zs` class, or a tab (`U+0009`),
317+
any code point in the Unicode `Zs` general category, or a tab (`U+0009`),
316318
carriage return (`U+000D`), newline (`U+000A`), or form feed
317319
(`U+000C`).
318320

@@ -331,7 +333,7 @@ is `!`, `"`, `#`, `$`, `%`, `&`, `'`, `(`, `)`,
331333

332334
A [punctuation character](@) is an [ASCII
333335
punctuation character] or anything in
334-
the Unicode classes `Pc`, `Pd`, `Pe`, `Pf`, `Pi`, `Po`, or `Ps`.
336+
the general Unicode categories `Pc`, `Pd`, `Pe`, `Pf`, `Pi`, `Po`, or `Ps`.
335337

336338
An [East Asian punctuation character](@) is a [punctuation character] with
337339
the East_Asian_Width property values `A`, `F`, `H` or `W`.
@@ -407,8 +409,8 @@ as indentation with four spaces would:
407409
Normally the `>` that begins a block quote may be followed
408410
optionally by a space, which is not considered part of the
409411
content. In the following case `>` is followed by a tab,
410-
which is treated as if it were expanded into spaces.
411-
Since one of theses spaces is considered part of the
412+
which is treated as if it were expanded into three spaces.
413+
Since one of these spaces is considered part of the
412414
delimiter, `foo` is considered to be indented six spaces
413415
inside the block quote context, so we get an indented
414416
code block starting with two spaces.
@@ -486,7 +488,7 @@ We can think of a document as a sequence of
486488
quotations, lists, headings, rules, and code blocks. Some blocks (like
487489
block quotes and list items) contain other blocks; others (like
488490
headings and paragraphs) contain [inline](@) content---text,
489-
links, emphasized text, images, code, and so on.
491+
links, emphasized text, images, code spans, and so on.
490492

491493
## Precedence
492494

@@ -5801,6 +5803,15 @@ we just have literal backticks:
58015803
<p>`foo</p>
58025804
````````````````````````````````
58035805

5806+
The following case also illustrates the need for opening and
5807+
closing backtick strings to be equal in length:
5808+
5809+
```````````````````````````````` example
5810+
`foo``bar``
5811+
.
5812+
<p>`foo<code>bar</code></p>
5813+
````````````````````````````````
5814+
58045815

58055816
## Emphasis and strong emphasis
58065817

@@ -5855,14 +5866,14 @@ characters that is not preceded or followed by a `_` character.
58555866

58565867
A [left-flanking delimiter run](@) is
58575868
a [delimiter run] that is (a) not followed by [Unicode whitespace],
5858-
and (b) either not followed by a [non-East Asian punctuation character], or
5869+
and (b) not followed by a [non-East Asian punctuation character], or
58595870
preceded by [Unicode whitespace] or a [punctuation character].
58605871
For purposes of this definition, the beginning and the end of
58615872
the line count as Unicode whitespace.
58625873

58635874
A [right-flanking delimiter run](@) is
58645875
a [delimiter run] that is (a) not preceded by [Unicode whitespace],
5865-
and (b) either not preceded by a [non-East Asian punctuation character], or
5876+
and (b) not preceded by a [non-East Asian punctuation character], or
58665877
followed by [Unicode whitespace] or a [punctuation character].
58675878
For purposes of this definition, the beginning and the end of
58685879
the line count as Unicode whitespace.
@@ -5947,7 +5958,7 @@ The following rules define emphasis and strong emphasis:
59475958
7. A double `**` [can close strong emphasis](@)
59485959
iff it is part of a [right-flanking delimiter run].
59495960

5950-
8. A double `__` [can close strong emphasis]
5961+
8. A double `__` [can close strong emphasis] iff
59515962
it is part of a [right-flanking delimiter run]
59525963
and either (a) not part of a [left-flanking delimiter run],
59535964
(b) part of a [left-flanking delimiter run]
@@ -5990,7 +6001,7 @@ the following principles resolve ambiguity:
59906001
`<em><em>...</em></em>`.
59916002

59926003
14. An interpretation `<em><strong>...</strong></em>` is always
5993-
preferred to `<strong><em>..</em></strong>`.
6004+
preferred to `<strong><em>...</em></strong>`.
59946005

59956006
15. When two potential emphasis or strong emphasis spans overlap,
59966007
so that the second begins before the first ends and ends after
@@ -8476,11 +8487,11 @@ The link labels are case-insensitive:
84768487
````````````````````````````````
84778488

84788489

8479-
If you just want bracketed text, you can backslash-escape the
8480-
opening `!` and `[`:
8490+
If you just want a literal `!` followed by bracketed text, you can
8491+
backslash-escape the opening `[`:
84818492

84828493
```````````````````````````````` example
8483-
\!\[foo]
8494+
!\[foo]
84848495

84858496
[foo]: /url "title"
84868497
.

0 commit comments

Comments
 (0)