@@ -11,10 +11,12 @@ license: '[CC-BY-SA 4.0](http://creativecommons.org/licenses/by-sa/4.0/)'
1111## What is Markdown?
1212
1313Markdown 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
1820developed in many languages. Some extended the original
1921Markdown syntax with conventions for footnotes, tables, and
2022other document elements. Some allowed Markdown documents to be
@@ -312,7 +314,7 @@ form feed (`U+000C`), or carriage return (`U+000D`).
312314characters].
313315
314316A [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`),
316318carriage return (`U+000D`), newline (`U+000A`), or form feed
317319(`U+000C`).
318320
@@ -331,7 +333,7 @@ is `!`, `"`, `#`, `$`, `%`, `&`, `'`, `(`, `)`,
331333
332334A [punctuation character](@) is an [ASCII
333335punctuation 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:
402404Normally the `>` that begins a block quote may be followed
403405optionally by a space, which is not considered part of the
404406content. 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
407409delimiter, `foo` is considered to be indented six spaces
408410inside the block quote context, so we get an indented
409411code block starting with two spaces.
@@ -481,7 +483,7 @@ We can think of a document as a sequence of
481483quotations, lists, headings, rules, and code blocks. Some blocks (like
482484block quotes and list items) contain other blocks; others (like
483485headings 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
58515862A [left-flanking delimiter run](@) is
58525863a [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
58545865preceded by [Unicode whitespace] or a [punctuation character].
58555866For purposes of this definition, the beginning and the end of
58565867the line count as Unicode whitespace.
58575868
58585869A [right-flanking delimiter run](@) is
58595870a [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
58615872followed by [Unicode whitespace] or a [punctuation character].
58625873For purposes of this definition, the beginning and the end of
58635874the line count as Unicode whitespace.
@@ -5936,7 +5947,7 @@ The following rules define emphasis and strong emphasis:
593659477. 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
5979599014. An interpretation `<em><strong>...</strong></em>` is always
5980- preferred to `<strong><em>..</em></strong>`.
5991+ preferred to `<strong><em>... </em></strong>`.
59815992
5982599315. 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