11---
22title: GitHub Flavored Markdown Spec
3- version: 0.29.0.gfm.6
4- date: '2022-09-14 '
3+ version: 0.29
4+ date: '2019-04-06 '
55license: '[CC-BY-SA 4.0](http://creativecommons.org/licenses/by-sa/4.0/)'
66...
77
@@ -2077,7 +2077,7 @@ followed by one of the strings (case-insensitive) `address`,
20772077`h1`, `h2`, `h3`, `h4`, `h5`, `h6`, `head`, `header`, `hr`,
20782078`html`, `iframe`, `legend`, `li`, `link`, `main`, `menu`, `menuitem`,
20792079`nav`, `noframes`, `ol`, `optgroup`, `option`, `p`, `param`,
2080- `section`, `source`, ` summary`, `table`, `tbody`, `td`,
2080+ `section`, `summary`, `table`, `tbody`, `td`,
20812081`tfoot`, `th`, `thead`, `title`, `tr`, `track`, `ul`, followed
20822082by [whitespace], the end of the line, the string `>`, or
20832083the string `/>`.\
@@ -5995,12 +5995,12 @@ Here are some nonentities:
59955995
59965996```````````````````````````````` example
59975997  &x; &#; &#x;
5998- � ;
5998+ � ;
59995999&#abcdef0;
60006000&ThisIsNotDefined; &hi?;
60016001.
60026002<p>&nbsp &x; &#; &#x;
6003- &#87654321 ;
6003+ &#987654321 ;
60046004&#abcdef0;
60056005&ThisIsNotDefined; &hi?;</p>
60066006````````````````````````````````
@@ -7712,13 +7712,12 @@ __a<http://foo.bar/?q=__>
77127712GFM enables the `strikethrough` extension, where an additional emphasis type is
77137713available.
77147714
7715- Strikethrough text is any text wrapped in a matching pair of one or two tildes
7716- (`~`).
7715+ Strikethrough text is any text wrapped in two tildes (`~`).
77177716
77187717```````````````````````````````` example strikethrough
7719- ~~Hi~~ Hello, ~there~ world!
7718+ ~~Hi~~ Hello, world!
77207719.
7721- <p><del>Hi</del> Hello, <del>there</del> world!</p>
7720+ <p><del>Hi</del> Hello, world!</p>
77227721````````````````````````````````
77237722
77247723As with regular emphasis delimiters, a new paragraph will cause strikethrough
@@ -7733,14 +7732,6 @@ new paragraph~~.
77337732<p>new paragraph~~.</p>
77347733````````````````````````````````
77357734
7736- Three or more tildes do not create a strikethrough:
7737-
7738- ```````````````````````````````` example strikethrough
7739- This will ~~~not~~~ strike.
7740- .
7741- <p>This will ~~~not~~~ strike.</p>
7742- ````````````````````````````````
7743-
77447735</div>
77457736
77467737## Links
@@ -8241,8 +8232,9 @@ perform the *Unicode case fold*, strip leading and trailing
82418232matching reference link definitions, the one that comes first in the
82428233document is used. (It is desirable in such cases to emit a warning.)
82438234
8244- The link's URI and title are provided by the matching [link
8245- reference definition].
8235+ The contents of the first link label are parsed as inlines, which are
8236+ used as the link's text. The link's URI and title are provided by the
8237+ matching [link reference definition].
82468238
82478239Here is a simple example:
82488240
@@ -8335,11 +8327,11 @@ emphasis grouping:
83358327
83368328
83378329```````````````````````````````` example
8338- [foo *bar][ref]*
8330+ [foo *bar][ref]
83398331
83408332[ref]: /uri
83418333.
8342- <p><a href="/uri">foo *bar</a>* </p>
8334+ <p><a href="/uri">foo *bar</a></p>
83438335````````````````````````````````
83448336
83458337
@@ -8387,11 +8379,11 @@ Matching is case-insensitive:
83878379Unicode case fold is used:
83888380
83898381```````````````````````````````` example
8390- [ẞ]
8382+ [Толпой][Толпой] is a Russian word.
83918383
8392- [SS ]: /url
8384+ [ТОЛПОЙ ]: /url
83938385.
8394- <p><a href="/url">ẞ </a></p>
8386+ <p><a href="/url">Толпой </a> is a Russian word. </p>
83958387````````````````````````````````
83968388
83978389
@@ -9303,17 +9295,20 @@ www.commonmark.org/he<lp
93039295````````````````````````````````
93049296
93059297An [extended url autolink](@) will be recognised when one of the schemes
9306- `http://`, or `https ://`, followed by a [valid domain], then zero or
9298+ `http://`, `https://`, or `ftp ://`, followed by a [valid domain], then zero or
93079299more non-space non-`<` characters according to
93089300[extended autolink path validation]:
93099301
93109302```````````````````````````````` example autolink
93119303http://commonmark.org
93129304
93139305(Visit https://encrypted.google.com/search?q=Markup+(business))
9306+
9307+ Anonymous FTP is available at ftp://foo.bar.baz.
93149308.
93159309<p><a href="http://commonmark.org">http://commonmark.org</a></p>
93169310<p>(Visit <a href="https://encrypted.google.com/search?q=Markup+(business)">https://encrypted.google.com/search?q=Markup+(business)</a>)</p>
9311+ <p>Anonymous FTP is available at <a href="ftp://foo.bar.baz">ftp://foo.bar.baz</a>.</p>
93179312````````````````````````````````
93189313
93199314
9363935893649359````````````````````````````````
93659360
9366- An [extended protocol autolink](@) will be recognised when a protocol is
9367- recognised within any text node. Valid protocols are:
9368-
9369- * `mailto:`
9370- * `xmpp:`
9371-
9372- The scheme of the protocol will automatically be added to the generated link.
9373- All the rules of email address autolinking apply.
9374-
9375- ```````````````````````````````` example autolink
9376- 9377-
9378- 9379-
9380- 9381-
9382- 9383-
9384- 9385-
9386- 9387-
9388- 9389-
9390- 9391- .
9392- <p><a href="mailto:
[email protected] ">mailto:
[email protected] </a></p>
9393- <p><a href="mailto:
[email protected] ">mailto:
[email protected] </a></p>
9394- <p><a href="mailto:
[email protected] ">mailto:
[email protected] </a>.</p>
9395- <p><a href="mailto:
[email protected] ">mailto:
[email protected] </a>/</p>
9396- 9397- 9398- 9399- 9400- ````````````````````````````````
9401-
9402- A described in the [specification](https://datatracker.ietf.org/doc/rfc7622/)
9403- `xmpp` offers an optional `/` followed by a resource. The resource can contain
9404- all alphanumeric characters, as well as `@` and `.`.
9405-
9406- ```````````````````````````````` example autolink
9407- 9408-
9409- 9410-
9411- 9412- .
9413- <p><a href="xmpp:
[email protected] /txt">xmpp:
[email protected] /txt</a></p>
9414- <p><a href="xmpp:
[email protected] /txt@bin">xmpp:
[email protected] /txt@bin</a></p>
9415- 9416- ````````````````````````````````
9417-
9418- Further `/` characters are not considered part of the domain:
9419-
9420- ```````````````````````````````` example autolink
9421- 9422- .
9423- <p><a href="xmpp:
[email protected] /txt">xmpp:
[email protected] /txt</a>/bin</p>
9424- ````````````````````````````````
9425-
94269361</div>
94279362
94289363## Raw HTML
@@ -10289,4 +10224,3 @@ closers:
1028910224
1029010225After we're done, we remove all delimiters above `stack_bottom` from the
1029110226delimiter stack.
10292-
0 commit comments