@@ -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
An [East Asian punctuation character](@) is a [punctuation character] with
337
339
the East_Asian_Width property values `A`, `F`, `H` or `W`.
@@ -407,8 +409,8 @@ as indentation with four spaces would:
407
409
Normally the `>` that begins a block quote may be followed
408
410
optionally by a space, which is not considered part of the
409
411
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
412
414
delimiter, `foo` is considered to be indented six spaces
413
415
inside the block quote context, so we get an indented
414
416
code block starting with two spaces.
@@ -486,7 +488,7 @@ We can think of a document as a sequence of
486
488
quotations, lists, headings, rules, and code blocks. Some blocks (like
487
489
block quotes and list items) contain other blocks; others (like
488
490
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.
490
492
491
493
## Precedence
492
494
@@ -5801,6 +5803,15 @@ we just have literal backticks:
5801
5803
<p>`foo</p>
5802
5804
````````````````````````````````
5803
5805
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
+
5804
5815
5805
5816
## Emphasis and strong emphasis
5806
5817
@@ -5855,14 +5866,14 @@ characters that is not preceded or followed by a `_` character.
5855
5866
5856
5867
A [left-flanking delimiter run](@) is
5857
5868
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
5859
5870
preceded by [Unicode whitespace] or a [punctuation character].
5860
5871
For purposes of this definition, the beginning and the end of
5861
5872
the line count as Unicode whitespace.
5862
5873
5863
5874
A [right-flanking delimiter run](@) is
5864
5875
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
5866
5877
followed by [Unicode whitespace] or a [punctuation character].
5867
5878
For purposes of this definition, the beginning and the end of
5868
5879
the line count as Unicode whitespace.
@@ -5947,7 +5958,7 @@ The following rules define emphasis and strong emphasis:
5947
5958
7. A double `**` [can close strong emphasis](@)
5948
5959
iff it is part of a [right-flanking delimiter run].
5949
5960
5950
- 8. A double `__` [can close strong emphasis]
5961
+ 8. A double `__` [can close strong emphasis] iff
5951
5962
it is part of a [right-flanking delimiter run]
5952
5963
and either (a) not part of a [left-flanking delimiter run],
5953
5964
(b) part of a [left-flanking delimiter run]
@@ -5990,7 +6001,7 @@ the following principles resolve ambiguity:
5990
6001
`<em><em>...</em></em>`.
5991
6002
5992
6003
14. An interpretation `<em><strong>...</strong></em>` is always
5993
- preferred to `<strong><em>..</em></strong>`.
6004
+ preferred to `<strong><em>... </em></strong>`.
5994
6005
5995
6006
15. When two potential emphasis or strong emphasis spans overlap,
5996
6007
so that the second begins before the first ends and ends after
@@ -8476,11 +8487,11 @@ The link labels are case-insensitive:
8476
8487
````````````````````````````````
8477
8488
8478
8489
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 `[`:
8481
8492
8482
8493
```````````````````````````````` example
8483
- \ !\[foo]
8494
+ !\[foo]
8484
8495
8485
8496
[foo]: /url "title"
8486
8497
.
0 commit comments