Skip to content

Commit 4b83812

Browse files
committed
Updated spec.txt.
1 parent f953e0e commit 4b83812

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
## Tabs
337339

@@ -402,8 +404,8 @@ as indentation with four spaces would:
402404
Normally the `>` that begins a block quote may be followed
403405
optionally by a space, which is not considered part of the
404406
content. In the following case `>` is followed by a tab,
405-
which is treated as if it were expanded into spaces.
406-
Since one of theses spaces is considered part of the
407+
which is treated as if it were expanded into three spaces.
408+
Since one of these spaces is considered part of the
407409
delimiter, `foo` is considered to be indented six spaces
408410
inside the block quote context, so we get an indented
409411
code block starting with two spaces.
@@ -481,7 +483,7 @@ We can think of a document as a sequence of
481483
quotations, lists, headings, rules, and code blocks. Some blocks (like
482484
block quotes and list items) contain other blocks; others (like
483485
headings and paragraphs) contain [inline](@) content---text,
484-
links, emphasized text, images, code, and so on.
486+
links, emphasized text, images, code spans, and so on.
485487

486488
## Precedence
487489

@@ -5796,6 +5798,15 @@ we just have literal backticks:
57965798
<p>`foo</p>
57975799
````````````````````````````````
57985800

5801+
The following case also illustrates the need for opening and
5802+
closing backtick strings to be equal in length:
5803+
5804+
```````````````````````````````` example
5805+
`foo``bar``
5806+
.
5807+
<p>`foo<code>bar</code></p>
5808+
````````````````````````````````
5809+
57995810

58005811
## Emphasis and strong emphasis
58015812

@@ -5850,14 +5861,14 @@ characters that is not preceded or followed by a `_` character.
58505861

58515862
A [left-flanking delimiter run](@) is
58525863
a [delimiter run] that is (a) not followed by [Unicode whitespace],
5853-
and (b) either not followed by a [punctuation character], or
5864+
and (b) not followed by a [punctuation character], or
58545865
preceded by [Unicode whitespace] or a [punctuation character].
58555866
For purposes of this definition, the beginning and the end of
58565867
the line count as Unicode whitespace.
58575868

58585869
A [right-flanking delimiter run](@) is
58595870
a [delimiter run] that is (a) not preceded by [Unicode whitespace],
5860-
and (b) either not preceded by a [punctuation character], or
5871+
and (b) not preceded by a [punctuation character], or
58615872
followed by [Unicode whitespace] or a [punctuation character].
58625873
For purposes of this definition, the beginning and the end of
58635874
the line count as Unicode whitespace.
@@ -5936,7 +5947,7 @@ The following rules define emphasis and strong emphasis:
59365947
7. A double `**` [can close strong emphasis](@)
59375948
iff it is part of a [right-flanking delimiter run].
59385949

5939-
8. A double `__` [can close strong emphasis]
5950+
8. A double `__` [can close strong emphasis] iff
59405951
it is part of a [right-flanking delimiter run]
59415952
and either (a) not part of a [left-flanking delimiter run]
59425953
or (b) part of a [left-flanking delimiter run]
@@ -5977,7 +5988,7 @@ the following principles resolve ambiguity:
59775988
`<em><em>...</em></em>`.
59785989

59795990
14. An interpretation `<em><strong>...</strong></em>` is always
5980-
preferred to `<strong><em>..</em></strong>`.
5991+
preferred to `<strong><em>...</em></strong>`.
59815992

59825993
15. When two potential emphasis or strong emphasis spans overlap,
59835994
so that the second begins before the first ends and ends after
@@ -8319,11 +8330,11 @@ The link labels are case-insensitive:
83198330
````````````````````````````````
83208331

83218332

8322-
If you just want bracketed text, you can backslash-escape the
8323-
opening `!` and `[`:
8333+
If you just want a literal `!` followed by bracketed text, you can
8334+
backslash-escape the opening `[`:
83248335

83258336
```````````````````````````````` example
8326-
\!\[foo]
8337+
!\[foo]
83278338

83288339
[foo]: /url "title"
83298340
.

0 commit comments

Comments
 (0)