1
1
---
2
2
title: 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 '
5
5
license: '[CC-BY-SA 4.0](http://creativecommons.org/licenses/by-sa/4.0/)'
6
6
...
7
7
@@ -2077,7 +2077,7 @@ followed by one of the strings (case-insensitive) `address`,
2077
2077
`h1`, `h2`, `h3`, `h4`, `h5`, `h6`, `head`, `header`, `hr`,
2078
2078
`html`, `iframe`, `legend`, `li`, `link`, `main`, `menu`, `menuitem`,
2079
2079
`nav`, `noframes`, `ol`, `optgroup`, `option`, `p`, `param`,
2080
- `section`, `source`, ` summary`, `table`, `tbody`, `td`,
2080
+ `section`, `summary`, `table`, `tbody`, `td`,
2081
2081
`tfoot`, `th`, `thead`, `title`, `tr`, `track`, `ul`, followed
2082
2082
by [whitespace], the end of the line, the string `>`, or
2083
2083
the string `/>`.\
@@ -5995,12 +5995,12 @@ Here are some nonentities:
5995
5995
5996
5996
```````````````````````````````` example
5997
5997
  &x; &#; &#x;
5998
- � ;
5998
+ � ;
5999
5999
&#abcdef0;
6000
6000
&ThisIsNotDefined; &hi?;
6001
6001
.
6002
6002
<p>&nbsp &x; &#; &#x;
6003
- &#87654321 ;
6003
+ &#987654321 ;
6004
6004
&#abcdef0;
6005
6005
&ThisIsNotDefined; &hi?;</p>
6006
6006
````````````````````````````````
@@ -7712,13 +7712,12 @@ __a<http://foo.bar/?q=__>
7712
7712
GFM enables the `strikethrough` extension, where an additional emphasis type is
7713
7713
available.
7714
7714
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 (`~`).
7717
7716
7718
7717
```````````````````````````````` example strikethrough
7719
- ~~Hi~~ Hello, ~there~ world!
7718
+ ~~Hi~~ Hello, world!
7720
7719
.
7721
- <p><del>Hi</del> Hello, <del>there</del> world!</p>
7720
+ <p><del>Hi</del> Hello, world!</p>
7722
7721
````````````````````````````````
7723
7722
7724
7723
As with regular emphasis delimiters, a new paragraph will cause strikethrough
@@ -7733,14 +7732,6 @@ new paragraph~~.
7733
7732
<p>new paragraph~~.</p>
7734
7733
````````````````````````````````
7735
7734
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
-
7744
7735
</div>
7745
7736
7746
7737
## Links
@@ -8241,8 +8232,9 @@ perform the *Unicode case fold*, strip leading and trailing
8241
8232
matching reference link definitions, the one that comes first in the
8242
8233
document is used. (It is desirable in such cases to emit a warning.)
8243
8234
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].
8246
8238
8247
8239
Here is a simple example:
8248
8240
@@ -8335,11 +8327,11 @@ emphasis grouping:
8335
8327
8336
8328
8337
8329
```````````````````````````````` example
8338
- [foo *bar][ref]*
8330
+ [foo *bar][ref]
8339
8331
8340
8332
[ref]: /uri
8341
8333
.
8342
- <p><a href="/uri">foo *bar</a>* </p>
8334
+ <p><a href="/uri">foo *bar</a></p>
8343
8335
````````````````````````````````
8344
8336
8345
8337
@@ -8387,11 +8379,11 @@ Matching is case-insensitive:
8387
8379
Unicode case fold is used:
8388
8380
8389
8381
```````````````````````````````` example
8390
- [ẞ]
8382
+ [Толпой][Толпой] is a Russian word.
8391
8383
8392
- [SS ]: /url
8384
+ [ТОЛПОЙ ]: /url
8393
8385
.
8394
- <p><a href="/url">ẞ </a></p>
8386
+ <p><a href="/url">Толпой </a> is a Russian word. </p>
8395
8387
````````````````````````````````
8396
8388
8397
8389
@@ -9303,17 +9295,20 @@ www.commonmark.org/he<lp
9303
9295
````````````````````````````````
9304
9296
9305
9297
An [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
9307
9299
more non-space non-`<` characters according to
9308
9300
[extended autolink path validation]:
9309
9301
9310
9302
```````````````````````````````` example autolink
9311
9303
http://commonmark.org
9312
9304
9313
9305
(Visit https://encrypted.google.com/search?q=Markup+(business))
9306
+
9307
+ Anonymous FTP is available at ftp://foo.bar.baz.
9314
9308
.
9315
9309
<p><a href="http://commonmark.org">http://commonmark.org</a></p>
9316
9310
<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>
9317
9312
````````````````````````````````
9318
9313
9319
9314
9363
9358
9364
9359
````````````````````````````````
9365
9360
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
-
9426
9361
</div>
9427
9362
9428
9363
## Raw HTML
@@ -10289,4 +10224,3 @@ closers:
10289
10224
10290
10225
After we're done, we remove all delimiters above `stack_bottom` from the
10291
10226
delimiter stack.
10292
-
0 commit comments