@@ -11,10 +11,12 @@ license: '[CC-BY-SA 4.0](http://creativecommons.org/licenses/by-sa/4.0/)'
11
11
## What is Markdown?
12
12
13
13
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
18
20
developed in many languages. Some extended the original
19
21
Markdown syntax with conventions for footnotes, tables, and
20
22
other document elements. Some allowed Markdown documents to be
@@ -312,7 +314,7 @@ form feed (`U+000C`), or carriage return (`U+000D`).
312
314
characters].
313
315
314
316
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`),
316
318
carriage return (`U+000D`), newline (`U+000A`), or form feed
317
319
(`U+000C`).
318
320
@@ -331,7 +333,7 @@ is `!`, `"`, `#`, `$`, `%`, `&`, `'`, `(`, `)`,
331
333
332
334
A [punctuation character](@) is an [ASCII
333
335
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`.
335
337
336
338
## Tabs
337
339
@@ -402,8 +404,8 @@ as indentation with four spaces would:
402
404
Normally the `>` that begins a block quote may be followed
403
405
optionally by a space, which is not considered part of the
404
406
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
407
409
delimiter, `foo` is considered to be indented six spaces
408
410
inside the block quote context, so we get an indented
409
411
code block starting with two spaces.
@@ -481,7 +483,7 @@ We can think of a document as a sequence of
481
483
quotations, lists, headings, rules, and code blocks. Some blocks (like
482
484
block quotes and list items) contain other blocks; others (like
483
485
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.
485
487
486
488
## Precedence
487
489
@@ -5796,6 +5798,15 @@ we just have literal backticks:
5796
5798
<p>`foo</p>
5797
5799
````````````````````````````````
5798
5800
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
+
5799
5810
5800
5811
## Emphasis and strong emphasis
5801
5812
@@ -5850,14 +5861,14 @@ characters that is not preceded or followed by a `_` character.
5850
5861
5851
5862
A [left-flanking delimiter run](@) is
5852
5863
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
5854
5865
preceded by [Unicode whitespace] or a [punctuation character].
5855
5866
For purposes of this definition, the beginning and the end of
5856
5867
the line count as Unicode whitespace.
5857
5868
5858
5869
A [right-flanking delimiter run](@) is
5859
5870
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
5861
5872
followed by [Unicode whitespace] or a [punctuation character].
5862
5873
For purposes of this definition, the beginning and the end of
5863
5874
the line count as Unicode whitespace.
@@ -5936,7 +5947,7 @@ The following rules define emphasis and strong emphasis:
5936
5947
7. A double `**` [can close strong emphasis](@)
5937
5948
iff it is part of a [right-flanking delimiter run].
5938
5949
5939
- 8. A double `__` [can close strong emphasis]
5950
+ 8. A double `__` [can close strong emphasis] iff
5940
5951
it is part of a [right-flanking delimiter run]
5941
5952
and either (a) not part of a [left-flanking delimiter run]
5942
5953
or (b) part of a [left-flanking delimiter run]
@@ -5977,7 +5988,7 @@ the following principles resolve ambiguity:
5977
5988
`<em><em>...</em></em>`.
5978
5989
5979
5990
14. An interpretation `<em><strong>...</strong></em>` is always
5980
- preferred to `<strong><em>..</em></strong>`.
5991
+ preferred to `<strong><em>... </em></strong>`.
5981
5992
5982
5993
15. When two potential emphasis or strong emphasis spans overlap,
5983
5994
so that the second begins before the first ends and ends after
@@ -8319,11 +8330,11 @@ The link labels are case-insensitive:
8319
8330
````````````````````````````````
8320
8331
8321
8332
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 `[`:
8324
8335
8325
8336
```````````````````````````````` example
8326
- \ !\[foo]
8337
+ !\[foo]
8327
8338
8328
8339
[foo]: /url "title"
8329
8340
.
0 commit comments