11---
22title: GitHub Flavored Markdown Spec
3- version: 0.29
4- date: '2019-04-06 '
3+ version: 0.29.0.gfm.6
4+ date: '2022-09-14 '
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`, `summary`, `table`, `tbody`, `td`,
2080+ `section`, `source`, ` 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- &#987654321 ;
6003+ &#87654321 ;
60046004&#abcdef0;
60056005&ThisIsNotDefined; &hi?;</p>
60066006````````````````````````````````
@@ -7712,12 +7712,13 @@ __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 two tildes (`~`).
7715+ Strikethrough text is any text wrapped in a matching pair of one or two tildes
7716+ (`~`).
77167717
77177718```````````````````````````````` example strikethrough
7718- ~~Hi~~ Hello, world!
7719+ ~~Hi~~ Hello, ~there~ world!
77197720.
7720- <p><del>Hi</del> Hello, world!</p>
7721+ <p><del>Hi</del> Hello, <del>there</del> world!</p>
77217722````````````````````````````````
77227723
77237724As with regular emphasis delimiters, a new paragraph will cause strikethrough
@@ -7732,6 +7733,14 @@ new paragraph~~.
77327733<p>new paragraph~~.</p>
77337734````````````````````````````````
77347735
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+
77357744</div>
77367745
77377746## Links
@@ -8232,9 +8241,8 @@ perform the *Unicode case fold*, strip leading and trailing
82328241matching reference link definitions, the one that comes first in the
82338242document is used. (It is desirable in such cases to emit a warning.)
82348243
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].
8244+ The link's URI and title are provided by the matching [link
8245+ reference definition].
82388246
82398247Here is a simple example:
82408248
@@ -8327,11 +8335,11 @@ emphasis grouping:
83278335
83288336
83298337```````````````````````````````` example
8330- [foo *bar][ref]
8338+ [foo *bar][ref]*
83318339
83328340[ref]: /uri
83338341.
8334- <p><a href="/uri">foo *bar</a></p>
8342+ <p><a href="/uri">foo *bar</a>* </p>
83358343````````````````````````````````
83368344
83378345
@@ -8379,11 +8387,11 @@ Matching is case-insensitive:
83798387Unicode case fold is used:
83808388
83818389```````````````````````````````` example
8382- [Толпой][Толпой] is a Russian word.
8390+ [ẞ]
83838391
8384- [ТОЛПОЙ ]: /url
8392+ [SS ]: /url
83858393.
8386- <p><a href="/url">Толпой </a> is a Russian word. </p>
8394+ <p><a href="/url">ẞ </a></p>
83878395````````````````````````````````
83888396
83898397
@@ -9295,20 +9303,17 @@ www.commonmark.org/he<lp
92959303````````````````````````````````
92969304
92979305An [extended url autolink](@) will be recognised when one of the schemes
9298- `http://`, `https://`, or `ftp ://`, followed by a [valid domain], then zero or
9306+ `http://`, or `https ://`, followed by a [valid domain], then zero or
92999307more non-space non-`<` characters according to
93009308[extended autolink path validation]:
93019309
93029310```````````````````````````````` example autolink
93039311http://commonmark.org
93049312
93059313(Visit https://encrypted.google.com/search?q=Markup+(business))
9306-
9307- Anonymous FTP is available at ftp://foo.bar.baz.
93089314.
93099315<p><a href="http://commonmark.org">http://commonmark.org</a></p>
93109316<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>
93129317````````````````````````````````
93139318
93149319
9358936393599364````````````````````````````````
93609365
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+
93619426</div>
93629427
93639428## Raw HTML
@@ -10224,3 +10289,4 @@ closers:
1022410289
1022510290After we're done, we remove all delimiters above `stack_bottom` from the
1022610291delimiter stack.
10292+
0 commit comments