From 77612f1aaba66ed2c42434443c6882e0bbfd3be3 Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Wed, 2 Sep 2015 14:21:25 +0700 Subject: [PATCH 01/80] regenerate github css --- github-markdown.css | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/github-markdown.css b/github-markdown.css index 5d9445c..1bd00d8 100644 --- a/github-markdown.css +++ b/github-markdown.css @@ -5,7 +5,6 @@ .markdown-body { -webkit-text-size-adjust: 100%; - -ms-text-size-adjust: 100%; text-size-adjust: 100%; color: #333; overflow: hidden; @@ -193,6 +192,10 @@ font: 12px Consolas, "Liberation Mono", Menlo, Courier, monospace; } +.markdown-body .select::-ms-expand { + opacity: 0; +} + .markdown-body .octicon { font: normal normal normal 16px/1 octicons-anchor; display: inline-block; From 5c797a57e8fb1cc721f8dbaf30327372afaa2e7e Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Wed, 2 Sep 2015 14:21:34 +0700 Subject: [PATCH 02/80] 2.0.10 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 7e70417..97c1b62 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "github-markdown-css", - "version": "2.0.9", + "version": "2.0.10", "description": "The minimal amount of CSS to replicate the GitHub Markdown style", "license": "MIT", "repository": "sindresorhus/github-markdown-css", From 1829d3972e29bc1e75c7ab3787d53a725332325f Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Sun, 4 Oct 2015 21:08:27 +0700 Subject: [PATCH 03/80] regenerate github css --- github-markdown.css | 1 - 1 file changed, 1 deletion(-) diff --git a/github-markdown.css b/github-markdown.css index 1bd00d8..9b68d8c 100644 --- a/github-markdown.css +++ b/github-markdown.css @@ -7,7 +7,6 @@ -webkit-text-size-adjust: 100%; text-size-adjust: 100%; color: #333; - overflow: hidden; font-family: "Helvetica Neue", Helvetica, "Segoe UI", Arial, freesans, sans-serif; font-size: 16px; line-height: 1.6; From 897c52802efdad340293693b6e4b83bf5c6ef59d Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Sun, 4 Oct 2015 21:08:36 +0700 Subject: [PATCH 04/80] 2.0.11 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 97c1b62..035a648 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "github-markdown-css", - "version": "2.0.10", + "version": "2.0.11", "description": "The minimal amount of CSS to replicate the GitHub Markdown style", "license": "MIT", "repository": "sindresorhus/github-markdown-css", From 1c6099e340b454f6a79b6becb52b88ac16220949 Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Mon, 19 Oct 2015 01:36:45 +0700 Subject: [PATCH 05/80] regenerate github css --- github-markdown.css | 31 ++++++++++++++++++------------- 1 file changed, 18 insertions(+), 13 deletions(-) diff --git a/github-markdown.css b/github-markdown.css index 9b68d8c..60261e8 100644 --- a/github-markdown.css +++ b/github-markdown.css @@ -226,13 +226,9 @@ } .markdown-body .anchor { - position: absolute; - top: 0; - left: 0; - display: block; - padding-right: 6px; - padding-left: 30px; - margin-left: -30px; + display: inline-block; + padding-right: 2px; + margin-left: -18px; } .markdown-body .anchor:focus { @@ -245,7 +241,6 @@ .markdown-body h4, .markdown-body h5, .markdown-body h6 { - position: relative; margin-top: 1em; margin-bottom: 16px; font-weight: bold; @@ -258,9 +253,9 @@ .markdown-body h4 .octicon-link, .markdown-body h5 .octicon-link, .markdown-body h6 .octicon-link { - display: none; color: #000; vertical-align: middle; + visibility: hidden; } .markdown-body h1:hover .anchor, @@ -269,8 +264,6 @@ .markdown-body h4:hover .anchor, .markdown-body h5:hover .anchor, .markdown-body h6:hover .anchor { - padding-left: 8px; - margin-left: -30px; text-decoration: none; } @@ -280,7 +273,7 @@ .markdown-body h4:hover .anchor .octicon-link, .markdown-body h5:hover .anchor .octicon-link, .markdown-body h6:hover .anchor .octicon-link { - display: inline-block; + visibility: visible; } .markdown-body h1 { @@ -435,7 +428,8 @@ .markdown-body img { max-width: 100%; - box-sizing: border-box; + box-sizing: content-box; + background-color: #fff; } .markdown-body code { @@ -631,6 +625,17 @@ box-shadow: inset 0 -1px 0 #bbb; } +.markdown-body:before { + display: table; + content: ""; +} + +.markdown-body:after { + display: table; + clear: both; + content: ""; +} + .markdown-body .task-list-item { list-style-type: none; } From 8da2badcd5063ed6956db92b2a145b6979ee5287 Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Mon, 19 Oct 2015 01:36:54 +0700 Subject: [PATCH 06/80] 2.1.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 035a648..817cf89 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "github-markdown-css", - "version": "2.0.11", + "version": "2.1.0", "description": "The minimal amount of CSS to replicate the GitHub Markdown style", "license": "MIT", "repository": "sindresorhus/github-markdown-css", From 33f885115b3d8ceb2047b17f932bf3b9aa5b3f7f Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Mon, 30 Nov 2015 14:13:54 +0700 Subject: [PATCH 07/80] regenerate github css --- github-markdown.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/github-markdown.css b/github-markdown.css index 60261e8..f1a9b28 100644 --- a/github-markdown.css +++ b/github-markdown.css @@ -7,7 +7,7 @@ -webkit-text-size-adjust: 100%; text-size-adjust: 100%; color: #333; - font-family: "Helvetica Neue", Helvetica, "Segoe UI", Arial, freesans, sans-serif; + font-family: "Helvetica Neue", Helvetica, "Segoe UI", Arial, freesans, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; font-size: 16px; line-height: 1.6; word-wrap: break-word; @@ -85,7 +85,7 @@ } .markdown-body input { - font: 13px/1.4 Helvetica, arial, nimbussansl, liberationsans, freesans, clean, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol"; + font: 13px / 1.4 Helvetica, arial, nimbussansl, liberationsans, freesans, clean, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; } .markdown-body a { From ac2b917fc34133886eff3ced3833d04d76161217 Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Mon, 30 Nov 2015 14:14:16 +0700 Subject: [PATCH 08/80] 2.1.1 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 817cf89..c3862d1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "github-markdown-css", - "version": "2.1.0", + "version": "2.1.1", "description": "The minimal amount of CSS to replicate the GitHub Markdown style", "license": "MIT", "repository": "sindresorhus/github-markdown-css", From 2120fb447ba6b27373b925136f494fff3e9e92ee Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Sun, 6 Dec 2015 19:56:04 +0100 Subject: [PATCH 09/80] update to new GitHub readme width --- index.html | 5 +++-- package.json | 2 +- readme.md | 15 ++++++--------- 3 files changed, 10 insertions(+), 12 deletions(-) diff --git a/index.html b/index.html index d9ecb8f..d43e4de 100644 --- a/index.html +++ b/index.html @@ -7,10 +7,11 @@ diff --git a/package.json b/package.json index c3862d1..de354c1 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", - "url": "http://sindresorhus.com" + "url": "sindresorhus.com" }, "engines": { "node": ">=0.10.0" diff --git a/readme.md b/readme.md index a58fe34..58ce1e4 100644 --- a/readme.md +++ b/readme.md @@ -9,29 +9,26 @@ ## Install -Download [manually](https://raw.githubusercontent.com/sindresorhus/github-markdown-css/gh-pages/github-markdown.css) or with a package-manager. +Download [manually](https://raw.githubusercontent.com/sindresorhus/github-markdown-css/gh-pages/github-markdown.css) or with npm: -```sh -$ npm install --save github-markdown-css ``` - -```sh -$ bower install --save github-markdown-css +$ npm install --save github-markdown-css ``` ## Usage -Import the `github-markdown.css` file and add a `markdown-body` class to the container of your rendered Markdown and set a width for it. GitHub uses `790px` width and `30px` padding. +Import the `github-markdown.css` file and add a `markdown-body` class to the container of your rendered Markdown and set a width for it. GitHub uses `980px` width and `45px` padding. ```html
From 029b30908fdc53b8216e9068b57bd5758a743840 Mon Sep 17 00:00:00 2001 From: Tyler Long Date: Sat, 9 Jan 2016 16:38:08 +0100 Subject: [PATCH 10/80] Close #22 PR: Fix octicons issue & More comprehensive demo page. --- github-markdown.css | 28 +- index.html | 1833 ++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 1836 insertions(+), 25 deletions(-) diff --git a/github-markdown.css b/github-markdown.css index f1a9b28..b74016b 100644 --- a/github-markdown.css +++ b/github-markdown.css @@ -1,6 +1,6 @@ @font-face { - font-family: octicons-anchor; - src: url(data:font/woff;charset=utf-8;base64,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) format('woff'); + font-family: octicons-link; + src: url(data:font/woff;charset=utf-8;base64,d09GRgABAAAAAAZwABAAAAAACFQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEU0lHAAAGaAAAAAgAAAAIAAAAAUdTVUIAAAZcAAAACgAAAAoAAQAAT1MvMgAAAyQAAABJAAAAYFYEU3RjbWFwAAADcAAAAEUAAACAAJThvmN2dCAAAATkAAAABAAAAAQAAAAAZnBnbQAAA7gAAACyAAABCUM+8IhnYXNwAAAGTAAAABAAAAAQABoAI2dseWYAAAFsAAABPAAAAZwcEq9taGVhZAAAAsgAAAA0AAAANgh4a91oaGVhAAADCAAAABoAAAAkCA8DRGhtdHgAAAL8AAAADAAAAAwGAACfbG9jYQAAAsAAAAAIAAAACABiATBtYXhwAAACqAAAABgAAAAgAA8ASm5hbWUAAAToAAABQgAAAlXu73sOcG9zdAAABiwAAAAeAAAAME3QpOBwcmVwAAAEbAAAAHYAAAB/aFGpk3jaTY6xa8JAGMW/O62BDi0tJLYQincXEypYIiGJjSgHniQ6umTsUEyLm5BV6NDBP8Tpts6F0v+k/0an2i+itHDw3v2+9+DBKTzsJNnWJNTgHEy4BgG3EMI9DCEDOGEXzDADU5hBKMIgNPZqoD3SilVaXZCER3/I7AtxEJLtzzuZfI+VVkprxTlXShWKb3TBecG11rwoNlmmn1P2WYcJczl32etSpKnziC7lQyWe1smVPy/Lt7Kc+0vWY/gAgIIEqAN9we0pwKXreiMasxvabDQMM4riO+qxM2ogwDGOZTXxwxDiycQIcoYFBLj5K3EIaSctAq2kTYiw+ymhce7vwM9jSqO8JyVd5RH9gyTt2+J/yUmYlIR0s04n6+7Vm1ozezUeLEaUjhaDSuXHwVRgvLJn1tQ7xiuVv/ocTRF42mNgZGBgYGbwZOBiAAFGJBIMAAizAFoAAABiAGIAznjaY2BkYGAA4in8zwXi+W2+MjCzMIDApSwvXzC97Z4Ig8N/BxYGZgcgl52BCSQKAA3jCV8CAABfAAAAAAQAAEB42mNgZGBg4f3vACQZQABIMjKgAmYAKEgBXgAAeNpjYGY6wTiBgZWBg2kmUxoDA4MPhGZMYzBi1AHygVLYQUCaawqDA4PChxhmh/8ODDEsvAwHgMKMIDnGL0x7gJQCAwMAJd4MFwAAAHjaY2BgYGaA4DAGRgYQkAHyGMF8NgYrIM3JIAGVYYDT+AEjAwuDFpBmA9KMDEwMCh9i/v8H8sH0/4dQc1iAmAkALaUKLgAAAHjaTY9LDsIgEIbtgqHUPpDi3gPoBVyRTmTddOmqTXThEXqrob2gQ1FjwpDvfwCBdmdXC5AVKFu3e5MfNFJ29KTQT48Ob9/lqYwOGZxeUelN2U2R6+cArgtCJpauW7UQBqnFkUsjAY/kOU1cP+DAgvxwn1chZDwUbd6CFimGXwzwF6tPbFIcjEl+vvmM/byA48e6tWrKArm4ZJlCbdsrxksL1AwWn/yBSJKpYbq8AXaaTb8AAHja28jAwOC00ZrBeQNDQOWO//sdBBgYGRiYWYAEELEwMTE4uzo5Zzo5b2BxdnFOcALxNjA6b2ByTswC8jYwg0VlNuoCTWAMqNzMzsoK1rEhNqByEyerg5PMJlYuVueETKcd/89uBpnpvIEVomeHLoMsAAe1Id4AAAAAAAB42oWQT07CQBTGv0JBhagk7HQzKxca2sJCE1hDt4QF+9JOS0nbaaYDCQfwCJ7Au3AHj+LO13FMmm6cl7785vven0kBjHCBhfpYuNa5Ph1c0e2Xu3jEvWG7UdPDLZ4N92nOm+EBXuAbHmIMSRMs+4aUEd4Nd3CHD8NdvOLTsA2GL8M9PODbcL+hD7C1xoaHeLJSEao0FEW14ckxC+TU8TxvsY6X0eLPmRhry2WVioLpkrbp84LLQPGI7c6sOiUzpWIWS5GzlSgUzzLBSikOPFTOXqly7rqx0Z1Q5BAIoZBSFihQYQOOBEdkCOgXTOHA07HAGjGWiIjaPZNW13/+lm6S9FT7rLHFJ6fQbkATOG1j2OFMucKJJsxIVfQORl+9Jyda6Sl1dUYhSCm1dyClfoeDve4qMYdLEbfqHf3O/AdDumsjAAB42mNgYoAAZQYjBmyAGYQZmdhL8zLdDEydARfoAqIAAAABAAMABwAKABMAB///AA8AAQAAAAAAAAAAAAAAAAABAAAAAA==) format('woff'); } .markdown-body { @@ -196,7 +196,7 @@ } .markdown-body .octicon { - font: normal normal normal 16px/1 octicons-anchor; + font: normal normal normal 16px/1 octicons-link; display: inline-block; text-decoration: none; text-rendering: auto; @@ -212,6 +212,17 @@ content: '\f05c'; } +.markdown-body:before { + display: table; + content: ""; +} + +.markdown-body:after { + display: table; + clear: both; + content: ""; +} + .markdown-body>*:first-child { margin-top: 0 !important; } @@ -625,17 +636,6 @@ box-shadow: inset 0 -1px 0 #bbb; } -.markdown-body:before { - display: table; - content: ""; -} - -.markdown-body:after { - display: table; - clear: both; - content: ""; -} - .markdown-body .task-list-item { list-style-type: none; } diff --git a/index.html b/index.html index d43e4de..83e82d8 100644 --- a/index.html +++ b/index.html @@ -17,17 +17,1828 @@
-

GitHub Markdown CSS demo

-
-

Bacon ipsum dolor sit amet filet mignon ribeye swine jerky porchetta beef ribs.

-
-

Bacon pastrami ham hock tongue t-bone, ham shankle capicola biltong fatback shoulder pork tenderloin boudin. Pastrami sausage short ribs, pig bacon shoulder biltong ham. Sausage shankle meatball pork loin, pancetta flank pork frankfurter pig pork chop ham hock chicken ribeye capicola.

-
    -
  • Foo
  • -
  • Bar
  • -
-

Header

-

Swine short ribs turkey short loin doner pastrami biltong cow boudin. Kielbasa kevin turkey, landjaeger andouille chicken swine flank fatback frankfurter filet mignon spare ribs sausage porchetta shankle. Beef ribs tri-tip landjaeger turducken corned beef. Jerky meatloaf salami beef, beef ribs drumstick pork ribeye shankle strip steak pork chop. Meatloaf short ribs chicken strip steak bresaola ground round short loin ham leberkas turducken ball tip biltong turkey cow. Venison porchetta tail short ribs pastrami. Bresaola tail fatback drumstick kevin meatball pork loin.

+

GitHub Markdown CSS demo

+ +

+ +

Headers

+ +
# H1
+## H2
+### H3
+#### H4
+##### H5
+###### H6
+
+Alternatively, for H1 and H2, an underline-ish style:
+
+Alt-H1
+======
+
+Alt-H2
+------
+
+ +

H1

+ +

H2

+ +

H3

+ +

H4

+ +
H5
+ +
H6
+ +

Alternatively, for H1 and H2, an underline-ish style:

+ +

Alt-H1

+ +

Alt-H2

+ +

+ +

Emphasis

+ +
Emphasis, aka italics, with *asterisks* or _underscores_.
+
+Strong emphasis, aka bold, with **asterisks** or __underscores__.
+
+Combined emphasis with **asterisks and _underscores_**.
+
+Strikethrough uses two tildes. ~~Scratch this.~~
+
+ +

Emphasis, aka italics, with asterisks or underscores.

+ +

Strong emphasis, aka bold, with asterisks or underscores.

+ +

Combined emphasis with asterisks and underscores.

+ +

Strikethrough uses two tildes. Scratch this.

+ +

+ +

Lists

+ +

(In this example, leading and trailing spaces are shown with with dots: ⋅)

+ +
1. First ordered list item
+2. Another item
+⋅⋅* Unordered sub-list.
+1. Actual numbers don't matter, just that it's a number
+⋅⋅1. Ordered sub-list
+4. And another item.
+
+⋅⋅⋅You can have properly indented paragraphs within list items. Notice the blank line above, and the leading spaces (at least one, but we'll use three here to also align the raw Markdown).
+
+⋅⋅⋅To have a line break without a paragraph, you will need to use two trailing spaces.⋅⋅
+⋅⋅⋅Note that this line is separate, but within the same paragraph.⋅⋅
+⋅⋅⋅(This is contrary to the typical GFM line break behaviour, where trailing spaces are not required.)
+
+* Unordered list can use asterisks
+- Or minuses
++ Or pluses
+
+ +
    +
  1. First ordered list item
  2. +
  3. Another item + +
      +
    • Unordered sub-list.
    • +
  4. +
  5. Actual numbers don't matter, just that it's a number + +
      +
    1. Ordered sub-list
    2. +
  6. +
  7. And another item.

    + +

    You can have properly indented paragraphs within list items. Notice the blank line above, and the leading spaces (at least one, but we'll use three here to also align the raw Markdown).

    + +

    To have a line break without a paragraph, you will need to use two trailing spaces. + Note that this line is separate, but within the same paragraph. + (This is contrary to the typical GFM line break behaviour, where trailing spaces are not required.)

  8. +
+ +
    +
  • Unordered list can use asterisks
  • +
  • Or minuses
  • +
  • Or pluses

  • +
+ +
    +
  1. foo + +
      +
    1. bar + +
        +
      1. baz + +
          +
        1. faz
        2. +
      2. +
    2. +
  2. +
  3. foo2

  4. +
+ +
    +
  • foo + +
      +
    • bar + +
        +
      • baz + +
          +
        • faz
        • +
      • +
    • +
  • +
  • foo2

  • +
+ +
    +
  1. foo

    + +
      +
    • bar + +
        +
      1. baz + +
          +
        • faz
        • +
      2. +
    • +
  2. +
+ +
    +
  • foo

    + +
      +
    1. bar + +
        +
      • baz + +
          +
        1. faz
        2. +
      • +
    2. +
  • +
+ +
    +
  1. Lists in a list item: + +
      +
    • Indented four spaces. + +
        +
      • indented eight spaces.
      • +
    • +
    • Four spaces again.
    • +
  2. +
  3. Multiple paragraphs in a list items: +It's best to indent the paragraphs four spaces +You can get away with three, but it can get +confusing when you nest other things. +Stick to four.

    + +

    We indented the first line an extra space to align +it with these paragraphs. In real use, we might do +that to the entire list so that all items line up.

    + +

    This paragraph is still part of the list item, but it looks messy to humans. So it's a good idea to wrap your nested paragraphs manually, as we did with the first two.

  4. +
  5. Blockquotes in a list item:

    + +
    +

    Skip a line and +indent the >'s four spaces.

    +
  6. +
  7. Preformatted text in a list item:

    + +
    Skip a line and indent eight spaces.
    +That's four spaces for the list
    +and four to trigger the code block.
    +
  8. +
+ +

Inline HTML

+ +

To reboot your computer, press ctrl+alt+del.

+ +

+ +

Links

+ +

There are two ways to create links.

+ +
[I'm an inline-style link](https://www.google.com)
+
+[I'm an inline-style link with title](https://www.google.com "Google's Homepage")
+
+[I'm a reference-style link][Arbitrary case-insensitive reference text]
+
+[I'm a relative reference to a repository file](../blob/master/LICENSE)
+
+[You can use numbers for reference-style link definitions][1]
+
+Or leave it empty and use the [link text itself]
+
+Some text to show that the reference links can follow later.
+
+[arbitrary case-insensitive reference text]: https://www.mozilla.org
+[1]: http://slashdot.org
+[link text itself]: http://www.reddit.com
+
+ +

I'm an inline-style link

+ +

I'm an inline-style link with title

+ +

I'm a reference-style link

+ +

I'm a relative reference to a repository file

+ +

You can use numbers for reference-style link definitions

+ +

Or leave it empty and use the link text itself

+ +

Some text to show that the reference links can follow later.

+ +

+ +

Images

+ +
Here's our logo (hover to see the title text):
+
+Inline-style:
+![alt text](https://github.com/adam-p/markdown-here/raw/master/src/common/images/icon48.png "Logo Title Text 1")
+
+Reference-style:
+![alt text][logo]
+
+[logo]: https://github.com/adam-p/markdown-here/raw/master/src/common/images/icon48.png "Logo Title Text 2"
+
+ +

Here's our logo (hover to see the title text):

+ +

Inline-style: +alt text

+ +

Reference-style: +alt text

+ +

+ +

Code and Syntax Highlighting

+ +

Code blocks are part of the Markdown spec, but syntax highlighting isn't. However, many renderers -- like Github's and Markdown Here -- support syntax highlighting. Which languages are supported and how those language names should be written will vary from renderer to renderer. Markdown Here supports highlighting for dozens of languages (and not-really-languages, like diffs and HTTP headers); to see the complete list, and how to write the language names, see the highlight.js demo page.

+ +
Inline `code` has `back-ticks around` it.
+
+ +

Inline code has back-ticks around it.

+ +

Blocks of code are either fenced by lines with three back-ticks ```, or are indented with four spaces. I recommend only using the fenced code blocks -- they're easier and only they support syntax highlighting.

+ +
```javascript
+var s = "JavaScript syntax highlighting";
+alert(s);
+```
+
+```python
+s = "Python syntax highlighting"
+print s
+```
+
+```
+No language indicated, so no syntax highlighting.
+But let's throw in a <b>tag</b>.
+```
+
+ +
var s = "JavaScript syntax highlighting";
+alert(s);
+ +
s = "Python syntax highlighting"
+print s
+ +
No language indicated, so no syntax highlighting in Markdown Here (varies on Github).
+But let's throw in a <b>tag</b>.
+
+ +

+ +

Tables

+ +

Tables aren't part of the core Markdown spec, but they are part of GFM and Markdown Here supports them. They are an easy way of adding tables to your email -- a task that would otherwise require copy-pasting from another application.

+ +
Colons can be used to align columns.
+
+| Tables        | Are           | Cool  |
+| ------------- |:-------------:| -----:|
+| col 3 is      | right-aligned |  |
+| col 2 is      | centered      |    |
+| zebra stripes | are neat      |     |
+
+The outer pipes (|) are optional, and you don't need to make the raw Markdown line up prettily. You can also use inline Markdown.
+
+Markdown | Less | Pretty
+--- | --- | ---
+*Still* | `renders` | **nicely**
+1 | 2 | 3
+
+ +

Colons can be used to align columns.

+ + + + + + + + + + + + + + + + + + + + + + + +
TablesAreCool
col 3 isright-aligned
col 2 iscentered
zebra stripesare neat
+ +

The outer pipes (|) are optional, and you don't need to make the raw Markdown line up prettily. You can also use inline Markdown.

+ + + + + + + + + + + + + + + + + + +
MarkdownLessPretty
Stillrendersnicely
123
+ +

+ +

Blockquotes

+ +
> Blockquotes are very handy in email to emulate reply text.
+> This line is part of the same quote.
+
+Quote break.
+
+> This is a very long line that will still be quoted properly when it wraps. Oh boy let's keep writing to make sure this is long enough to actually wrap for everyone. Oh, you can *put* **Markdown** into a blockquote.
+
+ +
+

Blockquotes are very handy in email to emulate reply text. +This line is part of the same quote.

+
+ +

Quote break.

+ +
+

This is a very long line that will still be quoted properly when it wraps. Oh boy let's keep writing to make sure this is long enough to actually wrap for everyone. Oh, you can put Markdown into a blockquote.

+
+ +

+ +

Inline HTML

+ +

You can also use raw HTML in your Markdown, and it'll mostly work pretty well.

+ +
<dl>
+    <dt>Definition list</dt>
+    <dd>Is something people use sometimes.</dd>
+
+    <dt>Markdown in HTML</dt>
+    <dd>Does *not* work **very** well. Use HTML <em>tags</em>.</dd>
+</dl>
+
+ +
+
Definition list
+
Is something people use sometimes.
+ +
Markdown in HTML
+
Does *not* work **very** well. Use HTML tags.
+
+ +

+ +

Horizontal Rule

+ +
Three or more...
+
+---
+
+Hyphens
+
+***
+
+Asterisks
+
+___
+
+Underscores
+
+ +

Three or more...

+ +
+ +

Hyphens

+ +
+ +

Asterisks

+ +
+ +

Underscores

+ +

+ +

Line Breaks

+ +

My basic recommendation for learning how line breaks work is to experiment and discover -- hit <Enter> once (i.e., insert one newline), then hit it twice (i.e., insert two newlines), see what happens. You'll soon learn to get what you want. "Markdown Toggle" is your friend.

+ +

Here are some things to try out:

+ +
Here's a line for us to start with.
+
+This line is separated from the one above by two newlines, so it will be a *separate paragraph*.
+
+This line is also a separate paragraph, but...
+This line is only separated by a single newline, so it's a separate line in the *same paragraph*.
+
+ +

Here's a line for us to start with.

+ +

This line is separated from the one above by two newlines, so it will be a separate paragraph.

+ +

This line is also begins a separate paragraph, but... +This line is only separated by a single newline, so it's a separate line in the same paragraph.

+ +

(Technical note: Markdown Here uses GFM line breaks, so there's no need to use MD's two-space line breaks.)

+ +

+ +

Youtube videos

+ +

They can't be added directly but you can add an image with a link to the video like this:

+ +
<a href="http://www.youtube.com/watch?feature=player_embedded&v=YOUTUBE_VIDEO_ID_HERE
+" target="_blank"><img src="http://img.youtube.com/vi/YOUTUBE_VIDEO_ID_HERE/0.jpg"
+alt="IMAGE ALT TEXT HERE" width="240" height="180" border="10" /></a>
+
+ +

Or, in pure Markdown, but losing the image sizing and border:

+ +
[![IMAGE ALT TEXT HERE](http://img.youtube.com/vi/YOUTUBE_VIDEO_ID_HERE/0.jpg)](http://www.youtube.com/watch?v=YOUTUBE_VIDEO_ID_HERE)
+
+ +

Referencing a bug by #bugID in your git commit links it to the slip. For example #1.

+ +

Task List

+ +
    +
  • foo + +
      +
    • foo
    • +
    • foo
    • +
  • +
  • foo
  • +
+ +

[test]: http://google.com/ "Google"

+ +

A heading

+ +

Just a note, I've found that I can't test my markdown parser vs others. +For example, both markdown.js and showdown code blocks in lists wrong. They're +also completely [inconsistent][test] with regards to paragraphs in list items.

+ +

A link. Not anymore.

+ +

This will make me fail the test because +markdown.js doesnt acknowledge arbitrary html blocks =/

+ +
    +
  • List Item 1

  • +
  • List Item 2

    + +
      +
    • New List Item 1 +Hi, this is a list item.
    • +
    • New List Item 2 +Another item + Code goes here. + Lots of it...
    • +
    • New List Item 3 +The last item
    • +
  • +
  • List Item 3 +The final item.

  • +
  • List Item 4 +The real final item.

  • +
+ +

Paragraph.

+ +
+
    +
  • bq Item 1
  • +
  • bq Item 2 + +
      +
    • New bq Item 1
    • +
    • New bq Item 2 +Text here
    • +
  • +
+
+ +
+ +
+

Another blockquote! +I really need to get +more creative with +mockup text.. +markdown.js breaks here again

+
+ +

Another Heading

+ +

Hello world. Here is a link. +And an image alt.

+ +
Code goes here.
+Lots of it...
+
+ +
+

A list within a blockquote:

+ +
    +
  • asterisk 1
  • +
  • asterisk 2
  • +
  • asterisk 3
  • +
+
+ +

This is strong and em.

+ +

So is this word.

+ +

This is strong and em.

+ +

So is this word.

+ +

Unordered

+ +

Asterisks tight:

+ +
    +
  • asterisk 1
  • +
  • asterisk 2
  • +
  • asterisk 3
  • +
+ +

Asterisks loose:

+ +
    +
  • asterisk 1

  • +
  • asterisk 2

  • +
  • asterisk 3

  • +
+ +
+ +

Pluses tight:

+ +
    +
  • Plus 1
  • +
  • Plus 2
  • +
  • Plus 3
  • +
+ +

Pluses loose:

+ +
    +
  • Plus 1

  • +
  • Plus 2

  • +
  • Plus 3

  • +
+ +
+ +

Minuses tight:

+ +
    +
  • Minus 1
  • +
  • Minus 2
  • +
  • Minus 3
  • +
+ +

Minuses loose:

+ +
    +
  • Minus 1

  • +
  • Minus 2

  • +
  • Minus 3

  • +
+ +

Ordered

+ +

Tight:

+ +
    +
  1. First
  2. +
  3. Second
  4. +
  5. Third
  6. +
+ +

and:

+ +
    +
  1. One
  2. +
  3. Two
  4. +
  5. Three
  6. +
+ +

Loose using tabs:

+ +
    +
  1. First

  2. +
  3. Second

  4. +
  5. Third

  6. +
+ +

and using spaces:

+ +
    +
  1. One

  2. +
  3. Two

  4. +
  5. Three

  6. +
+ +

Multiple paragraphs:

+ +
    +
  1. Item 1, graf one.

    + +

    Item 2. graf two. The quick brown fox jumped over the lazy dog's +back.

  2. +
  3. Item 2.

  4. +
  5. Item 3.

  6. +
+ +

Nested

+ +
    +
  • Tab + +
      +
    • Tab + +
        +
      • Tab
      • +
    • +
  • +
+ +

Here's another:

+ +
    +
  1. First
  2. +
  3. Second: + +
      +
    • Fee
    • +
    • Fie
    • +
    • Foe
    • +
  4. +
  5. Third
  6. +
+ +

Same thing but with paragraphs:

+ +
    +
  1. First

  2. +
  3. Second:

    + +
      +
    • Fee
    • +
    • Fie
    • +
    • Foe
    • +
  4. +
  5. Third

  6. +
+ +

This was an error in Markdown 1.0.1:

+ +
    +
  • this

    + +
      +
    • sub
    • +
    + +

    that

  • +
+ +
+

foo

+ +
+

bar

+
+ +

foo

+
+ +

Markdown: Syntax

+ + + + + +

Note: This document is itself written using Markdown; you +can [see the source for it by adding '.text' to the URL][src].

+ +

[src]: /projects/markdown/syntax.text

+ +
+ +

Overview

+ +

Philosophy

+ +

Markdown is intended to be as easy-to-read and easy-to-write as is feasible.

+ +

Readability, however, is emphasized above all else. A Markdown-formatted +document should be publishable as-is, as plain text, without looking +like it's been marked up with tags or formatting instructions. While +Markdown's syntax has been influenced by several existing text-to-HTML +filters -- including Setext, [atx] [2], [Textile] [3], [reStructuredText] [4], +[Grutatext] [5], and [EtText] [6] -- the single biggest source of +inspiration for Markdown's syntax is the format of plain text email.

+ +

1: http://docutils.sourceforge.net/mirror/setext.html + [2]: http://www.aaronsw.com/2002/atx/ + [3]: http://textism.com/tools/textile/ + [4]: http://docutils.sourceforge.net/rst.html + [5]: http://www.triptico.com/software/grutatxt.html + [6]: http://ettext.taint.org/doc/

+ +

To this end, Markdown's syntax is comprised entirely of punctuation +characters, which punctuation characters have been carefully chosen so +as to look like what they mean. E.g., asterisks around a word actually +look like *emphasis*. Markdown lists look like, well, lists. Even +blockquotes look like quoted passages of text, assuming you've ever +used email.

+ +

Inline HTML

+ +

Markdown's syntax is intended for one purpose: to be used as a +format for writing for the web.

+ +

Markdown is not a replacement for HTML, or even close to it. Its +syntax is very small, corresponding only to a very small subset of +HTML tags. The idea is not to create a syntax that makes it easier +to insert HTML tags. In my opinion, HTML tags are already easy to +insert. The idea for Markdown is to make it easy to read, write, and +edit prose. HTML is a publishing format; Markdown is a writing +format. Thus, Markdown's formatting syntax only addresses issues that +can be conveyed in plain text.

+ +

For any markup that is not covered by Markdown's syntax, you simply +use HTML itself. There's no need to preface it or delimit it to +indicate that you're switching from Markdown to HTML; you just use +the tags.

+ +

The only restrictions are that block-level HTML elements -- e.g. <div>, +<table>, <pre>, <p>, etc. -- must be separated from surrounding +content by blank lines, and the start and end tags of the block should +not be indented with tabs or spaces. Markdown is smart enough not +to add extra (unwanted) <p> tags around HTML block-level tags.

+ +

For example, to add an HTML table to a Markdown article:

+ +
This is a regular paragraph.
+
+<table>
+    <tr>
+        <td>Foo</td>
+    </tr>
+</table>
+
+This is another regular paragraph.
+
+ +

Note that Markdown formatting syntax is not processed within block-level +HTML tags. E.g., you can't use Markdown-style *emphasis* inside an +HTML block.

+ +

Span-level HTML tags -- e.g. <span>, <cite>, or <del> -- can be +used anywhere in a Markdown paragraph, list item, or header. If you +want, you can even use HTML tags instead of Markdown formatting; e.g. if +you'd prefer to use HTML <a> or <img> tags instead of Markdown's +link or image syntax, go right ahead.

+ +

Unlike block-level HTML tags, Markdown syntax is processed within +span-level tags.

+ +

Automatic Escaping for Special Characters

+ +

In HTML, there are two characters that demand special treatment: < +and &. Left angle brackets are used to start tags; ampersands are +used to denote HTML entities. If you want to use them as literal +characters, you must escape them as entities, e.g. &lt;, and +&amp;.

+ +

Ampersands in particular are bedeviling for web writers. If you want to +write about 'AT&T', you need to write 'AT&amp;T'. You even need to +escape ampersands within URLs. Thus, if you want to link to:

+ +
http://images.google.com/images?num=30&q=larry+bird
+
+ +

you need to encode the URL as:

+ +
http://images.google.com/images?num=30&amp;q=larry+bird
+
+ +

in your anchor tag href attribute. Needless to say, this is easy to +forget, and is probably the single most common source of HTML validation +errors in otherwise well-marked-up web sites.

+ +

Markdown allows you to use these characters naturally, taking care of +all the necessary escaping for you. If you use an ampersand as part of +an HTML entity, it remains unchanged; otherwise it will be translated +into &amp;.

+ +

So, if you want to include a copyright symbol in your article, you can write:

+ +
&copy;
+
+ +

and Markdown will leave it alone. But if you write:

+ +
AT&T
+
+ +

Markdown will translate it to:

+ +
AT&amp;T
+
+ +

Similarly, because Markdown supports inline HTML, if you use +angle brackets as delimiters for HTML tags, Markdown will treat them as +such. But if you write:

+ +
4 < 5
+
+ +

Markdown will translate it to:

+ +
4 &lt; 5
+
+ +

However, inside Markdown code spans and blocks, angle brackets and +ampersands are always encoded automatically. This makes it easy to use +Markdown to write about HTML code. (As opposed to raw HTML, which is a +terrible format for writing about HTML syntax, because every single < +and & in your example code needs to be escaped.)

+ +
+ +

Block Elements

+ +

Paragraphs and Line Breaks

+ +

A paragraph is simply one or more consecutive lines of text, separated +by one or more blank lines. (A blank line is any line that looks like a +blank line -- a line containing nothing but spaces or tabs is considered +blank.) Normal paragraphs should not be intended with spaces or tabs.

+ +

The implication of the "one or more consecutive lines of text" rule is +that Markdown supports "hard-wrapped" text paragraphs. This differs +significantly from most other text-to-HTML formatters (including Movable +Type's "Convert Line Breaks" option) which translate every line break +character in a paragraph into a <br /> tag.

+ +

When you do want to insert a <br /> break tag using Markdown, you +end a line with two or more spaces, then type return.

+ +

Yes, this takes a tad more effort to create a <br />, but a simplistic +"every line break is a <br />" rule wouldn't work for Markdown. +Markdown's email-style [blockquoting][bq] and multi-paragraph [list items][l] +work best -- and look better -- when you format them with hard breaks.

+ +

[bq]: #blockquote + [l]: #list

+ +

Headers

+ +

Markdown supports two styles of headers, Setext and [atx] [2].

+ +

Setext-style headers are "underlined" using equal signs (for first-level +headers) and dashes (for second-level headers). For example:

+ +
This is an H1
+=============
+
+This is an H2
+-------------
+
+ +

Any number of underlining ='s or -'s will work.

+ +

Atx-style headers use 1-6 hash characters at the start of the line, +corresponding to header levels 1-6. For example:

+ +
# This is an H1
+
+## This is an H2
+
+###### This is an H6
+
+ +

Optionally, you may "close" atx-style headers. This is purely +cosmetic -- you can use this if you think it looks better. The +closing hashes don't even need to match the number of hashes +used to open the header. (The number of opening hashes +determines the header level.) :

+ +
# This is an H1 #
+
+## This is an H2 ##
+
+### This is an H3 ######
+
+ +

Blockquotes

+ +

Markdown uses email-style > characters for blockquoting. If you're +familiar with quoting passages of text in an email message, then you +know how to create a blockquote in Markdown. It looks best if you hard +wrap the text and put a > before every line:

+ +
> This is a blockquote with two paragraphs. Lorem ipsum dolor sit amet,
+> consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus.
+> Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus.
+>
+> Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse
+> id sem consectetuer libero luctus adipiscing.
+
+ +

Markdown allows you to be lazy and only put the > before the first +line of a hard-wrapped paragraph:

+ +
> This is a blockquote with two paragraphs. Lorem ipsum dolor sit amet,
+consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus.
+Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus.
+
+> Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse
+id sem consectetuer libero luctus adipiscing.
+
+ +

Blockquotes can be nested (i.e. a blockquote-in-a-blockquote) by +adding additional levels of >:

+ +
> This is the first level of quoting.
+>
+> > This is nested blockquote.
+>
+> Back to the first level.
+
+ +

Blockquotes can contain other Markdown elements, including headers, lists, +and code blocks:

+ +
> ## This is a header.
+>
+> 1.   This is the first list item.
+> 2.   This is the second list item.
+>
+> Here's some example code:
+>
+>     return shell_exec("echo $input | $markdown_script");
+
+ +

Any decent text editor should make email-style quoting easy. For +example, with BBEdit, you can make a selection and choose Increase +Quote Level from the Text menu.

+ +

Lists

+ +

Markdown supports ordered (numbered) and unordered (bulleted) lists.

+ +

Unordered lists use asterisks, pluses, and hyphens -- interchangably +-- as list markers:

+ +
*   Red
+*   Green
+*   Blue
+
+ +

is equivalent to:

+ +
+   Red
++   Green
++   Blue
+
+ +

and:

+ +
-   Red
+-   Green
+-   Blue
+
+ +

Ordered lists use numbers followed by periods:

+ +
1.  Bird
+2.  McHale
+3.  Parish
+
+ +

It's important to note that the actual numbers you use to mark the +list have no effect on the HTML output Markdown produces. The HTML +Markdown produces from the above list is:

+ +
<ol>
+<li>Bird</li>
+<li>McHale</li>
+<li>Parish</li>
+</ol>
+
+ +

If you instead wrote the list in Markdown like this:

+ +
1.  Bird
+1.  McHale
+1.  Parish
+
+ +

or even:

+ +
3. Bird
+1. McHale
+8. Parish
+
+ +

you'd get the exact same HTML output. The point is, if you want to, +you can use ordinal numbers in your ordered Markdown lists, so that +the numbers in your source match the numbers in your published HTML. +But if you want to be lazy, you don't have to.

+ +

If you do use lazy list numbering, however, you should still start the +list with the number 1. At some point in the future, Markdown may support +starting ordered lists at an arbitrary number.

+ +

List markers typically start at the left margin, but may be indented by +up to three spaces. List markers must be followed by one or more spaces +or a tab.

+ +

To make lists look nice, you can wrap items with hanging indents:

+ +
*   Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
+    Aliquam hendrerit mi posuere lectus. Vestibulum enim wisi,
+    viverra nec, fringilla in, laoreet vitae, risus.
+*   Donec sit amet nisl. Aliquam semper ipsum sit amet velit.
+    Suspendisse id sem consectetuer libero luctus adipiscing.
+
+ +

But if you want to be lazy, you don't have to:

+ +
*   Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
+Aliquam hendrerit mi posuere lectus. Vestibulum enim wisi,
+viverra nec, fringilla in, laoreet vitae, risus.
+*   Donec sit amet nisl. Aliquam semper ipsum sit amet velit.
+Suspendisse id sem consectetuer libero luctus adipiscing.
+
+ +

If list items are separated by blank lines, Markdown will wrap the +items in <p> tags in the HTML output. For example, this input:

+ +
*   Bird
+*   Magic
+
+ +

will turn into:

+ +
<ul>
+<li>Bird</li>
+<li>Magic</li>
+</ul>
+
+ +

But this:

+ +
*   Bird
+
+*   Magic
+
+ +

will turn into:

+ +
<ul>
+<li><p>Bird</p></li>
+<li><p>Magic</p></li>
+</ul>
+
+ +

List items may consist of multiple paragraphs. Each subsequent +paragraph in a list item must be intended by either 4 spaces +or one tab:

+ +
1.  This is a list item with two paragraphs. Lorem ipsum dolor
+    sit amet, consectetuer adipiscing elit. Aliquam hendrerit
+    mi posuere lectus.
+
+    Vestibulum enim wisi, viverra nec, fringilla in, laoreet
+    vitae, risus. Donec sit amet nisl. Aliquam semper ipsum
+    sit amet velit.
+
+2.  Suspendisse id sem consectetuer libero luctus adipiscing.
+
+ +

It looks nice if you indent every line of the subsequent +paragraphs, but here again, Markdown will allow you to be +lazy:

+ +
*   This is a list item with two paragraphs.
+
+    This is the second paragraph in the list item. You're
+only required to indent the first line. Lorem ipsum dolor
+sit amet, consectetuer adipiscing elit.
+
+*   Another item in the same list.
+
+ +

To put a blockquote within a list item, the blockquote's > +delimiters need to be indented:

+ +
*   A list item with a blockquote:
+
+    > This is a blockquote
+    > inside a list item.
+
+ +

To put a code block within a list item, the code block needs +to be indented twice -- 8 spaces or two tabs:

+ +
*   A list item with a code block:
+
+        <code goes here>
+
+ +

It's worth noting that it's possible to trigger an ordered list by +accident, by writing something like this:

+ +
1986. What a great season.
+
+ +

In other words, a number-period-space sequence at the beginning of a +line. To avoid this, you can backslash-escape the period:

+ +
1986\. What a great season.
+
+ +

Code Blocks

+ +

Pre-formatted code blocks are used for writing about programming or +markup source code. Rather than forming normal paragraphs, the lines +of a code block are interpreted literally. Markdown wraps a code block +in both <pre> and <code> tags.

+ +

To produce a code block in Markdown, simply indent every line of the +block by at least 4 spaces or 1 tab. For example, given this input:

+ +
This is a normal paragraph:
+
+    This is a code block.
+
+ +

Markdown will generate:

+ +
<p>This is a normal paragraph:</p>
+
+<pre><code>This is a code block.
+</code></pre>
+
+ +

One level of indentation -- 4 spaces or 1 tab -- is removed from each +line of the code block. For example, this:

+ +
Here is an example of AppleScript:
+
+    tell application "Foo"
+        beep
+    end tell
+
+ +

will turn into:

+ +
<p>Here is an example of AppleScript:</p>
+
+<pre><code>tell application "Foo"
+    beep
+end tell
+</code></pre>
+
+ +

A code block continues until it reaches a line that is not indented +(or the end of the article).

+ +

Within a code block, ampersands (&) and angle brackets (< and >) +are automatically converted into HTML entities. This makes it very +easy to include example HTML source code using Markdown -- just paste +it and indent it, and Markdown will handle the hassle of encoding the +ampersands and angle brackets. For example, this:

+ +
    <div class="footer">
+        &copy; 2004 Foo Corporation
+    </div>
+
+ +

will turn into:

+ +
<pre><code>&lt;div class="footer"&gt;
+    &amp;copy; 2004 Foo Corporation
+&lt;/div&gt;
+</code></pre>
+
+ +

Regular Markdown syntax is not processed within code blocks. E.g., +asterisks are just literal asterisks within a code block. This means +it's also easy to use Markdown to write about Markdown's own syntax.

+ +

Horizontal Rules

+ +

You can produce a horizontal rule tag (<hr />) by placing three or +more hyphens, asterisks, or underscores on a line by themselves. If you +wish, you may use spaces between the hyphens or asterisks. Each of the +following lines will produce a horizontal rule:

+ +
* * *
+
+***
+
+*****
+
+- - -
+
+---------------------------------------
+
+_ _ _
+
+ +
+ +

Span Elements

+ + + +

Markdown supports two style of links: inline and reference.

+ +

In both styles, the link text is delimited by [square brackets].

+ +

To create an inline link, use a set of regular parentheses immediately +after the link text's closing square bracket. Inside the parentheses, +put the URL where you want the link to point, along with an optional +title for the link, surrounded in quotes. For example:

+ +
This is [an example](http://example.com/ "Title") inline link.
+
+[This link](http://example.net/) has no title attribute.
+
+ +

Will produce:

+ +
<p>This is <a href="http://example.com/" title="Title">
+an example</a> inline link.</p>
+
+<p><a href="http://example.net/">This link</a> has no
+title attribute.</p>
+
+ +

If you're referring to a local resource on the same server, you can +use relative paths:

+ +
See my [About](/about/) page for details.
+
+ +

Reference-style links use a second set of square brackets, inside +which you place a label of your choosing to identify the link:

+ +
This is [an example][id] reference-style link.
+
+ +

You can optionally use a space to separate the sets of brackets:

+ +
This is [an example] [id] reference-style link.
+
+ +

Then, anywhere in the document, you define your link label like this, +on a line by itself:

+ +
[id]: http://example.com/  "Optional Title Here"
+
+ +

That is:

+ +
    +
  • Square brackets containing the link identifier (optionally +indented from the left margin using up to three spaces);
  • +
  • followed by a colon;
  • +
  • followed by one or more spaces (or tabs);
  • +
  • followed by the URL for the link;
  • +
  • optionally followed by a title attribute for the link, enclosed +in double or single quotes.
  • +
+ +

The link URL may, optionally, be surrounded by angle brackets:

+ +
[id]: <http://example.com/>  "Optional Title Here"
+
+ +

You can put the title attribute on the next line and use extra spaces +or tabs for padding, which tends to look better with longer URLs:

+ +
[id]: http://example.com/longish/path/to/resource/here
+    "Optional Title Here"
+
+ +

Link definitions are only used for creating links during Markdown +processing, and are stripped from your document in the HTML output.

+ +

Link definition names may constist of letters, numbers, spaces, and punctuation -- but they are not case sensitive. E.g. these two links:

+ +
[link text][a]
+[link text][A]
+
+ +

are equivalent.

+ +

The implicit link name shortcut allows you to omit the name of the +link, in which case the link text itself is used as the name. +Just use an empty set of square brackets -- e.g., to link the word +"Google" to the google.com web site, you could simply write:

+ +
[Google][]
+
+ +

And then define the link:

+ +
[Google]: http://google.com/
+
+ +

Because link names may contain spaces, this shortcut even works for +multiple words in the link text:

+ +
Visit [Daring Fireball][] for more information.
+
+ +

And then define the link:

+ +
[Daring Fireball]: http://daringfireball.net/
+
+ +

Link definitions can be placed anywhere in your Markdown document. I +tend to put them immediately after each paragraph in which they're +used, but if you want, you can put them all at the end of your +document, sort of like footnotes.

+ +

Here's an example of reference links in action:

+ +
I get 10 times more traffic from [Google] [1] than from
+[Yahoo] [2] or [MSN] [3].
+
+  [1]: http://google.com/        "Google"
+  [2]: http://search.yahoo.com/  "Yahoo Search"
+  [3]: http://search.msn.com/    "MSN Search"
+
+ +

Using the implicit link name shortcut, you could instead write:

+ +
I get 10 times more traffic from [Google][] than from
+[Yahoo][] or [MSN][].
+
+  [google]: http://google.com/        "Google"
+  [yahoo]:  http://search.yahoo.com/  "Yahoo Search"
+  [msn]:    http://search.msn.com/    "MSN Search"
+
+ +

Both of the above examples will produce the following HTML output:

+ +
<p>I get 10 times more traffic from <a href="http://google.com/"
+title="Google">Google</a> than from
+<a href="http://search.yahoo.com/" title="Yahoo Search">Yahoo</a>
+or <a href="http://search.msn.com/" title="MSN Search">MSN</a>.</p>
+
+ +

For comparison, here is the same paragraph written using +Markdown's inline link style:

+ +
I get 10 times more traffic from [Google](http://google.com/ "Google")
+than from [Yahoo](http://search.yahoo.com/ "Yahoo Search") or
+[MSN](http://search.msn.com/ "MSN Search").
+
+ +

The point of reference-style links is not that they're easier to +write. The point is that with reference-style links, your document +source is vastly more readable. Compare the above examples: using +reference-style links, the paragraph itself is only 81 characters +long; with inline-style links, it's 176 characters; and as raw HTML, +it's 234 characters. In the raw HTML, there's more markup than there +is text.

+ +

With Markdown's reference-style links, a source document much more +closely resembles the final output, as rendered in a browser. By +allowing you to move the markup-related metadata out of the paragraph, +you can add links without interrupting the narrative flow of your +prose.

+ +

Emphasis

+ +

Markdown treats asterisks (*) and underscores (_) as indicators of +emphasis. Text wrapped with one * or _ will be wrapped with an +HTML <em> tag; double *'s or _'s will be wrapped with an HTML +<strong> tag. E.g., this input:

+ +
*single asterisks*
+
+_single underscores_
+
+**double asterisks**
+
+__double underscores__
+
+ +

will produce:

+ +
<em>single asterisks</em>
+
+<em>single underscores</em>
+
+<strong>double asterisks</strong>
+
+<strong>double underscores</strong>
+
+ +

You can use whichever style you prefer; the lone restriction is that +the same character must be used to open and close an emphasis span.

+ +

Emphasis can be used in the middle of a word:

+ +
un*fucking*believable
+
+ +

But if you surround an * or _ with spaces, it'll be treated as a +literal asterisk or underscore.

+ +

To produce a literal asterisk or underscore at a position where it +would otherwise be used as an emphasis delimiter, you can backslash +escape it:

+ +
\*this text is surrounded by literal asterisks\*
+
+ +

Code

+ +

To indicate a span of code, wrap it with backtick quotes (`). +Unlike a pre-formatted code block, a code span indicates code within a +normal paragraph. For example:

+ +
Use the `printf()` function.
+
+ +

will produce:

+ +
<p>Use the <code>printf()</code> function.</p>
+
+ +

To include a literal backtick character within a code span, you can use +multiple backticks as the opening and closing delimiters:

+ +
``There is a literal backtick (`) here.``
+
+ +

which will produce this:

+ +
<p><code>There is a literal backtick (`) here.</code></p>
+
+ +

The backtick delimiters surrounding a code span may include spaces -- +one after the opening, one before the closing. This allows you to place +literal backtick characters at the beginning or end of a code span:

+ +
A single backtick in a code span: `` ` ``
+
+A backtick-delimited string in a code span: `` `foo` ``
+
+ +

will produce:

+ +
<p>A single backtick in a code span: <code>`</code></p>
+
+<p>A backtick-delimited string in a code span: <code>`foo`</code></p>
+
+ +

With a code span, ampersands and angle brackets are encoded as HTML +entities automatically, which makes it easy to include example HTML +tags. Markdown will turn this:

+ +
Please don't use any `<blink>` tags.
+
+ +

into:

+ +
<p>Please don't use any <code>&lt;blink&gt;</code> tags.</p>
+
+ +

You can write this:

+ +
`&#8212;` is the decimal-encoded equivalent of `&mdash;`.
+
+ +

to produce:

+ +
<p><code>&amp;#8212;</code> is the decimal-encoded
+equivalent of <code>&amp;mdash;</code>.</p>
+
+ +

Images

+ +

Admittedly, it's fairly difficult to devise a "natural" syntax for +placing images into a plain text document format.

+ +

Markdown uses an image syntax that is intended to resemble the syntax +for links, allowing for two styles: inline and reference.

+ +

Inline image syntax looks like this:

+ +
![Alt text](/path/to/img.jpg)
+
+![Alt text](/path/to/img.jpg "Optional title")
+
+ +

That is:

+ +
    +
  • An exclamation mark: !;
  • +
  • followed by a set of square brackets, containing the alt +attribute text for the image;
  • +
  • followed by a set of parentheses, containing the URL or path to +the image, and an optional title attribute enclosed in double +or single quotes.
  • +
+ +

Reference-style image syntax looks like this:

+ +
![Alt text][id]
+
+ +

Where "id" is the name of a defined image reference. Image references +are defined using syntax identical to link references:

+ +
[id]: url/to/image  "Optional title attribute"
+
+ +

As of this writing, Markdown has no syntax for specifying the +dimensions of an image; if this is important to you, you can simply +use regular HTML <img> tags.

+ +
+ +

Miscellaneous

+ + + +

Markdown supports a shortcut style for creating "automatic" links for URLs and email addresses: simply surround the URL or email address with angle brackets. What this means is that if you want to show the actual text of a URL or email address, and also have it be a clickable link, you can do this:

+ +
<http://example.com/>
+
+ +

Markdown will turn this into:

+ +
<a href="http://example.com/">http://example.com/</a>
+
+ +

Automatic links for email addresses work similarly, except that +Markdown will also perform a bit of randomized decimal and hex +entity-encoding to help obscure your address from address-harvesting +spambots. For example, Markdown will turn this:

+ +
<address@example.com>
+
+ +

into something like this:

+ +
<a href="&#x6D;&#x61;i&#x6C;&#x74;&#x6F;:&#x61;&#x64;&#x64;&#x72;&#x65;
+&#115;&#115;&#64;&#101;&#120;&#x61;&#109;&#x70;&#x6C;e&#x2E;&#99;&#111;
+&#109;">&#x61;&#x64;&#x64;&#x72;&#x65;&#115;&#115;&#64;&#101;&#120;&#x61;
+&#109;&#x70;&#x6C;e&#x2E;&#99;&#111;&#109;</a>
+
+ +

which will render in a browser as a clickable link to "address@example.com".

+ +

(This sort of entity-encoding trick will indeed fool many, if not +most, address-harvesting bots, but it definitely won't fool all of +them. It's better than nothing, but an address published in this way +will probably eventually start receiving spam.)

+ +

Backslash Escapes

+ +

Markdown allows you to use backslash escapes to generate literal +characters which would otherwise have special meaning in Markdown's +formatting syntax. For example, if you wanted to surround a word with +literal asterisks (instead of an HTML <em> tag), you can backslashes +before the asterisks, like this:

+ +
\*literal asterisks\*
+
+ +

Markdown provides backslash escapes for the following characters:

+ +
\   backslash
+`   backtick
+*   asterisk
+_   underscore
+{}  curly braces
+[]  square brackets
+()  parentheses
+#   hash mark
++   plus sign
+-   minus sign (hyphen)
+.   dot
+!   exclamation mark
+
+ +

Foo [bar][].

+ +

Foo bar.

+ +

[bar]: /url/ "Title with "quotes" inside"

+ +

This is the [simple case].

+ +

[simple case]: /simple

+ +

This one has a [line +break].

+ +

This one has a [line +break] with a line-ending space.

+ +

[line break]: /foo

+ +

[this] [that] and the [other]

+ +

[this]: /this +[that]: /that +[other]: /other

+ +

Here's a simple block:

+ +
+ foo +
+ +

This should be a code block, though:

+ +
<div>
+    foo
+</div>
+
+ +

As should this:

+ +
<div>foo</div>
+
+ +

Now, nested:

+ +
+
+
+ foo +
+
+
+ +

This should just be an HTML comment:

+ + + +

Multiline:

+ + + +

Code block:

+ +
<!-- Comment -->
+
+ +

Just plain comment, with trailing spaces on the line:

+ + + +

Code:

+ +
<hr />
+
+ +

Hr's:

+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
var gulp = require('gulp');
 var myth = require('gulp-myth');

From 263950475656d1c6623f7e790d6086e762a28bcb Mon Sep 17 00:00:00 2001
From: Sindre Sorhus 
Date: Sat, 9 Jan 2016 16:41:08 +0100
Subject: [PATCH 11/80] 2.2.0

---
 package.json | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package.json b/package.json
index de354c1..696e035 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
 {
   "name": "github-markdown-css",
-  "version": "2.1.1",
+  "version": "2.2.0",
   "description": "The minimal amount of CSS to replicate the GitHub Markdown style",
   "license": "MIT",
   "repository": "sindresorhus/github-markdown-css",

From b99cdc49a3bbc66fcc4cda336f440c6c20c1d5c6 Mon Sep 17 00:00:00 2001
From: Sindre Sorhus 
Date: Sat, 23 Jan 2016 13:15:24 +0100
Subject: [PATCH 12/80] change generation command name

---
 package.json | 2 +-
 readme.md    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/package.json b/package.json
index 696e035..8fc5636 100644
--- a/package.json
+++ b/package.json
@@ -13,7 +13,7 @@
     "node": ">=0.10.0"
   },
   "scripts": {
-    "generate": "github-markdown-css !> github-markdown.css"
+    "make": "github-markdown-css !> github-markdown.css"
   },
   "files": [
     "github-markdown.css"
diff --git a/readme.md b/readme.md
index 58ce1e4..2e00e1d 100644
--- a/readme.md
+++ b/readme.md
@@ -45,7 +45,7 @@ See [`generate-github-markdown-css`](https://github.com/sindresorhus/generate-gi
 
 ## Dev
 
-Run `npm run generate` to update the CSS.
+Run `npm run make` to update the CSS.
 
 
 ## License

From a16c76cfcb06130a8539c6d6f24a86624b925bdc Mon Sep 17 00:00:00 2001
From: Sindre Sorhus 
Date: Sat, 23 Jan 2016 13:16:13 +0100
Subject: [PATCH 13/80] add "main" field in package.json - fixes #23

---
 package.json | 1 +
 1 file changed, 1 insertion(+)

diff --git a/package.json b/package.json
index 8fc5636..ca00daf 100644
--- a/package.json
+++ b/package.json
@@ -9,6 +9,7 @@
     "email": "sindresorhus@gmail.com",
     "url": "sindresorhus.com"
   },
+  "main": "github-markdown.css",
   "engines": {
     "node": ">=0.10.0"
   },

From 033e86abcb007c3f103b33324945f5ce845617cf Mon Sep 17 00:00:00 2001
From: Sindre Sorhus 
Date: Sat, 23 Jan 2016 13:16:39 +0100
Subject: [PATCH 14/80] 2.2.1

---
 package.json | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package.json b/package.json
index ca00daf..9df133b 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
 {
   "name": "github-markdown-css",
-  "version": "2.2.0",
+  "version": "2.2.1",
   "description": "The minimal amount of CSS to replicate the GitHub Markdown style",
   "license": "MIT",
   "repository": "sindresorhus/github-markdown-css",

From ac5e7d1dcfac280ce384a0800a38754d76e5dd30 Mon Sep 17 00:00:00 2001
From: Sindre Sorhus 
Date: Tue, 3 May 2016 17:15:50 +0700
Subject: [PATCH 15/80] bump dependencies

---
 package.json | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package.json b/package.json
index 9df133b..83a6af2 100644
--- a/package.json
+++ b/package.json
@@ -29,6 +29,6 @@
     "stylesheet"
   ],
   "devDependencies": {
-    "generate-github-markdown-css": "^1.0.1"
+    "generate-github-markdown-css": "^2.0.0"
   }
 }

From b6428abecd9cb66beed4302425804f12fc592eb6 Mon Sep 17 00:00:00 2001
From: Sindre Sorhus 
Date: Tue, 3 May 2016 17:20:43 +0700
Subject: [PATCH 16/80] regenerate github css

---
 github-markdown.css | 129 ++++++++++++++++++++++++++++----------------
 1 file changed, 84 insertions(+), 45 deletions(-)

diff --git a/github-markdown.css b/github-markdown.css
index b74016b..dd9dac3 100644
--- a/github-markdown.css
+++ b/github-markdown.css
@@ -4,8 +4,8 @@
 }
 
 .markdown-body {
+  -ms-text-size-adjust: 100%;
   -webkit-text-size-adjust: 100%;
-  text-size-adjust: 100%;
   color: #333;
   font-family: "Helvetica Neue", Helvetica, "Segoe UI", Arial, freesans, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
   font-size: 16px;
@@ -15,15 +15,20 @@
 
 .markdown-body a {
   background-color: transparent;
+  -webkit-text-decoration-skip: objects;
 }
 
 .markdown-body a:active,
 .markdown-body a:hover {
-  outline: 0;
+  outline-width: 0;
 }
 
 .markdown-body strong {
-  font-weight: bold;
+  font-weight: inherit;
+}
+
+.markdown-body strong {
+  font-weight: bolder;
 }
 
 .markdown-body h1 {
@@ -32,16 +37,11 @@
 }
 
 .markdown-body img {
-  border: 0;
-}
-
-.markdown-body hr {
-  box-sizing: content-box;
-  height: 0;
+  border-style: none;
 }
 
-.markdown-body pre {
-  overflow: auto;
+.markdown-body svg:not(:root) {
+  overflow: hidden;
 }
 
 .markdown-body code,
@@ -51,28 +51,36 @@
   font-size: 1em;
 }
 
+.markdown-body hr {
+  box-sizing: content-box;
+  height: 0;
+  overflow: visible;
+}
+
 .markdown-body input {
-  color: inherit;
   font: inherit;
   margin: 0;
 }
 
-.markdown-body html input[disabled] {
-  cursor: default;
+.markdown-body input {
+  overflow: visible;
 }
 
-.markdown-body input {
-  line-height: normal;
+.markdown-body button:-moz-focusring,
+.markdown-body [type="button"]:-moz-focusring,
+.markdown-body [type="reset"]:-moz-focusring,
+.markdown-body [type="submit"]:-moz-focusring {
+  outline: 1px dotted ButtonText;
 }
 
-.markdown-body input[type="checkbox"] {
+.markdown-body [type="checkbox"] {
   box-sizing: border-box;
   padding: 0;
 }
 
 .markdown-body table {
-  border-collapse: collapse;
   border-spacing: 0;
+  border-collapse: collapse;
 }
 
 .markdown-body td,
@@ -85,7 +93,7 @@
 }
 
 .markdown-body input {
-  font: 13px / 1.4 Helvetica, arial, nimbussansl, liberationsans, freesans, clean, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
+  font: 13px/1.4 Helvetica, arial, nimbussansl, liberationsans, freesans, clean, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
 }
 
 .markdown-body a {
@@ -107,12 +115,12 @@
   border-bottom: 1px solid #ddd;
 }
 
-.markdown-body hr:before {
+.markdown-body hr::before {
   display: table;
   content: "";
 }
 
-.markdown-body hr:after {
+.markdown-body hr::after {
   display: table;
   clear: both;
   content: "";
@@ -124,9 +132,9 @@
 .markdown-body h4,
 .markdown-body h5,
 .markdown-body h6 {
-  margin-top: 15px;
-  margin-bottom: 15px;
-  line-height: 1.1;
+  margin-top: 0;
+  margin-bottom: 0;
+  line-height: 1.5;
 }
 
 .markdown-body h1 {
@@ -153,13 +161,18 @@
   font-size: 11px;
 }
 
+.markdown-body p {
+  margin-top: 0;
+  margin-bottom: 10px;
+}
+
 .markdown-body blockquote {
   margin: 0;
 }
 
 .markdown-body ul,
 .markdown-body ol {
-  padding: 0;
+  padding-left: 0;
   margin-top: 0;
   margin-bottom: 0;
 }
@@ -191,25 +204,36 @@
   font: 12px Consolas, "Liberation Mono", Menlo, Courier, monospace;
 }
 
-.markdown-body .select::-ms-expand {
-  opacity: 0;
+.markdown-body .pl-0 {
+  padding-left: 0 !important;
 }
 
-.markdown-body .octicon {
-  font: normal normal normal 16px/1 octicons-link;
-  display: inline-block;
-  text-decoration: none;
-  text-rendering: auto;
-  -webkit-font-smoothing: antialiased;
-  -moz-osx-font-smoothing: grayscale;
-  -webkit-user-select: none;
-  -moz-user-select: none;
-  -ms-user-select: none;
-  user-select: none;
+.markdown-body .pl-1 {
+  padding-left: 3px !important;
+}
+
+.markdown-body .pl-2 {
+  padding-left: 6px !important;
+}
+
+.markdown-body .pl-3 {
+  padding-left: 12px !important;
+}
+
+.markdown-body .pl-4 {
+  padding-left: 24px !important;
 }
 
-.markdown-body .octicon-link:before {
-  content: '\f05c';
+.markdown-body .pl-5 {
+  padding-left: 36px !important;
+}
+
+.markdown-body .pl-6 {
+  padding-left: 48px !important;
+}
+
+.markdown-body .form-select::-ms-expand {
+  opacity: 0;
 }
 
 .markdown-body:before {
@@ -636,6 +660,23 @@
   box-shadow: inset 0 -1px 0 #bbb;
 }
 
+.markdown-body .full-commit .btn-outline:not(:disabled):hover {
+  color: #4078c0;
+  border: 1px solid #4078c0;
+}
+
+.markdown-body :checked+.radio-label {
+  position: relative;
+  z-index: 1;
+  border-color: #4078c0;
+}
+
+.markdown-body .octicon {
+  display: inline-block;
+  vertical-align: text-top;
+  fill: currentColor;
+}
+
 .markdown-body .task-list-item {
   list-style-type: none;
 }
@@ -645,12 +686,10 @@
 }
 
 .markdown-body .task-list-item input {
-  margin: 0 0.35em 0.25em -1.6em;
+  margin: 0 0.2em 0.25em -1.6em;
   vertical-align: middle;
 }
 
-.markdown-body :checked+.radio-label {
-  z-index: 1;
-  position: relative;
-  border-color: #4078c0;
+.markdown-body hr {
+  border-bottom-color: #eee;
 }

From dece7585bb53cd17039dedce5e0b888f28220456 Mon Sep 17 00:00:00 2001
From: Sindre Sorhus 
Date: Tue, 3 May 2016 17:20:53 +0700
Subject: [PATCH 17/80] 2.3.0

---
 package.json | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package.json b/package.json
index 83a6af2..29ff241 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
 {
   "name": "github-markdown-css",
-  "version": "2.2.1",
+  "version": "2.3.0",
   "description": "The minimal amount of CSS to replicate the GitHub Markdown style",
   "license": "MIT",
   "repository": "sindresorhus/github-markdown-css",

From b526564124ad3fcea5e789b1d8636da2a8a8c543 Mon Sep 17 00:00:00 2001
From: Sindre Sorhus 
Date: Tue, 3 May 2016 19:48:47 +0700
Subject: [PATCH 18/80] remove moot `!` in build script

#27
---
 package.json | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package.json b/package.json
index 29ff241..a7b2b5a 100644
--- a/package.json
+++ b/package.json
@@ -14,7 +14,7 @@
     "node": ">=0.10.0"
   },
   "scripts": {
-    "make": "github-markdown-css !> github-markdown.css"
+    "make": "github-markdown-css > github-markdown.css"
   },
   "files": [
     "github-markdown.css"

From d666bcdd419de524982c4f8181745fa62c65dc12 Mon Sep 17 00:00:00 2001
From: Sindre Sorhus 
Date: Thu, 4 Aug 2016 12:37:31 +0200
Subject: [PATCH 19/80] regenerate GitHub CSS to the new style

fixes #30
---
 github-markdown.css | 481 ++++++++++++++++++++++----------------------
 1 file changed, 240 insertions(+), 241 deletions(-)

diff --git a/github-markdown.css b/github-markdown.css
index dd9dac3..00d4848 100644
--- a/github-markdown.css
+++ b/github-markdown.css
@@ -6,13 +6,119 @@
 .markdown-body {
   -ms-text-size-adjust: 100%;
   -webkit-text-size-adjust: 100%;
+  line-height: 1.5;
   color: #333;
-  font-family: "Helvetica Neue", Helvetica, "Segoe UI", Arial, freesans, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
+  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
   font-size: 16px;
-  line-height: 1.6;
+  line-height: 1.5;
   word-wrap: break-word;
 }
 
+.markdown-body .pl-c {
+  color: #969896;
+}
+
+.markdown-body .pl-c1,
+.markdown-body .pl-s .pl-v {
+  color: #0086b3;
+}
+
+.markdown-body .pl-e,
+.markdown-body .pl-en {
+  color: #795da3;
+}
+
+.markdown-body .pl-smi,
+.markdown-body .pl-s .pl-s1 {
+  color: #333;
+}
+
+.markdown-body .pl-ent {
+  color: #63a35c;
+}
+
+.markdown-body .pl-k {
+  color: #a71d5d;
+}
+
+.markdown-body .pl-s,
+.markdown-body .pl-pds,
+.markdown-body .pl-s .pl-pse .pl-s1,
+.markdown-body .pl-sr,
+.markdown-body .pl-sr .pl-cce,
+.markdown-body .pl-sr .pl-sre,
+.markdown-body .pl-sr .pl-sra {
+  color: #183691;
+}
+
+.markdown-body .pl-v {
+  color: #ed6a43;
+}
+
+.markdown-body .pl-id {
+  color: #b52a1d;
+}
+
+.markdown-body .pl-ii {
+  color: #f8f8f8;
+  background-color: #b52a1d;
+}
+
+.markdown-body .pl-sr .pl-cce {
+  font-weight: bold;
+  color: #63a35c;
+}
+
+.markdown-body .pl-ml {
+  color: #693a17;
+}
+
+.markdown-body .pl-mh,
+.markdown-body .pl-mh .pl-en,
+.markdown-body .pl-ms {
+  font-weight: bold;
+  color: #1d3e81;
+}
+
+.markdown-body .pl-mq {
+  color: #008080;
+}
+
+.markdown-body .pl-mi {
+  font-style: italic;
+  color: #333;
+}
+
+.markdown-body .pl-mb {
+  font-weight: bold;
+  color: #333;
+}
+
+.markdown-body .pl-md {
+  color: #bd2c00;
+  background-color: #ffecec;
+}
+
+.markdown-body .pl-mi1 {
+  color: #55a532;
+  background-color: #eaffea;
+}
+
+.markdown-body .pl-mdr {
+  font-weight: bold;
+  color: #795da3;
+}
+
+.markdown-body .pl-mo {
+  color: #1d3e81;
+}
+
+.markdown-body .octicon {
+  display: inline-block;
+  vertical-align: text-top;
+  fill: currentColor;
+}
+
 .markdown-body a {
   background-color: transparent;
   -webkit-text-decoration-skip: objects;
@@ -78,22 +184,14 @@
   padding: 0;
 }
 
-.markdown-body table {
-  border-spacing: 0;
-  border-collapse: collapse;
-}
-
-.markdown-body td,
-.markdown-body th {
-  padding: 0;
-}
-
 .markdown-body * {
   box-sizing: border-box;
 }
 
 .markdown-body input {
-  font: 13px/1.4 Helvetica, arial, nimbussansl, liberationsans, freesans, clean, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
+  font-family: inherit;
+  font-size: inherit;
+  line-height: inherit;
 }
 
 .markdown-body a {
@@ -106,6 +204,10 @@
   text-decoration: underline;
 }
 
+.markdown-body strong {
+  font-weight: 600;
+}
+
 .markdown-body hr {
   height: 0;
   margin: 15px 0;
@@ -126,6 +228,16 @@
   content: "";
 }
 
+.markdown-body table {
+  border-spacing: 0;
+  border-collapse: collapse;
+}
+
+.markdown-body td,
+.markdown-body th {
+  padding: 0;
+}
+
 .markdown-body h1,
 .markdown-body h2,
 .markdown-body h3,
@@ -134,31 +246,36 @@
 .markdown-body h6 {
   margin-top: 0;
   margin-bottom: 0;
-  line-height: 1.5;
 }
 
 .markdown-body h1 {
-  font-size: 30px;
+  font-size: 32px;
+  font-weight: 600;
 }
 
 .markdown-body h2 {
-  font-size: 21px;
+  font-size: 24px;
+  font-weight: 600;
 }
 
 .markdown-body h3 {
-  font-size: 16px;
+  font-size: 20px;
+  font-weight: 600;
 }
 
 .markdown-body h4 {
-  font-size: 14px;
+  font-size: 16px;
+  font-weight: 600;
 }
 
 .markdown-body h5 {
-  font-size: 12px;
+  font-size: 14px;
+  font-weight: 600;
 }
 
 .markdown-body h6 {
-  font-size: 11px;
+  font-size: 12px;
+  font-weight: 600;
 }
 
 .markdown-body p {
@@ -204,44 +321,25 @@
   font: 12px Consolas, "Liberation Mono", Menlo, Courier, monospace;
 }
 
-.markdown-body .pl-0 {
-  padding-left: 0 !important;
-}
-
-.markdown-body .pl-1 {
-  padding-left: 3px !important;
-}
-
-.markdown-body .pl-2 {
-  padding-left: 6px !important;
-}
-
-.markdown-body .pl-3 {
-  padding-left: 12px !important;
-}
-
-.markdown-body .pl-4 {
-  padding-left: 24px !important;
-}
-
-.markdown-body .pl-5 {
-  padding-left: 36px !important;
+.markdown-body .octicon {
+  vertical-align: text-bottom;
 }
 
-.markdown-body .pl-6 {
-  padding-left: 48px !important;
+.markdown-body input {
+  -webkit-font-feature-settings: "liga" 0;
+  font-feature-settings: "liga" 0;
 }
 
 .markdown-body .form-select::-ms-expand {
   opacity: 0;
 }
 
-.markdown-body:before {
+.markdown-body::before {
   display: table;
   content: "";
 }
 
-.markdown-body:after {
+.markdown-body::after {
   display: table;
   clear: both;
   content: "";
@@ -261,25 +359,73 @@
 }
 
 .markdown-body .anchor {
-  display: inline-block;
-  padding-right: 2px;
-  margin-left: -18px;
+  float: left;
+  padding-right: 4px;
+  margin-left: -20px;
+  line-height: 1;
 }
 
 .markdown-body .anchor:focus {
   outline: none;
 }
 
+.markdown-body p,
+.markdown-body blockquote,
+.markdown-body ul,
+.markdown-body ol,
+.markdown-body dl,
+.markdown-body table,
+.markdown-body pre {
+  margin-top: 0;
+  margin-bottom: 16px;
+}
+
+.markdown-body hr {
+  height: 0.25em;
+  padding: 0;
+  margin: 24px 0;
+  background-color: #e7e7e7;
+  border: 0;
+}
+
+.markdown-body blockquote {
+  padding: 0 1em;
+  color: #777;
+  border-left: 0.25em solid #ddd;
+}
+
+.markdown-body blockquote>:first-child {
+  margin-top: 0;
+}
+
+.markdown-body blockquote>:last-child {
+  margin-bottom: 0;
+}
+
+.markdown-body kbd {
+  display: inline-block;
+  padding: 3px 5px;
+  font-size: 11px;
+  line-height: 10px;
+  color: #555;
+  vertical-align: middle;
+  background-color: #fcfcfc;
+  border: solid 1px #ccc;
+  border-bottom-color: #bbb;
+  border-radius: 3px;
+  box-shadow: inset 0 -1px 0 #bbb;
+}
+
 .markdown-body h1,
 .markdown-body h2,
 .markdown-body h3,
 .markdown-body h4,
 .markdown-body h5,
 .markdown-body h6 {
-  margin-top: 1em;
+  margin-top: 24px;
   margin-bottom: 16px;
-  font-weight: bold;
-  line-height: 1.4;
+  font-weight: 600;
+  line-height: 1.25;
 }
 
 .markdown-body h1 .octicon-link,
@@ -313,79 +459,33 @@
 
 .markdown-body h1 {
   padding-bottom: 0.3em;
-  font-size: 2.25em;
-  line-height: 1.2;
+  font-size: 2em;
   border-bottom: 1px solid #eee;
 }
 
-.markdown-body h1 .anchor {
-  line-height: 1;
-}
-
 .markdown-body h2 {
   padding-bottom: 0.3em;
-  font-size: 1.75em;
-  line-height: 1.225;
+  font-size: 1.5em;
   border-bottom: 1px solid #eee;
 }
 
-.markdown-body h2 .anchor {
-  line-height: 1;
-}
-
 .markdown-body h3 {
-  font-size: 1.5em;
-  line-height: 1.43;
-}
-
-.markdown-body h3 .anchor {
-  line-height: 1.2;
-}
-
-.markdown-body h4 {
   font-size: 1.25em;
 }
 
-.markdown-body h4 .anchor {
-  line-height: 1.2;
-}
-
-.markdown-body h5 {
+.markdown-body h4 {
   font-size: 1em;
 }
 
-.markdown-body h5 .anchor {
-  line-height: 1.1;
+.markdown-body h5 {
+  font-size: 0.875em;
 }
 
 .markdown-body h6 {
-  font-size: 1em;
+  font-size: 0.85em;
   color: #777;
 }
 
-.markdown-body h6 .anchor {
-  line-height: 1.1;
-}
-
-.markdown-body p,
-.markdown-body blockquote,
-.markdown-body ul,
-.markdown-body ol,
-.markdown-body dl,
-.markdown-body table,
-.markdown-body pre {
-  margin-top: 0;
-  margin-bottom: 16px;
-}
-
-.markdown-body hr {
-  height: 4px;
-  padding: 0;
-  margin: 16px 0;
-  background-color: #e7e7e7;
-  border: 0 none;
-}
-
 .markdown-body ul,
 .markdown-body ol {
   padding-left: 2em;
@@ -403,6 +503,10 @@
   margin-top: 16px;
 }
 
+.markdown-body li+li {
+  margin-top: 0.25em;
+}
+
 .markdown-body dl {
   padding: 0;
 }
@@ -420,20 +524,6 @@
   margin-bottom: 16px;
 }
 
-.markdown-body blockquote {
-  padding: 0 15px;
-  color: #777;
-  border-left: 4px solid #ddd;
-}
-
-.markdown-body blockquote>:first-child {
-  margin-top: 0;
-}
-
-.markdown-body blockquote>:last-child {
-  margin-bottom: 0;
-}
-
 .markdown-body table {
   display: block;
   width: 100%;
@@ -477,12 +567,16 @@
   border-radius: 3px;
 }
 
-.markdown-body code:before,
-.markdown-body code:after {
+.markdown-body code::before,
+.markdown-body code::after {
   letter-spacing: -0.2em;
   content: "\00a0";
 }
 
+.markdown-body pre {
+  word-wrap: normal;
+}
+
 .markdown-body pre>code {
   padding: 0;
   margin: 0;
@@ -497,6 +591,11 @@
   margin-bottom: 16px;
 }
 
+.markdown-body .highlight pre {
+  margin-bottom: 0;
+  word-break: normal;
+}
+
 .markdown-body .highlight pre,
 .markdown-body pre {
   padding: 16px;
@@ -507,143 +606,54 @@
   border-radius: 3px;
 }
 
-.markdown-body .highlight pre {
-  margin-bottom: 0;
-  word-break: normal;
-}
-
-.markdown-body pre {
-  word-wrap: normal;
-}
-
 .markdown-body pre code {
   display: inline;
-  max-width: initial;
+  max-width: auto;
   padding: 0;
   margin: 0;
-  overflow: initial;
+  overflow: visible;
   line-height: inherit;
   word-wrap: normal;
   background-color: transparent;
   border: 0;
 }
 
-.markdown-body pre code:before,
-.markdown-body pre code:after {
+.markdown-body pre code::before,
+.markdown-body pre code::after {
   content: normal;
 }
 
-.markdown-body kbd {
-  display: inline-block;
-  padding: 3px 5px;
-  font-size: 11px;
-  line-height: 10px;
-  color: #555;
-  vertical-align: middle;
-  background-color: #fcfcfc;
-  border: solid 1px #ccc;
-  border-bottom-color: #bbb;
-  border-radius: 3px;
-  box-shadow: inset 0 -1px 0 #bbb;
-}
-
-.markdown-body .pl-c {
-  color: #969896;
-}
-
-.markdown-body .pl-c1,
-.markdown-body .pl-s .pl-v {
-  color: #0086b3;
-}
-
-.markdown-body .pl-e,
-.markdown-body .pl-en {
-  color: #795da3;
-}
-
-.markdown-body .pl-s .pl-s1,
-.markdown-body .pl-smi {
-  color: #333;
-}
-
-.markdown-body .pl-ent {
-  color: #63a35c;
-}
-
-.markdown-body .pl-k {
-  color: #a71d5d;
-}
-
-.markdown-body .pl-pds,
-.markdown-body .pl-s,
-.markdown-body .pl-s .pl-pse .pl-s1,
-.markdown-body .pl-sr,
-.markdown-body .pl-sr .pl-cce,
-.markdown-body .pl-sr .pl-sra,
-.markdown-body .pl-sr .pl-sre {
-  color: #183691;
-}
-
-.markdown-body .pl-v {
-  color: #ed6a43;
-}
-
-.markdown-body .pl-id {
-  color: #b52a1d;
-}
-
-.markdown-body .pl-ii {
-  background-color: #b52a1d;
-  color: #f8f8f8;
-}
-
-.markdown-body .pl-sr .pl-cce {
-  color: #63a35c;
-  font-weight: bold;
-}
-
-.markdown-body .pl-ml {
-  color: #693a17;
-}
-
-.markdown-body .pl-mh,
-.markdown-body .pl-mh .pl-en,
-.markdown-body .pl-ms {
-  color: #1d3e81;
-  font-weight: bold;
+.markdown-body .pl-0 {
+  padding-left: 0 !important;
 }
 
-.markdown-body .pl-mq {
-  color: #008080;
+.markdown-body .pl-1 {
+  padding-left: 3px !important;
 }
 
-.markdown-body .pl-mi {
-  color: #333;
-  font-style: italic;
+.markdown-body .pl-2 {
+  padding-left: 6px !important;
 }
 
-.markdown-body .pl-mb {
-  color: #333;
-  font-weight: bold;
+.markdown-body .pl-3 {
+  padding-left: 12px !important;
 }
 
-.markdown-body .pl-md {
-  background-color: #ffecec;
-  color: #bd2c00;
+.markdown-body .pl-4 {
+  padding-left: 24px !important;
 }
 
-.markdown-body .pl-mi1 {
-  background-color: #eaffea;
-  color: #55a532;
+.markdown-body .pl-5 {
+  padding-left: 36px !important;
 }
 
-.markdown-body .pl-mdr {
-  color: #795da3;
-  font-weight: bold;
+.markdown-body .pl-6 {
+  padding-left: 48px !important;
 }
 
-.markdown-body .pl-mo {
-  color: #1d3e81;
+.markdown-body .full-commit .btn-outline:not(:disabled):hover {
+  color: #4078c0;
+  border: 1px solid #4078c0;
 }
 
 .markdown-body kbd {
@@ -660,23 +670,12 @@
   box-shadow: inset 0 -1px 0 #bbb;
 }
 
-.markdown-body .full-commit .btn-outline:not(:disabled):hover {
-  color: #4078c0;
-  border: 1px solid #4078c0;
-}
-
 .markdown-body :checked+.radio-label {
   position: relative;
   z-index: 1;
   border-color: #4078c0;
 }
 
-.markdown-body .octicon {
-  display: inline-block;
-  vertical-align: text-top;
-  fill: currentColor;
-}
-
 .markdown-body .task-list-item {
   list-style-type: none;
 }

From f73e0a064daf4c3e37674d625ff81895c25c03f4 Mon Sep 17 00:00:00 2001
From: Sindre Sorhus 
Date: Thu, 4 Aug 2016 13:03:36 +0200
Subject: [PATCH 20/80] 2.4.0

---
 package.json | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package.json b/package.json
index a7b2b5a..f4a58fd 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
 {
   "name": "github-markdown-css",
-  "version": "2.3.0",
+  "version": "2.4.0",
   "description": "The minimal amount of CSS to replicate the GitHub Markdown style",
   "license": "MIT",
   "repository": "sindresorhus/github-markdown-css",

From 016093225b6d4f324fa10bd91332c8cf19bcd019 Mon Sep 17 00:00:00 2001
From: Sindre Sorhus 
Date: Thu, 22 Sep 2016 23:38:28 +0700
Subject: [PATCH 21/80] regenerate GitHub CSS

---
 github-markdown.css | 13 -------------
 1 file changed, 13 deletions(-)

diff --git a/github-markdown.css b/github-markdown.css
index 00d4848..42e38eb 100644
--- a/github-markdown.css
+++ b/github-markdown.css
@@ -172,13 +172,6 @@
   overflow: visible;
 }
 
-.markdown-body button:-moz-focusring,
-.markdown-body [type="button"]:-moz-focusring,
-.markdown-body [type="reset"]:-moz-focusring,
-.markdown-body [type="submit"]:-moz-focusring {
-  outline: 1px dotted ButtonText;
-}
-
 .markdown-body [type="checkbox"] {
   box-sizing: border-box;
   padding: 0;
@@ -330,10 +323,6 @@
   font-feature-settings: "liga" 0;
 }
 
-.markdown-body .form-select::-ms-expand {
-  opacity: 0;
-}
-
 .markdown-body::before {
   display: table;
   content: "";
@@ -528,8 +517,6 @@
   display: block;
   width: 100%;
   overflow: auto;
-  word-break: normal;
-  word-break: keep-all;
 }
 
 .markdown-body table th {

From 7b86e65de4fdd353afb2b4f1989c7c9e4163424a Mon Sep 17 00:00:00 2001
From: Sindre Sorhus 
Date: Thu, 22 Sep 2016 23:39:31 +0700
Subject: [PATCH 22/80] 2.4.1

---
 package.json | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package.json b/package.json
index f4a58fd..213bc66 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
 {
   "name": "github-markdown-css",
-  "version": "2.4.0",
+  "version": "2.4.1",
   "description": "The minimal amount of CSS to replicate the GitHub Markdown style",
   "license": "MIT",
   "repository": "sindresorhus/github-markdown-css",

From 34876406f51ef11242b187bccb250c2cd94b47fa Mon Sep 17 00:00:00 2001
From: Sindre Sorhus 
Date: Sun, 26 Mar 2017 15:34:32 +0700
Subject: [PATCH 23/80] Regenerate GitHub CSS

---
 github-markdown.css | 163 ++++++++++++++++++++++++++------------------
 package.json        |   2 +-
 2 files changed, 96 insertions(+), 69 deletions(-)

diff --git a/github-markdown.css b/github-markdown.css
index 42e38eb..3f4a3dd 100644
--- a/github-markdown.css
+++ b/github-markdown.css
@@ -7,8 +7,8 @@
   -ms-text-size-adjust: 100%;
   -webkit-text-size-adjust: 100%;
   line-height: 1.5;
-  color: #333;
-  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
+  color: #24292e;
+  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
   font-size: 16px;
   line-height: 1.5;
   word-wrap: break-word;
@@ -51,11 +51,12 @@
   color: #183691;
 }
 
-.markdown-body .pl-v {
+.markdown-body .pl-v,
+.markdown-body .pl-smw {
   color: #ed6a43;
 }
 
-.markdown-body .pl-id {
+.markdown-body .pl-bu {
   color: #b52a1d;
 }
 
@@ -64,6 +65,15 @@
   background-color: #b52a1d;
 }
 
+.markdown-body .pl-c2 {
+  color: #f8f8f8;
+  background-color: #b52a1d;
+}
+
+.markdown-body .pl-c2::before {
+  content: "^M";
+}
+
 .markdown-body .pl-sr .pl-cce {
   font-weight: bold;
   color: #63a35c;
@@ -104,6 +114,16 @@
   background-color: #eaffea;
 }
 
+.markdown-body .pl-mc {
+  color: #ef9700;
+  background-color: #ffe3b4;
+}
+
+.markdown-body .pl-mi2 {
+  color: #d8d8d8;
+  background-color: #808080;
+}
+
 .markdown-body .pl-mdr {
   font-weight: bold;
   color: #795da3;
@@ -113,6 +133,19 @@
   color: #1d3e81;
 }
 
+.markdown-body .pl-ba {
+  color: #595e62;
+}
+
+.markdown-body .pl-sg {
+  color: #c0c0c0;
+}
+
+.markdown-body .pl-corl {
+  text-decoration: underline;
+  color: #183691;
+}
+
 .markdown-body .octicon {
   display: inline-block;
   vertical-align: text-top;
@@ -188,12 +221,11 @@
 }
 
 .markdown-body a {
-  color: #4078c0;
+  color: #0366d6;
   text-decoration: none;
 }
 
-.markdown-body a:hover,
-.markdown-body a:active {
+.markdown-body a:hover {
   text-decoration: underline;
 }
 
@@ -207,7 +239,7 @@
   overflow: hidden;
   background: transparent;
   border: 0;
-  border-bottom: 1px solid #ddd;
+  border-bottom: 1px solid #dfe2e5;
 }
 
 .markdown-body hr::before {
@@ -304,23 +336,46 @@
 }
 
 .markdown-body code {
-  font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
+  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
   font-size: 12px;
 }
 
 .markdown-body pre {
   margin-top: 0;
   margin-bottom: 0;
-  font: 12px Consolas, "Liberation Mono", Menlo, Courier, monospace;
+  font: 12px "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
 }
 
 .markdown-body .octicon {
   vertical-align: text-bottom;
 }
 
-.markdown-body input {
-  -webkit-font-feature-settings: "liga" 0;
-  font-feature-settings: "liga" 0;
+.markdown-body .pl-0 {
+  padding-left: 0 !important;
+}
+
+.markdown-body .pl-1 {
+  padding-left: 4px !important;
+}
+
+.markdown-body .pl-2 {
+  padding-left: 8px !important;
+}
+
+.markdown-body .pl-3 {
+  padding-left: 16px !important;
+}
+
+.markdown-body .pl-4 {
+  padding-left: 24px !important;
+}
+
+.markdown-body .pl-5 {
+  padding-left: 32px !important;
+}
+
+.markdown-body .pl-6 {
+  padding-left: 40px !important;
 }
 
 .markdown-body::before {
@@ -373,14 +428,14 @@
   height: 0.25em;
   padding: 0;
   margin: 24px 0;
-  background-color: #e7e7e7;
+  background-color: #e1e4e8;
   border: 0;
 }
 
 .markdown-body blockquote {
   padding: 0 1em;
-  color: #777;
-  border-left: 0.25em solid #ddd;
+  color: #6a737d;
+  border-left: 0.25em solid #dfe2e5;
 }
 
 .markdown-body blockquote>:first-child {
@@ -396,13 +451,13 @@
   padding: 3px 5px;
   font-size: 11px;
   line-height: 10px;
-  color: #555;
+  color: #444d56;
   vertical-align: middle;
-  background-color: #fcfcfc;
-  border: solid 1px #ccc;
-  border-bottom-color: #bbb;
+  background-color: #fafbfc;
+  border: solid 1px #c6cbd1;
+  border-bottom-color: #959da5;
   border-radius: 3px;
-  box-shadow: inset 0 -1px 0 #bbb;
+  box-shadow: inset 0 -1px 0 #959da5;
 }
 
 .markdown-body h1,
@@ -423,7 +478,7 @@
 .markdown-body h4 .octicon-link,
 .markdown-body h5 .octicon-link,
 .markdown-body h6 .octicon-link {
-  color: #000;
+  color: #1b1f23;
   vertical-align: middle;
   visibility: hidden;
 }
@@ -449,13 +504,13 @@
 .markdown-body h1 {
   padding-bottom: 0.3em;
   font-size: 2em;
-  border-bottom: 1px solid #eee;
+  border-bottom: 1px solid #eaecef;
 }
 
 .markdown-body h2 {
   padding-bottom: 0.3em;
   font-size: 1.5em;
-  border-bottom: 1px solid #eee;
+  border-bottom: 1px solid #eaecef;
 }
 
 .markdown-body h3 {
@@ -472,7 +527,7 @@
 
 .markdown-body h6 {
   font-size: 0.85em;
-  color: #777;
+  color: #6a737d;
 }
 
 .markdown-body ul,
@@ -505,7 +560,7 @@
   margin-top: 16px;
   font-size: 1em;
   font-style: italic;
-  font-weight: bold;
+  font-weight: 600;
 }
 
 .markdown-body dl dd {
@@ -520,22 +575,22 @@
 }
 
 .markdown-body table th {
-  font-weight: bold;
+  font-weight: 600;
 }
 
 .markdown-body table th,
 .markdown-body table td {
   padding: 6px 13px;
-  border: 1px solid #ddd;
+  border: 1px solid #dfe2e5;
 }
 
 .markdown-body table tr {
   background-color: #fff;
-  border-top: 1px solid #ccc;
+  border-top: 1px solid #c6cbd1;
 }
 
 .markdown-body table tr:nth-child(2n) {
-  background-color: #f8f8f8;
+  background-color: #f6f8fa;
 }
 
 .markdown-body img {
@@ -550,7 +605,7 @@
   padding-bottom: 0.2em;
   margin: 0;
   font-size: 85%;
-  background-color: rgba(0,0,0,0.04);
+  background-color: rgba(27,31,35,0.05);
   border-radius: 3px;
 }
 
@@ -589,7 +644,7 @@
   overflow: auto;
   font-size: 85%;
   line-height: 1.45;
-  background-color: #f7f7f7;
+  background-color: #f6f8fa;
   border-radius: 3px;
 }
 
@@ -610,57 +665,29 @@
   content: normal;
 }
 
-.markdown-body .pl-0 {
-  padding-left: 0 !important;
-}
-
-.markdown-body .pl-1 {
-  padding-left: 3px !important;
-}
-
-.markdown-body .pl-2 {
-  padding-left: 6px !important;
-}
-
-.markdown-body .pl-3 {
-  padding-left: 12px !important;
-}
-
-.markdown-body .pl-4 {
-  padding-left: 24px !important;
-}
-
-.markdown-body .pl-5 {
-  padding-left: 36px !important;
-}
-
-.markdown-body .pl-6 {
-  padding-left: 48px !important;
-}
-
 .markdown-body .full-commit .btn-outline:not(:disabled):hover {
-  color: #4078c0;
-  border: 1px solid #4078c0;
+  color: #005cc5;
+  border-color: #005cc5;
 }
 
 .markdown-body kbd {
   display: inline-block;
   padding: 3px 5px;
-  font: 11px Consolas, "Liberation Mono", Menlo, Courier, monospace;
+  font: 11px "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
   line-height: 10px;
-  color: #555;
+  color: #444d56;
   vertical-align: middle;
   background-color: #fcfcfc;
-  border: solid 1px #ccc;
-  border-bottom-color: #bbb;
+  border: solid 1px #c6cbd1;
+  border-bottom-color: #959da5;
   border-radius: 3px;
-  box-shadow: inset 0 -1px 0 #bbb;
+  box-shadow: inset 0 -1px 0 #959da5;
 }
 
 .markdown-body :checked+.radio-label {
   position: relative;
   z-index: 1;
-  border-color: #4078c0;
+  border-color: #0366d6;
 }
 
 .markdown-body .task-list-item {
diff --git a/package.json b/package.json
index 213bc66..4678155 100644
--- a/package.json
+++ b/package.json
@@ -29,6 +29,6 @@
     "stylesheet"
   ],
   "devDependencies": {
-    "generate-github-markdown-css": "^2.0.0"
+    "generate-github-markdown-css": "^2.1.0"
   }
 }

From 322382b0504213e608cba0449c95b3fe98ca8ec9 Mon Sep 17 00:00:00 2001
From: Sindre Sorhus 
Date: Sun, 26 Mar 2017 15:34:58 +0700
Subject: [PATCH 24/80] 2.5.0

---
 package.json | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package.json b/package.json
index 4678155..77c6951 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
 {
   "name": "github-markdown-css",
-  "version": "2.4.1",
+  "version": "2.5.0",
   "description": "The minimal amount of CSS to replicate the GitHub Markdown style",
   "license": "MIT",
   "repository": "sindresorhus/github-markdown-css",

From f7cd505bfae3468764cff97dd788ad4162b4cb9d Mon Sep 17 00:00:00 2001
From: Sindre Sorhus 
Date: Sun, 2 Apr 2017 10:37:09 +0700
Subject: [PATCH 25/80] Regenerate GitHub CSS

Fixes #43
---
 github-markdown.css | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/github-markdown.css b/github-markdown.css
index 3f4a3dd..ed8ab9e 100644
--- a/github-markdown.css
+++ b/github-markdown.css
@@ -8,7 +8,7 @@
   -webkit-text-size-adjust: 100%;
   line-height: 1.5;
   color: #24292e;
-  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
+  font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
   font-size: 16px;
   line-height: 1.5;
   word-wrap: break-word;

From 9981e776899a8dad2cb4c066362e622d7dd03a6a Mon Sep 17 00:00:00 2001
From: Sindre Sorhus 
Date: Sun, 2 Apr 2017 10:43:19 +0700
Subject: [PATCH 26/80] 2.6.0

---
 package.json | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package.json b/package.json
index 77c6951..4e14276 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
 {
   "name": "github-markdown-css",
-  "version": "2.5.0",
+  "version": "2.6.0",
   "description": "The minimal amount of CSS to replicate the GitHub Markdown style",
   "license": "MIT",
   "repository": "sindresorhus/github-markdown-css",

From 65728029255b04e7d2cdc1d26d0c3807dcb091e3 Mon Sep 17 00:00:00 2001
From: Sindre Sorhus 
Date: Sun, 11 Jun 2017 22:51:09 +0200
Subject: [PATCH 27/80] Regenerate GitHub CSS

---
 github-markdown.css | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/github-markdown.css b/github-markdown.css
index ed8ab9e..43da7b9 100644
--- a/github-markdown.css
+++ b/github-markdown.css
@@ -8,7 +8,7 @@
   -webkit-text-size-adjust: 100%;
   line-height: 1.5;
   color: #24292e;
-  font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
+  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
   font-size: 16px;
   line-height: 1.5;
   word-wrap: break-word;
@@ -677,11 +677,11 @@
   line-height: 10px;
   color: #444d56;
   vertical-align: middle;
-  background-color: #fcfcfc;
-  border: solid 1px #c6cbd1;
-  border-bottom-color: #959da5;
+  background-color: #fafbfc;
+  border: solid 1px #d1d5da;
+  border-bottom-color: #c6cbd1;
   border-radius: 3px;
-  box-shadow: inset 0 -1px 0 #959da5;
+  box-shadow: inset 0 -1px 0 #c6cbd1;
 }
 
 .markdown-body :checked+.radio-label {

From 576e8f647915d6783d7b0479b565fab92d6eac57 Mon Sep 17 00:00:00 2001
From: Sindre Sorhus 
Date: Sun, 11 Jun 2017 22:53:56 +0200
Subject: [PATCH 28/80] 2.7.0

---
 package.json | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package.json b/package.json
index 4e14276..40835f0 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
 {
   "name": "github-markdown-css",
-  "version": "2.6.0",
+  "version": "2.7.0",
   "description": "The minimal amount of CSS to replicate the GitHub Markdown style",
   "license": "MIT",
   "repository": "sindresorhus/github-markdown-css",

From c59b17b20d92513fb75ef4fb4a68a685839a9d23 Mon Sep 17 00:00:00 2001
From: Jeff Puckett 
Date: Thu, 15 Jun 2017 10:43:33 +0000
Subject: [PATCH 29/80] Document mobile responsiveness (#45)

---
 readme.md | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/readme.md b/readme.md
index 2e00e1d..5d148e2 100644
--- a/readme.md
+++ b/readme.md
@@ -18,9 +18,10 @@ $ npm install --save github-markdown-css
 
 ## Usage
 
-Import the `github-markdown.css` file and add a `markdown-body` class to the container of your rendered Markdown and set a width for it. GitHub uses `980px` width and `45px` padding.
+Import the `github-markdown.css` file and add a `markdown-body` class to the container of your rendered Markdown and set a width for it. GitHub uses `980px` width and `45px` padding, and `15px` padding for mobile.
 
 ```html
+
 
 
 

Unicorns

From db0ab249ce3e93ce2096ddc266ce4d0b1fbc3b76 Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Thu, 15 Jun 2017 12:45:30 +0200 Subject: [PATCH 30/80] Regenerate GitHub CSS --- github-markdown.css | 68 ++++++++++++++++++++------------------------- readme.md | 2 +- 2 files changed, 31 insertions(+), 39 deletions(-) diff --git a/github-markdown.css b/github-markdown.css index 43da7b9..57c63c7 100644 --- a/github-markdown.css +++ b/github-markdown.css @@ -15,30 +15,30 @@ } .markdown-body .pl-c { - color: #969896; + color: #6a737d; } .markdown-body .pl-c1, .markdown-body .pl-s .pl-v { - color: #0086b3; + color: #005cc5; } .markdown-body .pl-e, .markdown-body .pl-en { - color: #795da3; + color: #6f42c1; } .markdown-body .pl-smi, .markdown-body .pl-s .pl-s1 { - color: #333; + color: #24292e; } .markdown-body .pl-ent { - color: #63a35c; + color: #22863a; } .markdown-body .pl-k { - color: #a71d5d; + color: #d73a49; } .markdown-body .pl-s, @@ -48,26 +48,26 @@ .markdown-body .pl-sr .pl-cce, .markdown-body .pl-sr .pl-sre, .markdown-body .pl-sr .pl-sra { - color: #183691; + color: #032f62; } .markdown-body .pl-v, .markdown-body .pl-smw { - color: #ed6a43; + color: #e36209; } .markdown-body .pl-bu { - color: #b52a1d; + color: #b31d28; } .markdown-body .pl-ii { - color: #f8f8f8; - background-color: #b52a1d; + color: #fafbfc; + background-color: #b31d28; } .markdown-body .pl-c2 { - color: #f8f8f8; - background-color: #b52a1d; + color: #fafbfc; + background-color: #d73a49; } .markdown-body .pl-c2::before { @@ -76,74 +76,66 @@ .markdown-body .pl-sr .pl-cce { font-weight: bold; - color: #63a35c; + color: #22863a; } .markdown-body .pl-ml { - color: #693a17; + color: #735c0f; } .markdown-body .pl-mh, .markdown-body .pl-mh .pl-en, .markdown-body .pl-ms { font-weight: bold; - color: #1d3e81; -} - -.markdown-body .pl-mq { - color: #008080; + color: #005cc5; } .markdown-body .pl-mi { font-style: italic; - color: #333; + color: #24292e; } .markdown-body .pl-mb { font-weight: bold; - color: #333; + color: #24292e; } .markdown-body .pl-md { - color: #bd2c00; - background-color: #ffecec; + color: #b31d28; + background-color: #ffeef0; } .markdown-body .pl-mi1 { - color: #55a532; - background-color: #eaffea; + color: #22863a; + background-color: #f0fff4; } .markdown-body .pl-mc { - color: #ef9700; - background-color: #ffe3b4; + color: #e36209; + background-color: #ffebda; } .markdown-body .pl-mi2 { - color: #d8d8d8; - background-color: #808080; + color: #f6f8fa; + background-color: #005cc5; } .markdown-body .pl-mdr { font-weight: bold; - color: #795da3; -} - -.markdown-body .pl-mo { - color: #1d3e81; + color: #6f42c1; } .markdown-body .pl-ba { - color: #595e62; + color: #586069; } .markdown-body .pl-sg { - color: #c0c0c0; + color: #959da5; } .markdown-body .pl-corl { text-decoration: underline; - color: #183691; + color: #032f62; } .markdown-body .octicon { diff --git a/readme.md b/readme.md index 5d148e2..3779d14 100644 --- a/readme.md +++ b/readme.md @@ -31,7 +31,7 @@ Import the `github-markdown.css` file and add a `markdown-body` class to the con margin: 0 auto; padding: 45px; } - + @media (max-width: 767px) { .markdown-body { padding: 15px; From 3fc8bc8a14eabf40448027b56e82238220050300 Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Thu, 15 Jun 2017 12:47:16 +0200 Subject: [PATCH 31/80] 2.8.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 40835f0..f1ad9e6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "github-markdown-css", - "version": "2.7.0", + "version": "2.8.0", "description": "The minimal amount of CSS to replicate the GitHub Markdown style", "license": "MIT", "repository": "sindresorhus/github-markdown-css", From 3d272011a5da44de87a8a8bcb8605b6ab12e49f3 Mon Sep 17 00:00:00 2001 From: Danny Guo Date: Thu, 17 Aug 2017 21:17:17 -0500 Subject: [PATCH 32/80] Add a link to the CDNJS page (#47) --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index 3779d14..d7ef7d1 100644 --- a/readme.md +++ b/readme.md @@ -9,7 +9,7 @@ ## Install -Download [manually](https://raw.githubusercontent.com/sindresorhus/github-markdown-css/gh-pages/github-markdown.css) or with npm: +Download [manually](https://raw.githubusercontent.com/sindresorhus/github-markdown-css/gh-pages/github-markdown.css), from [CDNJS](https://cdnjs.com/libraries/github-markdown-css), or with npm: ``` $ npm install --save github-markdown-css From a5b85d18214c07f492ff73bdf4c2a5fc88138e89 Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Sun, 15 Oct 2017 13:43:38 +0700 Subject: [PATCH 33/80] Regenerate GitHub CSS Closes #49 --- github-markdown.css | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/github-markdown.css b/github-markdown.css index 57c63c7..e197e59 100644 --- a/github-markdown.css +++ b/github-markdown.css @@ -335,7 +335,8 @@ .markdown-body pre { margin-top: 0; margin-bottom: 0; - font: 12px "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace; + font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace; + font-size: 12px; } .markdown-body .octicon { @@ -591,6 +592,14 @@ background-color: #fff; } +.markdown-body img[align=right] { + padding-left: 20px; +} + +.markdown-body img[align=left] { + padding-right: 20px; +} + .markdown-body code { padding: 0; padding-top: 0.2em; From 09cdf605dac341e359fd828463a79face98a265e Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Sun, 15 Oct 2017 13:55:26 +0700 Subject: [PATCH 34/80] Meta tweaks --- .editorconfig | 5 +--- .gitattributes | 1 + .gitignore | 1 + .npmrc | 1 + license | 20 ++++------------ package.json | 64 +++++++++++++++++++++++++------------------------- readme.md | 4 ++-- 7 files changed, 42 insertions(+), 54 deletions(-) create mode 100644 .npmrc diff --git a/.editorconfig b/.editorconfig index 86c8f59..1c6314a 100644 --- a/.editorconfig +++ b/.editorconfig @@ -7,9 +7,6 @@ charset = utf-8 trim_trailing_whitespace = true insert_final_newline = true -[package.json] +[*.yml] indent_style = space indent_size = 2 - -[*.md] -trim_trailing_whitespace = false diff --git a/.gitattributes b/.gitattributes index 176a458..391f0a4 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1 +1,2 @@ * text=auto +*.js text eol=lf diff --git a/.gitignore b/.gitignore index 3c3629e..239ecff 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ node_modules +yarn.lock diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000..43c97e7 --- /dev/null +++ b/.npmrc @@ -0,0 +1 @@ +package-lock=false diff --git a/license b/license index 654d0bf..e7af2f7 100644 --- a/license +++ b/license @@ -1,21 +1,9 @@ -The MIT License (MIT) +MIT License Copyright (c) Sindre Sorhus (sindresorhus.com) -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/package.json b/package.json index f1ad9e6..883e697 100644 --- a/package.json +++ b/package.json @@ -1,34 +1,34 @@ { - "name": "github-markdown-css", - "version": "2.8.0", - "description": "The minimal amount of CSS to replicate the GitHub Markdown style", - "license": "MIT", - "repository": "sindresorhus/github-markdown-css", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "main": "github-markdown.css", - "engines": { - "node": ">=0.10.0" - }, - "scripts": { - "make": "github-markdown-css > github-markdown.css" - }, - "files": [ - "github-markdown.css" - ], - "keywords": [ - "browser", - "github", - "markdown", - "md", - "css", - "style", - "stylesheet" - ], - "devDependencies": { - "generate-github-markdown-css": "^2.1.0" - } + "name": "github-markdown-css", + "version": "2.8.0", + "description": "The minimal amount of CSS to replicate the GitHub Markdown style", + "license": "MIT", + "repository": "sindresorhus/github-markdown-css", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "main": "github-markdown.css", + "engines": { + "node": ">=0.10.0" + }, + "scripts": { + "make": "github-markdown-css > github-markdown.css" + }, + "files": [ + "github-markdown.css" + ], + "keywords": [ + "browser", + "github", + "markdown", + "md", + "css", + "style", + "stylesheet" + ], + "devDependencies": { + "generate-github-markdown-css": "^2.1.0" + } } diff --git a/readme.md b/readme.md index d7ef7d1..790cef5 100644 --- a/readme.md +++ b/readme.md @@ -12,7 +12,7 @@ Download [manually](https://raw.githubusercontent.com/sindresorhus/github-markdown-css/gh-pages/github-markdown.css), from [CDNJS](https://cdnjs.com/libraries/github-markdown-css), or with npm: ``` -$ npm install --save github-markdown-css +$ npm install github-markdown-css ``` @@ -57,4 +57,4 @@ Run `npm run make` to update the CSS. ## License -MIT © [Sindre Sorhus](http://sindresorhus.com) +MIT © [Sindre Sorhus](https://sindresorhus.com) From 7308c9ab9a5b019a2ebd52d59d9b2ca1df5cc2a4 Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Sun, 15 Oct 2017 13:56:03 +0700 Subject: [PATCH 35/80] 2.9.0 --- package.json | 64 ++++++++++++++++++++++++++-------------------------- 1 file changed, 32 insertions(+), 32 deletions(-) diff --git a/package.json b/package.json index 883e697..a652bcf 100644 --- a/package.json +++ b/package.json @@ -1,34 +1,34 @@ { - "name": "github-markdown-css", - "version": "2.8.0", - "description": "The minimal amount of CSS to replicate the GitHub Markdown style", - "license": "MIT", - "repository": "sindresorhus/github-markdown-css", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "main": "github-markdown.css", - "engines": { - "node": ">=0.10.0" - }, - "scripts": { - "make": "github-markdown-css > github-markdown.css" - }, - "files": [ - "github-markdown.css" - ], - "keywords": [ - "browser", - "github", - "markdown", - "md", - "css", - "style", - "stylesheet" - ], - "devDependencies": { - "generate-github-markdown-css": "^2.1.0" - } + "name": "github-markdown-css", + "version": "2.9.0", + "description": "The minimal amount of CSS to replicate the GitHub Markdown style", + "license": "MIT", + "repository": "sindresorhus/github-markdown-css", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "main": "github-markdown.css", + "engines": { + "node": ">=0.10.0" + }, + "scripts": { + "make": "github-markdown-css > github-markdown.css" + }, + "files": [ + "github-markdown.css" + ], + "keywords": [ + "browser", + "github", + "markdown", + "md", + "css", + "style", + "stylesheet" + ], + "devDependencies": { + "generate-github-markdown-css": "^2.1.0" + } } From e91ece348fd1828c1890c06df59a499214e455b7 Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Sun, 31 Dec 2017 13:54:15 +0100 Subject: [PATCH 36/80] Regenerate GitHub CSS --- github-markdown.css | 24 +++++------------------- 1 file changed, 5 insertions(+), 19 deletions(-) diff --git a/github-markdown.css b/github-markdown.css index e197e59..c5f9777 100644 --- a/github-markdown.css +++ b/github-markdown.css @@ -146,7 +146,6 @@ .markdown-body a { background-color: transparent; - -webkit-text-decoration-skip: objects; } .markdown-body a:active, @@ -171,10 +170,6 @@ border-style: none; } -.markdown-body svg:not(:root) { - overflow: hidden; -} - .markdown-body code, .markdown-body kbd, .markdown-body pre { @@ -536,6 +531,10 @@ margin-bottom: 0; } +.markdown-body li { + word-wrap: break-all; +} + .markdown-body li>p { margin-top: 16px; } @@ -601,21 +600,13 @@ } .markdown-body code { - padding: 0; - padding-top: 0.2em; - padding-bottom: 0.2em; + padding: 0.2em 0.4em; margin: 0; font-size: 85%; background-color: rgba(27,31,35,0.05); border-radius: 3px; } -.markdown-body code::before, -.markdown-body code::after { - letter-spacing: -0.2em; - content: "\00a0"; -} - .markdown-body pre { word-wrap: normal; } @@ -661,11 +652,6 @@ border: 0; } -.markdown-body pre code::before, -.markdown-body pre code::after { - content: normal; -} - .markdown-body .full-commit .btn-outline:not(:disabled):hover { color: #005cc5; border-color: #005cc5; From 4d639a534aa9b8856a3b8bcc43239ea48d68d1fc Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Sun, 31 Dec 2017 13:55:32 +0100 Subject: [PATCH 37/80] 2.10.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index a652bcf..62e402d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "github-markdown-css", - "version": "2.9.0", + "version": "2.10.0", "description": "The minimal amount of CSS to replicate the GitHub Markdown style", "license": "MIT", "repository": "sindresorhus/github-markdown-css", From 0d25bb4525eab80cbe95a2d18977a2ad91a7299e Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Thu, 31 Jan 2019 19:49:28 +0700 Subject: [PATCH 38/80] Regenerate GitHub CSS --- github-markdown.css | 633 +++++++++++++++++++++++++++++++------------- package.json | 64 ++--- 2 files changed, 479 insertions(+), 218 deletions(-) diff --git a/github-markdown.css b/github-markdown.css index c5f9777..aa85199 100644 --- a/github-markdown.css +++ b/github-markdown.css @@ -1,14 +1,59 @@ -@font-face { - font-family: octicons-link; + +font-family: octicons-link; src: url(data:font/woff;charset=utf-8;base64,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) format('woff'); } +.markdown-body .octicon { + display: inline-block; + fill: currentColor; + vertical-align: text-bottom; +} + +.markdown-body .anchor { + float: left; + line-height: 1; + margin-left: -20px; + padding-right: 4px; +} + +.markdown-body .anchor:focus { + outline: none; +} + +.markdown-body h1 .octicon-link, +.markdown-body h2 .octicon-link, +.markdown-body h3 .octicon-link, +.markdown-body h4 .octicon-link, +.markdown-body h5 .octicon-link, +.markdown-body h6 .octicon-link { + color: #1b1f23; + vertical-align: middle; + visibility: hidden; +} + +.markdown-body h1:hover .anchor, +.markdown-body h2:hover .anchor, +.markdown-body h3:hover .anchor, +.markdown-body h4:hover .anchor, +.markdown-body h5:hover .anchor, +.markdown-body h6:hover .anchor { + text-decoration: none; +} + +.markdown-body h1:hover .anchor .octicon-link, +.markdown-body h2:hover .anchor .octicon-link, +.markdown-body h3:hover .anchor .octicon-link, +.markdown-body h4:hover .anchor .octicon-link, +.markdown-body h5:hover .anchor .octicon-link, +.markdown-body h6:hover .anchor .octicon-link { + visibility: visible; +} .markdown-body { -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; - line-height: 1.5; color: #24292e; - font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; + line-height: 1.5; + font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol; font-size: 16px; line-height: 1.5; word-wrap: break-word; @@ -28,8 +73,8 @@ color: #6f42c1; } -.markdown-body .pl-smi, -.markdown-body .pl-s .pl-s1 { +.markdown-body .pl-s .pl-s1, +.markdown-body .pl-smi { color: #24292e; } @@ -41,18 +86,18 @@ color: #d73a49; } -.markdown-body .pl-s, .markdown-body .pl-pds, +.markdown-body .pl-s, .markdown-body .pl-s .pl-pse .pl-s1, .markdown-body .pl-sr, .markdown-body .pl-sr .pl-cce, -.markdown-body .pl-sr .pl-sre, -.markdown-body .pl-sr .pl-sra { +.markdown-body .pl-sr .pl-sra, +.markdown-body .pl-sr .pl-sre { color: #032f62; } -.markdown-body .pl-v, -.markdown-body .pl-smw { +.markdown-body .pl-smw, +.markdown-body .pl-v { color: #e36209; } @@ -61,22 +106,22 @@ } .markdown-body .pl-ii { - color: #fafbfc; background-color: #b31d28; + color: #fafbfc; } .markdown-body .pl-c2 { - color: #fafbfc; background-color: #d73a49; + color: #fafbfc; } -.markdown-body .pl-c2::before { +.markdown-body .pl-c2:before { content: "^M"; } .markdown-body .pl-sr .pl-cce { - font-weight: bold; color: #22863a; + font-weight: 700; } .markdown-body .pl-ml { @@ -86,43 +131,43 @@ .markdown-body .pl-mh, .markdown-body .pl-mh .pl-en, .markdown-body .pl-ms { - font-weight: bold; color: #005cc5; + font-weight: 700; } .markdown-body .pl-mi { - font-style: italic; color: #24292e; + font-style: italic; } .markdown-body .pl-mb { - font-weight: bold; color: #24292e; + font-weight: 700; } .markdown-body .pl-md { - color: #b31d28; background-color: #ffeef0; + color: #b31d28; } .markdown-body .pl-mi1 { - color: #22863a; background-color: #f0fff4; + color: #22863a; } .markdown-body .pl-mc { - color: #e36209; background-color: #ffebda; + color: #e36209; } .markdown-body .pl-mi2 { - color: #f6f8fa; background-color: #005cc5; + color: #f6f8fa; } .markdown-body .pl-mdr { - font-weight: bold; color: #6f42c1; + font-weight: 700; } .markdown-body .pl-ba { @@ -134,14 +179,16 @@ } .markdown-body .pl-corl { - text-decoration: underline; color: #032f62; + text-decoration: underline; } -.markdown-body .octicon { - display: inline-block; - vertical-align: text-top; - fill: currentColor; +.markdown-body details { + display: block; +} + +.markdown-body summary { + display: list-item; } .markdown-body a { @@ -155,15 +202,12 @@ .markdown-body strong { font-weight: inherit; -} - -.markdown-body strong { font-weight: bolder; } .markdown-body h1 { font-size: 2em; - margin: 0.67em 0; + margin: .67em 0; } .markdown-body img { @@ -173,7 +217,7 @@ .markdown-body code, .markdown-body kbd, .markdown-body pre { - font-family: monospace, monospace; + font-family: monospace,monospace; font-size: 1em; } @@ -192,7 +236,7 @@ overflow: visible; } -.markdown-body [type="checkbox"] { +.markdown-body [type=checkbox] { box-sizing: border-box; padding: 0; } @@ -221,28 +265,28 @@ } .markdown-body hr { - height: 0; - margin: 15px 0; - overflow: hidden; background: transparent; border: 0; border-bottom: 1px solid #dfe2e5; + height: 0; + margin: 15px 0; + overflow: hidden; } -.markdown-body hr::before { - display: table; +.markdown-body hr:before { content: ""; + display: table; } -.markdown-body hr::after { - display: table; +.markdown-body hr:after { clear: both; content: ""; + display: table; } .markdown-body table { - border-spacing: 0; border-collapse: collapse; + border-spacing: 0; } .markdown-body td, @@ -250,60 +294,73 @@ padding: 0; } +.markdown-body details summary { + cursor: pointer; +} + .markdown-body h1, .markdown-body h2, .markdown-body h3, .markdown-body h4, .markdown-body h5, .markdown-body h6 { - margin-top: 0; margin-bottom: 0; + margin-top: 0; } .markdown-body h1 { font-size: 32px; +} + +.markdown-body h1, +.markdown-body h2 { font-weight: 600; } .markdown-body h2 { font-size: 24px; - font-weight: 600; } .markdown-body h3 { font-size: 20px; +} + +.markdown-body h3, +.markdown-body h4 { font-weight: 600; } .markdown-body h4 { font-size: 16px; - font-weight: 600; } .markdown-body h5 { font-size: 14px; +} + +.markdown-body h5, +.markdown-body h6 { font-weight: 600; } .markdown-body h6 { font-size: 12px; - font-weight: 600; } .markdown-body p { - margin-top: 0; margin-bottom: 10px; + margin-top: 0; } .markdown-body blockquote { margin: 0; } -.markdown-body ul, -.markdown-body ol { - padding-left: 0; - margin-top: 0; +.markdown-body ol, +.markdown-body ul { margin-bottom: 0; + margin-top: 0; + padding-left: 0; } .markdown-body ol ol, @@ -311,10 +368,10 @@ list-style-type: lower-roman; } -.markdown-body ul ul ol, -.markdown-body ul ol ol, +.markdown-body ol ol ol, .markdown-body ol ul ol, -.markdown-body ol ol ol { +.markdown-body ul ol ol, +.markdown-body ul ul ol { list-style-type: lower-alpha; } @@ -322,67 +379,133 @@ margin-left: 0; } -.markdown-body code { - font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace; +.markdown-body code, +.markdown-body pre { + font-family: SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace; font-size: 12px; } .markdown-body pre { - margin-top: 0; margin-bottom: 0; - font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace; - font-size: 12px; + margin-top: 0; } -.markdown-body .octicon { - vertical-align: text-bottom; +.markdown-body input::-webkit-inner-spin-button, +.markdown-body input::-webkit-outer-spin-button { + -webkit-appearance: none; + appearance: none; + margin: 0; +} + +.markdown-body .border { + border: 1px solid #e1e4e8!important; +} + +.markdown-body .border-0 { + border: 0!important; +} + +.markdown-body .border-bottom { + border-bottom: 1px solid #e1e4e8!important; +} + +.markdown-body .rounded-1 { + border-radius: 3px!important; +} + +.markdown-body .bg-white { + background-color: #fff!important; +} + +.markdown-body .bg-gray-light { + background-color: #fafbfc!important; +} + +.markdown-body .text-gray-light { + color: #6a737d!important; +} + +.markdown-body .mb-0 { + margin-bottom: 0!important; +} + +.markdown-body .my-2 { + margin-bottom: 8px!important; + margin-top: 8px!important; } .markdown-body .pl-0 { - padding-left: 0 !important; + padding-left: 0!important; +} + +.markdown-body .py-0 { + padding-bottom: 0!important; + padding-top: 0!important; } .markdown-body .pl-1 { - padding-left: 4px !important; + padding-left: 4px!important; } .markdown-body .pl-2 { - padding-left: 8px !important; + padding-left: 8px!important; } -.markdown-body .pl-3 { - padding-left: 16px !important; +.markdown-body .py-2 { + padding-bottom: 8px!important; + padding-top: 8px!important; +} + +.markdown-body .pl-3, +.markdown-body .px-3 { + padding-left: 16px!important; +} + +.markdown-body .px-3 { + padding-right: 16px!important; } .markdown-body .pl-4 { - padding-left: 24px !important; + padding-left: 24px!important; } .markdown-body .pl-5 { - padding-left: 32px !important; + padding-left: 32px!important; } .markdown-body .pl-6 { - padding-left: 40px !important; + padding-left: 40px!important; } -.markdown-body::before { - display: table; - content: ""; +.markdown-body .f6 { + font-size: 12px!important; +} + +.markdown-body .lh-condensed { + line-height: 1.25!important; +} + +.markdown-body .text-bold { + font-weight: 600!important; } -.markdown-body::after { +.markdown-body:before { + content: ""; display: table; +} + +.markdown-body:after { clear: both; content: ""; + display: table; } -.markdown-body>*:first-child { - margin-top: 0 !important; +.markdown-body>:first-child { + margin-top: 0!important; } -.markdown-body>*:last-child { - margin-bottom: 0 !important; +.markdown-body>:last-child { + margin-bottom: 0!important; } .markdown-body a:not([href]) { @@ -390,40 +513,29 @@ text-decoration: none; } -.markdown-body .anchor { - float: left; - padding-right: 4px; - margin-left: -20px; - line-height: 1; -} - -.markdown-body .anchor:focus { - outline: none; -} - -.markdown-body p, .markdown-body blockquote, -.markdown-body ul, -.markdown-body ol, .markdown-body dl, +.markdown-body ol, +.markdown-body p, +.markdown-body pre, .markdown-body table, -.markdown-body pre { - margin-top: 0; +.markdown-body ul { margin-bottom: 16px; + margin-top: 0; } .markdown-body hr { - height: 0.25em; - padding: 0; - margin: 24px 0; background-color: #e1e4e8; border: 0; + height: .25em; + margin: 24px 0; + padding: 0; } .markdown-body blockquote { - padding: 0 1em; + border-left: .25em solid #dfe2e5; color: #6a737d; - border-left: 0.25em solid #dfe2e5; + padding: 0 1em; } .markdown-body blockquote>:first-child { @@ -435,17 +547,17 @@ } .markdown-body kbd { - display: inline-block; - padding: 3px 5px; - font-size: 11px; - line-height: 10px; - color: #444d56; - vertical-align: middle; background-color: #fafbfc; - border: solid 1px #c6cbd1; + border: 1px solid #c6cbd1; border-bottom-color: #959da5; border-radius: 3px; box-shadow: inset 0 -1px 0 #959da5; + color: #444d56; + display: inline-block; + font-size: 11px; + line-height: 10px; + padding: 3px 5px; + vertical-align: middle; } .markdown-body h1, @@ -454,51 +566,24 @@ .markdown-body h4, .markdown-body h5, .markdown-body h6 { - margin-top: 24px; - margin-bottom: 16px; font-weight: 600; line-height: 1.25; -} - -.markdown-body h1 .octicon-link, -.markdown-body h2 .octicon-link, -.markdown-body h3 .octicon-link, -.markdown-body h4 .octicon-link, -.markdown-body h5 .octicon-link, -.markdown-body h6 .octicon-link { - color: #1b1f23; - vertical-align: middle; - visibility: hidden; -} - -.markdown-body h1:hover .anchor, -.markdown-body h2:hover .anchor, -.markdown-body h3:hover .anchor, -.markdown-body h4:hover .anchor, -.markdown-body h5:hover .anchor, -.markdown-body h6:hover .anchor { - text-decoration: none; -} - -.markdown-body h1:hover .anchor .octicon-link, -.markdown-body h2:hover .anchor .octicon-link, -.markdown-body h3:hover .anchor .octicon-link, -.markdown-body h4:hover .anchor .octicon-link, -.markdown-body h5:hover .anchor .octicon-link, -.markdown-body h6:hover .anchor .octicon-link { - visibility: visible; + margin-bottom: 16px; + margin-top: 24px; } .markdown-body h1 { - padding-bottom: 0.3em; font-size: 2em; +} + +.markdown-body h1, +.markdown-body h2 { border-bottom: 1px solid #eaecef; + padding-bottom: .3em; } .markdown-body h2 { - padding-bottom: 0.3em; font-size: 1.5em; - border-bottom: 1px solid #eaecef; } .markdown-body h3 { @@ -510,25 +595,25 @@ } .markdown-body h5 { - font-size: 0.875em; + font-size: .875em; } .markdown-body h6 { - font-size: 0.85em; color: #6a737d; + font-size: .85em; } -.markdown-body ul, -.markdown-body ol { +.markdown-body ol, +.markdown-body ul { padding-left: 2em; } -.markdown-body ul ul, -.markdown-body ul ol, .markdown-body ol ol, -.markdown-body ol ul { - margin-top: 0; +.markdown-body ol ul, +.markdown-body ul ol, +.markdown-body ul ul { margin-bottom: 0; + margin-top: 0; } .markdown-body li { @@ -540,7 +625,7 @@ } .markdown-body li+li { - margin-top: 0.25em; + margin-top: .25em; } .markdown-body dl { @@ -548,32 +633,32 @@ } .markdown-body dl dt { - padding: 0; - margin-top: 16px; font-size: 1em; font-style: italic; font-weight: 600; + margin-top: 16px; + padding: 0; } .markdown-body dl dd { - padding: 0 16px; margin-bottom: 16px; + padding: 0 16px; } .markdown-body table { display: block; - width: 100%; overflow: auto; + width: 100%; } .markdown-body table th { font-weight: 600; } -.markdown-body table th, -.markdown-body table td { - padding: 6px 13px; +.markdown-body table td, +.markdown-body table th { border: 1px solid #dfe2e5; + padding: 6px 13px; } .markdown-body table tr { @@ -586,9 +671,9 @@ } .markdown-body img { - max-width: 100%; - box-sizing: content-box; background-color: #fff; + box-sizing: content-box; + max-width: 100%; } .markdown-body img[align=right] { @@ -600,11 +685,11 @@ } .markdown-body code { - padding: 0.2em 0.4em; - margin: 0; - font-size: 85%; - background-color: rgba(27,31,35,0.05); + background-color: rgba(27,31,35,.05); border-radius: 3px; + font-size: 85%; + margin: 0; + padding: .2em .4em; } .markdown-body pre { @@ -612,13 +697,13 @@ } .markdown-body pre>code { - padding: 0; - margin: 0; - font-size: 100%; - word-break: normal; - white-space: pre; background: transparent; border: 0; + font-size: 100%; + margin: 0; + padding: 0; + white-space: pre; + word-break: normal; } .markdown-body .highlight { @@ -632,49 +717,173 @@ .markdown-body .highlight pre, .markdown-body pre { - padding: 16px; - overflow: auto; - font-size: 85%; - line-height: 1.45; background-color: #f6f8fa; border-radius: 3px; + font-size: 85%; + line-height: 1.45; + overflow: auto; + padding: 16px; } .markdown-body pre code { + background-color: transparent; + border: 0; display: inline; + line-height: inherit; + margin: 0; max-width: auto; + overflow: visible; padding: 0; - margin: 0; + word-wrap: normal; +} + +.markdown-body .commit-tease-sha { + color: #444d56; + display: inline-block; + font-family: SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace; + font-size: 90%; +} + +.markdown-body .blob-wrapper { + border-bottom-left-radius: 3px; + border-bottom-right-radius: 3px; + overflow-x: auto; + overflow-y: hidden; +} + +.markdown-body .blob-wrapper-embedded { + max-height: 240px; + overflow-y: auto; +} + +.markdown-body .blob-num { + -moz-user-select: none; + -ms-user-select: none; + -webkit-user-select: none; + color: rgba(27,31,35,.3); + cursor: pointer; + font-family: SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace; + font-size: 12px; + line-height: 20px; + min-width: 50px; + padding-left: 10px; + padding-right: 10px; + text-align: right; + user-select: none; + vertical-align: top; + white-space: nowrap; + width: 1%; +} + +.markdown-body .blob-num:hover { + color: rgba(27,31,35,.6); +} + +.markdown-body .blob-num:before { + content: attr(data-line-number); +} + +.markdown-body .blob-code { + line-height: 20px; + padding-left: 10px; + padding-right: 10px; + position: relative; + vertical-align: top; +} + +.markdown-body .blob-code-inner { + color: #24292e; + font-family: SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace; + font-size: 12px; overflow: visible; - line-height: inherit; + white-space: pre; word-wrap: normal; - background-color: transparent; - border: 0; } -.markdown-body .full-commit .btn-outline:not(:disabled):hover { - color: #005cc5; - border-color: #005cc5; +.markdown-body .pl-token.active, +.markdown-body .pl-token:hover { + background: #ffea7f; + cursor: pointer; } .markdown-body kbd { - display: inline-block; - padding: 3px 5px; - font: 11px "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace; - line-height: 10px; - color: #444d56; - vertical-align: middle; background-color: #fafbfc; - border: solid 1px #d1d5da; + border: 1px solid #d1d5da; border-bottom-color: #c6cbd1; border-radius: 3px; box-shadow: inset 0 -1px 0 #c6cbd1; + color: #444d56; + display: inline-block; + font: 11px SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace; + line-height: 10px; + padding: 3px 5px; + vertical-align: middle; } .markdown-body :checked+.radio-label { + border-color: #0366d6; position: relative; z-index: 1; - border-color: #0366d6; +} + +.markdown-body .tab-size[data-tab-size="1"] { + -moz-tab-size: 1; + tab-size: 1; +} + +.markdown-body .tab-size[data-tab-size="2"] { + -moz-tab-size: 2; + tab-size: 2; +} + +.markdown-body .tab-size[data-tab-size="3"] { + -moz-tab-size: 3; + tab-size: 3; +} + +.markdown-body .tab-size[data-tab-size="4"] { + -moz-tab-size: 4; + tab-size: 4; +} + +.markdown-body .tab-size[data-tab-size="5"] { + -moz-tab-size: 5; + tab-size: 5; +} + +.markdown-body .tab-size[data-tab-size="6"] { + -moz-tab-size: 6; + tab-size: 6; +} + +.markdown-body .tab-size[data-tab-size="7"] { + -moz-tab-size: 7; + tab-size: 7; +} + +.markdown-body .tab-size[data-tab-size="8"] { + -moz-tab-size: 8; + tab-size: 8; +} + +.markdown-body .tab-size[data-tab-size="9"] { + -moz-tab-size: 9; + tab-size: 9; +} + +.markdown-body .tab-size[data-tab-size="10"] { + -moz-tab-size: 10; + tab-size: 10; +} + +.markdown-body .tab-size[data-tab-size="11"] { + -moz-tab-size: 11; + tab-size: 11; +} + +.markdown-body .tab-size[data-tab-size="12"] { + -moz-tab-size: 12; + tab-size: 12; } .markdown-body .task-list-item { @@ -686,10 +895,62 @@ } .markdown-body .task-list-item input { - margin: 0 0.2em 0.25em -1.6em; + margin: 0 .2em .25em -1.6em; vertical-align: middle; } .markdown-body hr { border-bottom-color: #eee; } + +.markdown-body .pl-0 { + padding-left: 0!important; +} + +.markdown-body .pl-1 { + padding-left: 4px!important; +} + +.markdown-body .pl-2 { + padding-left: 8px!important; +} + +.markdown-body .pl-3 { + padding-left: 16px!important; +} + +.markdown-body .pl-4 { + padding-left: 24px!important; +} + +.markdown-body .pl-5 { + padding-left: 32px!important; +} + +.markdown-body .pl-6 { + padding-left: 40px!important; +} + +.markdown-body .pl-7 { + padding-left: 48px!important; +} + +.markdown-body .pl-8 { + padding-left: 64px!important; +} + +.markdown-body .pl-9 { + padding-left: 80px!important; +} + +.markdown-body .pl-10 { + padding-left: 96px!important; +} + +.markdown-body .pl-11 { + padding-left: 112px!important; +} + +.markdown-body .pl-12 { + padding-left: 128px!important; +} diff --git a/package.json b/package.json index 62e402d..bdfc5f3 100644 --- a/package.json +++ b/package.json @@ -1,34 +1,34 @@ { - "name": "github-markdown-css", - "version": "2.10.0", - "description": "The minimal amount of CSS to replicate the GitHub Markdown style", - "license": "MIT", - "repository": "sindresorhus/github-markdown-css", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "main": "github-markdown.css", - "engines": { - "node": ">=0.10.0" - }, - "scripts": { - "make": "github-markdown-css > github-markdown.css" - }, - "files": [ - "github-markdown.css" - ], - "keywords": [ - "browser", - "github", - "markdown", - "md", - "css", - "style", - "stylesheet" - ], - "devDependencies": { - "generate-github-markdown-css": "^2.1.0" - } + "name": "github-markdown-css", + "version": "2.10.0", + "description": "The minimal amount of CSS to replicate the GitHub Markdown style", + "license": "MIT", + "repository": "sindresorhus/github-markdown-css", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "main": "github-markdown.css", + "engines": { + "node": ">=0.10.0" + }, + "scripts": { + "make": "github-markdown-css > github-markdown.css" + }, + "files": [ + "github-markdown.css" + ], + "keywords": [ + "browser", + "github", + "markdown", + "md", + "css", + "style", + "stylesheet" + ], + "devDependencies": { + "generate-github-markdown-css": "^3.0.1" + } } From 7b0d2e1014d316853bf52312314ab0c02cf93529 Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Thu, 31 Jan 2019 23:39:10 +0700 Subject: [PATCH 39/80] Drop support for Bower --- .gitattributes | 3 +-- bower.json | 19 ------------------- 2 files changed, 1 insertion(+), 21 deletions(-) delete mode 100644 bower.json diff --git a/.gitattributes b/.gitattributes index 391f0a4..6313b56 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,2 +1 @@ -* text=auto -*.js text eol=lf +* text=auto eol=lf diff --git a/bower.json b/bower.json deleted file mode 100644 index 6b16432..0000000 --- a/bower.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "name": "github-markdown-css", - "description": "The minimal amount of CSS to replicate the GitHub Markdown style", - "license": "MIT", - "main": "github-markdown.css", - "keywords": [ - "github", - "markdown", - "md", - "css", - "style", - "stylesheet" - ], - "ignore": [ - "**/.*", - "package.json", - "index.html" - ] -} From e3c7e7f89d7a76a516a1f2902c560683b07dadb0 Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Thu, 31 Jan 2019 23:41:47 +0700 Subject: [PATCH 40/80] 3.0.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index bdfc5f3..85924af 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "github-markdown-css", - "version": "2.10.0", + "version": "3.0.0", "description": "The minimal amount of CSS to replicate the GitHub Markdown style", "license": "MIT", "repository": "sindresorhus/github-markdown-css", From 12ab1315532a378ee547269442813fae131912df Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Fri, 1 Feb 2019 16:38:11 +0700 Subject: [PATCH 41/80] Fix invalid CSS caused by copy-paste mistake Fixes #63 --- github-markdown.css | 5 +++-- package.json | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/github-markdown.css b/github-markdown.css index aa85199..6085db2 100644 --- a/github-markdown.css +++ b/github-markdown.css @@ -1,5 +1,5 @@ - -font-family: octicons-link; +@font-face { + font-family: octicons-link; src: url(data:font/woff;charset=utf-8;base64,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) format('woff'); } @@ -48,6 +48,7 @@ font-family: octicons-link; .markdown-body h6:hover .anchor .octicon-link { visibility: visible; } + .markdown-body { -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; diff --git a/package.json b/package.json index 85924af..4a415a7 100644 --- a/package.json +++ b/package.json @@ -29,6 +29,6 @@ "stylesheet" ], "devDependencies": { - "generate-github-markdown-css": "^3.0.1" + "generate-github-markdown-css": "^3.0.2" } } From 6616212a2a469d1c1a127d793788dc440c7e3197 Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Fri, 1 Feb 2019 16:38:35 +0700 Subject: [PATCH 42/80] 3.0.1 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 4a415a7..e666dd6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "github-markdown-css", - "version": "3.0.0", + "version": "3.0.1", "description": "The minimal amount of CSS to replicate the GitHub Markdown style", "license": "MIT", "repository": "sindresorhus/github-markdown-css", From 8e8d8570e8ec15013134cacddbebedebfb5b3876 Mon Sep 17 00:00:00 2001 From: Atsushi Yamamoto Date: Wed, 19 Jun 2019 23:17:48 +0900 Subject: [PATCH 43/80] Add render instruction for code syntax highlighting (#66) Co-authored-by: Sindre Sorhus --- readme.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/readme.md b/readme.md index 790cef5..a289872 100644 --- a/readme.md +++ b/readme.md @@ -44,6 +44,8 @@ Import the `github-markdown.css` file and add a `markdown-body` class to the con
``` +If you want code syntax highlighted, use GitHub Flavored Markdown rendered from [GitHub's `/markdown` API](https://developer.github.com/v3/markdown/). + ## How From 28b11434c1355a09e32b1d169ae2e0b49bcf3896 Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Sat, 22 Feb 2020 17:31:42 +0700 Subject: [PATCH 44/80] Regenerate GitHub CSS --- github-markdown.css | 664 +++++++++++++++++++++++--------------------- license | 2 +- package.json | 8 +- readme.md | 11 +- 4 files changed, 351 insertions(+), 334 deletions(-) diff --git a/github-markdown.css b/github-markdown.css index 6085db2..7c6cd78 100644 --- a/github-markdown.css +++ b/github-markdown.css @@ -1,8 +1,3 @@ -@font-face { - font-family: octicons-link; - src: url(data:font/woff;charset=utf-8;base64,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) format('woff'); -} - .markdown-body .octicon { display: inline-block; fill: currentColor; @@ -49,141 +44,28 @@ visibility: visible; } -.markdown-body { +.markdown-body h1:hover .anchor .octicon-link:before, +.markdown-body h2:hover .anchor .octicon-link:before, +.markdown-body h3:hover .anchor .octicon-link:before, +.markdown-body h4:hover .anchor .octicon-link:before, +.markdown-body h5:hover .anchor .octicon-link:before, +.markdown-body h6:hover .anchor .octicon-link:before { + width: 16px; + height: 16px; + content: ' '; + display: inline-block; + background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' version='1.1' width='16' height='16' aria-hidden='true'%3E%3Cpath fill-rule='evenodd' d='M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z'%3E%3C/path%3E%3C/svg%3E"); +}.markdown-body { -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; - color: #24292e; line-height: 1.5; - font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol; + color: #24292e; + font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji; font-size: 16px; line-height: 1.5; word-wrap: break-word; } -.markdown-body .pl-c { - color: #6a737d; -} - -.markdown-body .pl-c1, -.markdown-body .pl-s .pl-v { - color: #005cc5; -} - -.markdown-body .pl-e, -.markdown-body .pl-en { - color: #6f42c1; -} - -.markdown-body .pl-s .pl-s1, -.markdown-body .pl-smi { - color: #24292e; -} - -.markdown-body .pl-ent { - color: #22863a; -} - -.markdown-body .pl-k { - color: #d73a49; -} - -.markdown-body .pl-pds, -.markdown-body .pl-s, -.markdown-body .pl-s .pl-pse .pl-s1, -.markdown-body .pl-sr, -.markdown-body .pl-sr .pl-cce, -.markdown-body .pl-sr .pl-sra, -.markdown-body .pl-sr .pl-sre { - color: #032f62; -} - -.markdown-body .pl-smw, -.markdown-body .pl-v { - color: #e36209; -} - -.markdown-body .pl-bu { - color: #b31d28; -} - -.markdown-body .pl-ii { - background-color: #b31d28; - color: #fafbfc; -} - -.markdown-body .pl-c2 { - background-color: #d73a49; - color: #fafbfc; -} - -.markdown-body .pl-c2:before { - content: "^M"; -} - -.markdown-body .pl-sr .pl-cce { - color: #22863a; - font-weight: 700; -} - -.markdown-body .pl-ml { - color: #735c0f; -} - -.markdown-body .pl-mh, -.markdown-body .pl-mh .pl-en, -.markdown-body .pl-ms { - color: #005cc5; - font-weight: 700; -} - -.markdown-body .pl-mi { - color: #24292e; - font-style: italic; -} - -.markdown-body .pl-mb { - color: #24292e; - font-weight: 700; -} - -.markdown-body .pl-md { - background-color: #ffeef0; - color: #b31d28; -} - -.markdown-body .pl-mi1 { - background-color: #f0fff4; - color: #22863a; -} - -.markdown-body .pl-mc { - background-color: #ffebda; - color: #e36209; -} - -.markdown-body .pl-mi2 { - background-color: #005cc5; - color: #f6f8fa; -} - -.markdown-body .pl-mdr { - color: #6f42c1; - font-weight: 700; -} - -.markdown-body .pl-ba { - color: #586069; -} - -.markdown-body .pl-sg { - color: #959da5; -} - -.markdown-body .pl-corl { - color: #032f62; - text-decoration: underline; -} - .markdown-body details { display: block; } @@ -193,7 +75,7 @@ } .markdown-body a { - background-color: transparent; + background-color: initial; } .markdown-body a:active, @@ -223,7 +105,7 @@ } .markdown-body hr { - box-sizing: content-box; + box-sizing: initial; height: 0; overflow: visible; } @@ -266,28 +148,27 @@ } .markdown-body hr { - background: transparent; - border: 0; - border-bottom: 1px solid #dfe2e5; height: 0; margin: 15px 0; overflow: hidden; + background: transparent; + border: 0; + border-bottom: 1px solid #dfe2e5; } +.markdown-body hr:after, .markdown-body hr:before { - content: ""; display: table; + content: ""; } .markdown-body hr:after { clear: both; - content: ""; - display: table; } .markdown-body table { - border-collapse: collapse; border-spacing: 0; + border-collapse: collapse; } .markdown-body td, @@ -299,14 +180,27 @@ cursor: pointer; } +.markdown-body kbd { + display: inline-block; + padding: 3px 5px; + font: 11px SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace; + line-height: 10px; + color: #444d56; + vertical-align: middle; + background-color: #fafbfc; + border: 1px solid #d1d5da; + border-radius: 3px; + box-shadow: inset 0 -1px 0 #d1d5da; +} + .markdown-body h1, .markdown-body h2, .markdown-body h3, .markdown-body h4, .markdown-body h5, .markdown-body h6 { - margin-bottom: 0; margin-top: 0; + margin-bottom: 0; } .markdown-body h1 { @@ -349,8 +243,8 @@ } .markdown-body p { - margin-bottom: 10px; margin-top: 0; + margin-bottom: 10px; } .markdown-body blockquote { @@ -359,9 +253,9 @@ .markdown-body ol, .markdown-body ul { - margin-bottom: 0; - margin-top: 0; padding-left: 0; + margin-top: 0; + margin-bottom: 0; } .markdown-body ol ol, @@ -382,20 +276,26 @@ .markdown-body code, .markdown-body pre { - font-family: SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace; + font-family: SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace; font-size: 12px; } .markdown-body pre { - margin-bottom: 0; margin-top: 0; + margin-bottom: 0; } .markdown-body input::-webkit-inner-spin-button, .markdown-body input::-webkit-outer-spin-button { + margin: 0; -webkit-appearance: none; appearance: none; - margin: 0; +} + +.markdown-body :checked+.radio-label { + position: relative; + z-index: 1; + border-color: #0366d6; } .markdown-body .border { @@ -418,12 +318,200 @@ background-color: #fff!important; } -.markdown-body .bg-gray-light { - background-color: #fafbfc!important; +.markdown-body .bg-gray-light { + background-color: #fafbfc!important; +} + +.markdown-body .text-gray-light { + color: #6a737d!important; +} + +.markdown-body .mb-0 { + margin-bottom: 0!important; +} + +.markdown-body .my-2 { + margin-top: 8px!important; + margin-bottom: 8px!important; +} + +.markdown-body .pl-0 { + padding-left: 0!important; +} + +.markdown-body .py-0 { + padding-top: 0!important; + padding-bottom: 0!important; +} + +.markdown-body .pl-1 { + padding-left: 4px!important; +} + +.markdown-body .pl-2 { + padding-left: 8px!important; +} + +.markdown-body .py-2 { + padding-top: 8px!important; + padding-bottom: 8px!important; +} + +.markdown-body .pl-3, +.markdown-body .px-3 { + padding-left: 16px!important; +} + +.markdown-body .px-3 { + padding-right: 16px!important; +} + +.markdown-body .pl-4 { + padding-left: 24px!important; +} + +.markdown-body .pl-5 { + padding-left: 32px!important; +} + +.markdown-body .pl-6 { + padding-left: 40px!important; +} + +.markdown-body .f6 { + font-size: 12px!important; +} + +.markdown-body .lh-condensed { + line-height: 1.25!important; +} + +.markdown-body .text-bold { + font-weight: 600!important; +} + +.markdown-body .pl-c { + color: #6a737d; +} + +.markdown-body .pl-c1, +.markdown-body .pl-s .pl-v { + color: #005cc5; +} + +.markdown-body .pl-e, +.markdown-body .pl-en { + color: #6f42c1; +} + +.markdown-body .pl-s .pl-s1, +.markdown-body .pl-smi { + color: #24292e; +} + +.markdown-body .pl-ent { + color: #22863a; +} + +.markdown-body .pl-k { + color: #d73a49; +} + +.markdown-body .pl-pds, +.markdown-body .pl-s, +.markdown-body .pl-s .pl-pse .pl-s1, +.markdown-body .pl-sr, +.markdown-body .pl-sr .pl-cce, +.markdown-body .pl-sr .pl-sra, +.markdown-body .pl-sr .pl-sre { + color: #032f62; +} + +.markdown-body .pl-smw, +.markdown-body .pl-v { + color: #e36209; +} + +.markdown-body .pl-bu { + color: #b31d28; +} + +.markdown-body .pl-ii { + color: #fafbfc; + background-color: #b31d28; +} + +.markdown-body .pl-c2 { + color: #fafbfc; + background-color: #d73a49; +} + +.markdown-body .pl-c2:before { + content: "^M"; +} + +.markdown-body .pl-sr .pl-cce { + font-weight: 700; + color: #22863a; +} + +.markdown-body .pl-ml { + color: #735c0f; +} + +.markdown-body .pl-mh, +.markdown-body .pl-mh .pl-en, +.markdown-body .pl-ms { + font-weight: 700; + color: #005cc5; +} + +.markdown-body .pl-mi { + font-style: italic; + color: #24292e; +} + +.markdown-body .pl-mb { + font-weight: 700; + color: #24292e; +} + +.markdown-body .pl-md { + color: #b31d28; + background-color: #ffeef0; +} + +.markdown-body .pl-mi1 { + color: #22863a; + background-color: #f0fff4; +} + +.markdown-body .pl-mc { + color: #e36209; + background-color: #ffebda; +} + +.markdown-body .pl-mi2 { + color: #f6f8fa; + background-color: #005cc5; +} + +.markdown-body .pl-mdr { + font-weight: 700; + color: #6f42c1; +} + +.markdown-body .pl-ba { + color: #586069; +} + +.markdown-body .pl-sg { + color: #959da5; } -.markdown-body .text-gray-light { - color: #6a737d!important; +.markdown-body .pl-corl { + text-decoration: underline; + color: #032f62; } .markdown-body .mb-0 { @@ -432,6 +520,9 @@ .markdown-body .my-2 { margin-bottom: 8px!important; +} + +.markdown-body .my-2 { margin-top: 8px!important; } @@ -440,8 +531,8 @@ } .markdown-body .py-0 { - padding-bottom: 0!important; padding-top: 0!important; + padding-bottom: 0!important; } .markdown-body .pl-1 { @@ -453,19 +544,14 @@ } .markdown-body .py-2 { - padding-bottom: 8px!important; padding-top: 8px!important; + padding-bottom: 8px!important; } -.markdown-body .pl-3, -.markdown-body .px-3 { +.markdown-body .pl-3 { padding-left: 16px!important; } -.markdown-body .px-3 { - padding-right: 16px!important; -} - .markdown-body .pl-4 { padding-left: 24px!important; } @@ -478,27 +564,55 @@ padding-left: 40px!important; } -.markdown-body .f6 { - font-size: 12px!important; +.markdown-body .pl-7 { + padding-left: 48px!important; } -.markdown-body .lh-condensed { - line-height: 1.25!important; +.markdown-body .pl-8 { + padding-left: 64px!important; } -.markdown-body .text-bold { - font-weight: 600!important; +.markdown-body .pl-9 { + padding-left: 80px!important; +} + +.markdown-body .pl-10 { + padding-left: 96px!important; +} + +.markdown-body .pl-11 { + padding-left: 112px!important; +} + +.markdown-body .pl-12 { + padding-left: 128px!important; +} + +.markdown-body hr { + border-bottom-color: #eee; +} + +.markdown-body kbd { + display: inline-block; + padding: 3px 5px; + font: 11px SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace; + line-height: 10px; + color: #444d56; + vertical-align: middle; + background-color: #fafbfc; + border: 1px solid #d1d5da; + border-radius: 3px; + box-shadow: inset 0 -1px 0 #d1d5da; } +.markdown-body:after, .markdown-body:before { - content: ""; display: table; + content: ""; } .markdown-body:after { clear: both; - content: ""; - display: table; } .markdown-body>:first-child { @@ -515,28 +629,29 @@ } .markdown-body blockquote, +.markdown-body details, .markdown-body dl, .markdown-body ol, .markdown-body p, .markdown-body pre, .markdown-body table, .markdown-body ul { - margin-bottom: 16px; margin-top: 0; + margin-bottom: 16px; } .markdown-body hr { - background-color: #e1e4e8; - border: 0; height: .25em; - margin: 24px 0; padding: 0; + margin: 24px 0; + background-color: #e1e4e8; + border: 0; } .markdown-body blockquote { - border-left: .25em solid #dfe2e5; - color: #6a737d; padding: 0 1em; + color: #6a737d; + border-left: .25em solid #dfe2e5; } .markdown-body blockquote>:first-child { @@ -547,30 +662,16 @@ margin-bottom: 0; } -.markdown-body kbd { - background-color: #fafbfc; - border: 1px solid #c6cbd1; - border-bottom-color: #959da5; - border-radius: 3px; - box-shadow: inset 0 -1px 0 #959da5; - color: #444d56; - display: inline-block; - font-size: 11px; - line-height: 10px; - padding: 3px 5px; - vertical-align: middle; -} - .markdown-body h1, .markdown-body h2, .markdown-body h3, .markdown-body h4, .markdown-body h5, .markdown-body h6 { + margin-top: 24px; + margin-bottom: 16px; font-weight: 600; line-height: 1.25; - margin-bottom: 16px; - margin-top: 24px; } .markdown-body h1 { @@ -579,8 +680,8 @@ .markdown-body h1, .markdown-body h2 { - border-bottom: 1px solid #eaecef; padding-bottom: .3em; + border-bottom: 1px solid #eaecef; } .markdown-body h2 { @@ -600,8 +701,8 @@ } .markdown-body h6 { - color: #6a737d; font-size: .85em; + color: #6a737d; } .markdown-body ol, @@ -613,8 +714,8 @@ .markdown-body ol ul, .markdown-body ul ol, .markdown-body ul ul { - margin-bottom: 0; margin-top: 0; + margin-bottom: 0; } .markdown-body li { @@ -634,22 +735,22 @@ } .markdown-body dl dt { + padding: 0; + margin-top: 16px; font-size: 1em; font-style: italic; font-weight: 600; - margin-top: 16px; - padding: 0; } .markdown-body dl dd { - margin-bottom: 16px; padding: 0 16px; + margin-bottom: 16px; } .markdown-body table { display: block; - overflow: auto; width: 100%; + overflow: auto; } .markdown-body table th { @@ -658,8 +759,8 @@ .markdown-body table td, .markdown-body table th { - border: 1px solid #dfe2e5; padding: 6px 13px; + border: 1px solid #dfe2e5; } .markdown-body table tr { @@ -672,9 +773,9 @@ } .markdown-body img { - background-color: #fff; - box-sizing: content-box; max-width: 100%; + box-sizing: initial; + background-color: #fff; } .markdown-body img[align=right] { @@ -686,11 +787,11 @@ } .markdown-body code { + padding: .2em .4em; + margin: 0; + font-size: 85%; background-color: rgba(27,31,35,.05); border-radius: 3px; - font-size: 85%; - margin: 0; - padding: .2em .4em; } .markdown-body pre { @@ -698,13 +799,13 @@ } .markdown-body pre>code { - background: transparent; - border: 0; - font-size: 100%; - margin: 0; padding: 0; - white-space: pre; + margin: 0; + font-size: 100%; word-break: normal; + white-space: pre; + background: transparent; + border: 0; } .markdown-body .highlight { @@ -718,36 +819,39 @@ .markdown-body .highlight pre, .markdown-body pre { - background-color: #f6f8fa; - border-radius: 3px; + padding: 16px; + overflow: auto; font-size: 85%; line-height: 1.45; - overflow: auto; - padding: 16px; + background-color: #f6f8fa; + border-radius: 3px; } .markdown-body pre code { - background-color: transparent; - border: 0; display: inline; - line-height: inherit; - margin: 0; max-width: auto; - overflow: visible; padding: 0; + margin: 0; + overflow: visible; + line-height: inherit; word-wrap: normal; + background-color: initial; + border: 0; } .markdown-body .commit-tease-sha { - color: #444d56; display: inline-block; - font-family: SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace; + font-family: SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace; font-size: 90%; + color: #444d56; +} + +.markdown-body .full-commit .btn-outline:not(:disabled):hover { + color: #005cc5; + border-color: #005cc5; } .markdown-body .blob-wrapper { - border-bottom-left-radius: 3px; - border-bottom-right-radius: 3px; overflow-x: auto; overflow-y: hidden; } @@ -758,22 +862,22 @@ } .markdown-body .blob-num { - -moz-user-select: none; - -ms-user-select: none; - -webkit-user-select: none; - color: rgba(27,31,35,.3); - cursor: pointer; - font-family: SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace; - font-size: 12px; - line-height: 20px; + width: 1%; min-width: 50px; - padding-left: 10px; padding-right: 10px; + padding-left: 10px; + font-family: SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace; + font-size: 12px; + line-height: 20px; + color: rgba(27,31,35,.3); text-align: right; - user-select: none; - vertical-align: top; white-space: nowrap; - width: 1%; + vertical-align: top; + cursor: pointer; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; } .markdown-body .blob-num:hover { @@ -785,46 +889,26 @@ } .markdown-body .blob-code { - line-height: 20px; - padding-left: 10px; - padding-right: 10px; position: relative; + padding-right: 10px; + padding-left: 10px; + line-height: 20px; vertical-align: top; } .markdown-body .blob-code-inner { - color: #24292e; - font-family: SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace; - font-size: 12px; overflow: visible; - white-space: pre; + font-family: SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace; + font-size: 12px; + color: #24292e; word-wrap: normal; + white-space: pre; } .markdown-body .pl-token.active, .markdown-body .pl-token:hover { - background: #ffea7f; cursor: pointer; -} - -.markdown-body kbd { - background-color: #fafbfc; - border: 1px solid #d1d5da; - border-bottom-color: #c6cbd1; - border-radius: 3px; - box-shadow: inset 0 -1px 0 #c6cbd1; - color: #444d56; - display: inline-block; - font: 11px SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace; - line-height: 10px; - padding: 3px 5px; - vertical-align: middle; -} - -.markdown-body :checked+.radio-label { - border-color: #0366d6; - position: relative; - z-index: 1; + background: #ffea7f; } .markdown-body .tab-size[data-tab-size="1"] { @@ -899,59 +983,3 @@ margin: 0 .2em .25em -1.6em; vertical-align: middle; } - -.markdown-body hr { - border-bottom-color: #eee; -} - -.markdown-body .pl-0 { - padding-left: 0!important; -} - -.markdown-body .pl-1 { - padding-left: 4px!important; -} - -.markdown-body .pl-2 { - padding-left: 8px!important; -} - -.markdown-body .pl-3 { - padding-left: 16px!important; -} - -.markdown-body .pl-4 { - padding-left: 24px!important; -} - -.markdown-body .pl-5 { - padding-left: 32px!important; -} - -.markdown-body .pl-6 { - padding-left: 40px!important; -} - -.markdown-body .pl-7 { - padding-left: 48px!important; -} - -.markdown-body .pl-8 { - padding-left: 64px!important; -} - -.markdown-body .pl-9 { - padding-left: 80px!important; -} - -.markdown-body .pl-10 { - padding-left: 96px!important; -} - -.markdown-body .pl-11 { - padding-left: 112px!important; -} - -.markdown-body .pl-12 { - padding-left: 128px!important; -} diff --git a/license b/license index e7af2f7..fa7ceba 100644 --- a/license +++ b/license @@ -1,6 +1,6 @@ MIT License -Copyright (c) Sindre Sorhus (sindresorhus.com) +Copyright (c) Sindre Sorhus (https://sindresorhus.com) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: diff --git a/package.json b/package.json index e666dd6..80b6604 100644 --- a/package.json +++ b/package.json @@ -4,15 +4,13 @@ "description": "The minimal amount of CSS to replicate the GitHub Markdown style", "license": "MIT", "repository": "sindresorhus/github-markdown-css", + "funding": "https://github.com/sponsors/sindresorhus", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" + "url": "https://sindresorhus.com" }, "main": "github-markdown.css", - "engines": { - "node": ">=0.10.0" - }, "scripts": { "make": "github-markdown-css > github-markdown.css" }, @@ -29,6 +27,6 @@ "stylesheet" ], "devDependencies": { - "generate-github-markdown-css": "^3.0.2" + "generate-github-markdown-css": "^4.0.0" } } diff --git a/readme.md b/readme.md index a289872..bc73f37 100644 --- a/readme.md +++ b/readme.md @@ -4,8 +4,7 @@ [](http://sindresorhus.com/github-markdown-css) -## [Demo](http://sindresorhus.com/github-markdown-css) - +## [Demo](https://sindresorhus.com/github-markdown-css) ## Install @@ -15,7 +14,6 @@ Download [manually](https://raw.githubusercontent.com/sindresorhus/github-markdo $ npm install github-markdown-css ``` - ## Usage Import the `github-markdown.css` file and add a `markdown-body` class to the container of your rendered Markdown and set a width for it. GitHub uses `980px` width and `45px` padding, and `15px` padding for mobile. @@ -46,17 +44,10 @@ Import the `github-markdown.css` file and add a `markdown-body` class to the con If you want code syntax highlighted, use GitHub Flavored Markdown rendered from [GitHub's `/markdown` API](https://developer.github.com/v3/markdown/). - ## How See [`generate-github-markdown-css`](https://github.com/sindresorhus/generate-github-markdown-css) for how it's generated and ability to generate your own. - ## Dev Run `npm run make` to update the CSS. - - -## License - -MIT © [Sindre Sorhus](https://sindresorhus.com) From 1485dd78f5e744ef36e946e5ae44838e3906f9d8 Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Sat, 22 Feb 2020 18:41:22 +0700 Subject: [PATCH 45/80] 4.0.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 80b6604..ad95233 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "github-markdown-css", - "version": "3.0.1", + "version": "4.0.0", "description": "The minimal amount of CSS to replicate the GitHub Markdown style", "license": "MIT", "repository": "sindresorhus/github-markdown-css", From 888d5a03223a2c14a8d3eb40e90a22f62469a46b Mon Sep 17 00:00:00 2001 From: Rongjian Zhang Date: Tue, 20 Oct 2020 20:24:11 +0800 Subject: [PATCH 46/80] Update GFM render API link (#75) --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index bc73f37..d1d32a6 100644 --- a/readme.md +++ b/readme.md @@ -42,7 +42,7 @@ Import the `github-markdown.css` file and add a `markdown-body` class to the con
``` -If you want code syntax highlighted, use GitHub Flavored Markdown rendered from [GitHub's `/markdown` API](https://developer.github.com/v3/markdown/). +If you want code syntax highlighted, use GitHub Flavored Markdown rendered from [GitHub's `/markdown` API](https://docs.github.com/en/free-pro-team@latest/rest/reference/markdown). ## How From 4869cfc43314775195e4e5dc3e9c3eae2a447b0e Mon Sep 17 00:00:00 2001 From: haru <61040486+haru0017@users.noreply.github.com> Date: Sun, 8 Aug 2021 18:55:05 +0900 Subject: [PATCH 47/80] Fix "Fork me on Github" image (#83) Co-authored-by: Sindre Sorhus --- index.html | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index 83e82d8..ec9d64d 100644 --- a/index.html +++ b/index.html @@ -14,6 +14,12 @@ padding: 45px; } + + - Fork me on GitHub + Fork me on GitHub From b1d8b9fc0d5ac2b0458de1bd5057792d20d96e49 Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Sun, 5 Sep 2021 11:19:21 +0200 Subject: [PATCH 48/80] Update readme.md --- readme.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/readme.md b/readme.md index d1d32a6..d0f9371 100644 --- a/readme.md +++ b/readme.md @@ -2,6 +2,8 @@ > The minimal amount of CSS to replicate the GitHub Markdown style +**The CSS is generated. Contributions should go to [this repo](https://github.com/sindresorhus/generate-github-markdown-css).** + [](http://sindresorhus.com/github-markdown-css) ## [Demo](https://sindresorhus.com/github-markdown-css) From 5a667d574911bc1592abe3520524485609de1b13 Mon Sep 17 00:00:00 2001 From: hyrious Date: Sun, 17 Oct 2021 20:15:46 +0800 Subject: [PATCH 49/80] Support GitHub dark theme (#89) --- github-markdown-dark.css | 900 +++++++++++++++++++++++++++++ github-markdown-light.css | 899 +++++++++++++++++++++++++++++ github-markdown.css | 1130 +++++++++++++++++++------------------ index.html | 7 + package.json | 11 +- readme.md | 8 + 6 files changed, 2391 insertions(+), 564 deletions(-) create mode 100644 github-markdown-dark.css create mode 100644 github-markdown-light.css diff --git a/github-markdown-dark.css b/github-markdown-dark.css new file mode 100644 index 0000000..9966c60 --- /dev/null +++ b/github-markdown-dark.css @@ -0,0 +1,900 @@ +.markdown-body { + color-scheme: dark; + -ms-text-size-adjust: 100%; + -webkit-text-size-adjust: 100%; + margin: 0; + color: #c9d1d9; + background-color: #0d1117; + font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"; + font-size: 16px; + line-height: 1.5; + word-wrap: break-word; +} + +.markdown-body .octicon { + display: inline-block; + fill: currentColor; + vertical-align: text-bottom; +} + +.markdown-body h1:hover .anchor .octicon-link:before, +.markdown-body h2:hover .anchor .octicon-link:before, +.markdown-body h3:hover .anchor .octicon-link:before, +.markdown-body h4:hover .anchor .octicon-link:before, +.markdown-body h5:hover .anchor .octicon-link:before, +.markdown-body h6:hover .anchor .octicon-link:before { + width: 16px; + height: 16px; + content: ' '; + display: inline-block; + background-color: currentColor; + -webkit-mask-image: url("data:image/svg+xml,"); + mask-image: url("data:image/svg+xml,"); +} + +.markdown-body details, +.markdown-body figcaption, +.markdown-body figure { + display: block; +} + +.markdown-body summary { + display: list-item; +} + +.markdown-body a { + background-color: transparent; + color: #58a6ff; + text-decoration: none; +} + +.markdown-body a:active, +.markdown-body a:hover { + outline-width: 0; +} + +.markdown-body abbr[title] { + border-bottom: none; + -webkit-text-decoration: underline dotted; + text-decoration: underline dotted; +} + +.markdown-body b, +.markdown-body strong { + font-weight: 600; +} + +.markdown-body dfn { + font-style: italic; +} + +.markdown-body h1 { + margin: .67em 0; + font-weight: 600; + padding-bottom: .3em; + font-size: 2em; + border-bottom: 1px solid #21262d; +} + +.markdown-body mark { + background-color: #ff0; + color: #c9d1d9; +} + +.markdown-body small { + font-size: 90%; +} + +.markdown-body sub, +.markdown-body sup { + font-size: 75%; + line-height: 0; + position: relative; + vertical-align: baseline; +} + +.markdown-body sub { + bottom: -0.25em; +} + +.markdown-body sup { + top: -0.5em; +} + +.markdown-body img { + border-style: none; + max-width: 100%; + box-sizing: content-box; + background-color: #0d1117; +} + +.markdown-body code, +.markdown-body kbd, +.markdown-body pre, +.markdown-body samp { + font-family: monospace,monospace; + font-size: 1em; +} + +.markdown-body figure { + margin: 1em 40px; +} + +.markdown-body hr { + box-sizing: content-box; + overflow: hidden; + background: transparent; + border-bottom: 1px solid #21262d; + height: .25em; + padding: 0; + margin: 24px 0; + background-color: #30363d; + border: 0; +} + +.markdown-body html [type=button], +.markdown-body [type=reset], +.markdown-body [type=submit] { + -webkit-appearance: button; +} + +.markdown-body [type=button]::-moz-focus-inner, +.markdown-body [type=reset]::-moz-focus-inner, +.markdown-body [type=submit]::-moz-focus-inner { + border-style: none; + padding: 0; +} + +.markdown-body [type=button]:-moz-focusring, +.markdown-body [type=reset]:-moz-focusring, +.markdown-body [type=submit]:-moz-focusring { + outline: 1px dotted ButtonText; +} + +.markdown-body [type=checkbox], +.markdown-body [type=radio] { + box-sizing: border-box; + padding: 0; +} + +.markdown-body [type=number]::-webkit-inner-spin-button, +.markdown-body [type=number]::-webkit-outer-spin-button { + height: auto; +} + +.markdown-body [type=search] { + -webkit-appearance: textfield; + outline-offset: -2px; +} + +.markdown-body [type=search]::-webkit-search-cancel-button, +.markdown-body [type=search]::-webkit-search-decoration { + -webkit-appearance: none; +} + +.markdown-body ::-webkit-input-placeholder { + color: inherit; + opacity: .54; +} + +.markdown-body ::-webkit-file-upload-button { + -webkit-appearance: button; + font: inherit; +} + +.markdown-body a:hover { + text-decoration: underline; +} + +.markdown-body hr::before { + display: table; + content: ""; +} + +.markdown-body hr::after { + display: table; + clear: both; + content: ""; +} + +.markdown-body table { + border-spacing: 0; + border-collapse: collapse; + display: block; + width: max-content; + max-width: 100%; + overflow: auto; +} + +.markdown-body td, +.markdown-body th { + padding: 0; +} + +.markdown-body details summary { + cursor: pointer; +} + +.markdown-body details:not([open])>*:not(summary) { + display: none !important; +} + +.markdown-body kbd { + display: inline-block; + padding: 3px 5px; + font: 11px ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace; + line-height: 10px; + color: #c9d1d9; + vertical-align: middle; + background-color: #161b22; + border: solid 1px rgba(110,118,129,0.4); + border-bottom-color: rgba(110,118,129,0.4); + border-radius: 6px; + box-shadow: inset 0 -1px 0 rgba(110,118,129,0.4); +} + +.markdown-body h1, +.markdown-body h2, +.markdown-body h3, +.markdown-body h4, +.markdown-body h5, +.markdown-body h6 { + margin-top: 24px; + margin-bottom: 16px; + font-weight: 600; + line-height: 1.25; +} + +.markdown-body h2 { + font-weight: 600; + padding-bottom: .3em; + font-size: 1.5em; + border-bottom: 1px solid #21262d; +} + +.markdown-body h3 { + font-weight: 600; + font-size: 1.25em; +} + +.markdown-body h4 { + font-weight: 600; + font-size: 1em; +} + +.markdown-body h5 { + font-weight: 600; + font-size: .875em; +} + +.markdown-body h6 { + font-weight: 600; + font-size: .85em; + color: #8b949e; +} + +.markdown-body p { + margin-top: 0; + margin-bottom: 10px; +} + +.markdown-body blockquote { + margin: 0; + padding: 0 1em; + color: #8b949e; + border-left: .25em solid #30363d; +} + +.markdown-body ul, +.markdown-body ol { + margin-top: 0; + margin-bottom: 0; + padding-left: 2em; +} + +.markdown-body ol ol, +.markdown-body ul ol { + list-style-type: lower-roman; +} + +.markdown-body ul ul ol, +.markdown-body ul ol ol, +.markdown-body ol ul ol, +.markdown-body ol ol ol { + list-style-type: lower-alpha; +} + +.markdown-body dd { + margin-left: 0; +} + +.markdown-body tt, +.markdown-body code { + font-family: ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace; + font-size: 12px; +} + +.markdown-body pre { + margin-top: 0; + margin-bottom: 0; + font-family: ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace; + font-size: 12px; + word-wrap: normal; +} + +.markdown-body :-ms-input-placeholder { + color: #484f58; + opacity: 1; +} + +.markdown-body ::-ms-input-placeholder { + color: #484f58; + opacity: 1; +} + +.markdown-body ::placeholder { + color: #484f58; + opacity: 1; +} + +.markdown-body .pl-c { + color: #8b949e; +} + +.markdown-body .pl-c1, +.markdown-body .pl-s .pl-v { + color: #79c0ff; +} + +.markdown-body .pl-e, +.markdown-body .pl-en { + color: #d2a8ff; +} + +.markdown-body .pl-smi, +.markdown-body .pl-s .pl-s1 { + color: #c9d1d9; +} + +.markdown-body .pl-ent { + color: #7ee787; +} + +.markdown-body .pl-k { + color: #ff7b72; +} + +.markdown-body .pl-s, +.markdown-body .pl-pds, +.markdown-body .pl-s .pl-pse .pl-s1, +.markdown-body .pl-sr, +.markdown-body .pl-sr .pl-cce, +.markdown-body .pl-sr .pl-sre, +.markdown-body .pl-sr .pl-sra { + color: #a5d6ff; +} + +.markdown-body .pl-v, +.markdown-body .pl-smw { + color: #ffa657; +} + +.markdown-body .pl-bu { + color: #f85149; +} + +.markdown-body .pl-ii { + color: #f0f6fc; + background-color: #8e1519; +} + +.markdown-body .pl-c2 { + color: #f0f6fc; + background-color: #b62324; +} + +.markdown-body .pl-sr .pl-cce { + font-weight: bold; + color: #7ee787; +} + +.markdown-body .pl-ml { + color: #f2cc60; +} + +.markdown-body .pl-mh, +.markdown-body .pl-mh .pl-en, +.markdown-body .pl-ms { + font-weight: bold; + color: #1f6feb; +} + +.markdown-body .pl-mi { + font-style: italic; + color: #c9d1d9; +} + +.markdown-body .pl-mb { + font-weight: bold; + color: #c9d1d9; +} + +.markdown-body .pl-md { + color: #ffdcd7; + background-color: #67060c; +} + +.markdown-body .pl-mi1 { + color: #aff5b4; + background-color: #033a16; +} + +.markdown-body .pl-mc { + color: #ffdfb6; + background-color: #5a1e02; +} + +.markdown-body .pl-mi2 { + color: #c9d1d9; + background-color: #1158c7; +} + +.markdown-body .pl-mdr { + font-weight: bold; + color: #d2a8ff; +} + +.markdown-body .pl-ba { + color: #8b949e; +} + +.markdown-body .pl-sg { + color: #484f58; +} + +.markdown-body .pl-corl { + text-decoration: underline; + color: #a5d6ff; +} + +.markdown-body [data-catalyst] { + display: block; +} + +.markdown-body g-emoji { + font-family: "Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol"; + font-size: 1em; + font-style: normal !important; + font-weight: 400; + line-height: 1; + vertical-align: -0.075em; +} + +.markdown-body g-emoji img { + width: 1em; + height: 1em; +} + +.markdown-body::before { + display: table; + content: ""; +} + +.markdown-body::after { + display: table; + clear: both; + content: ""; +} + +.markdown-body>*:first-child { + margin-top: 0 !important; +} + +.markdown-body>*:last-child { + margin-bottom: 0 !important; +} + +.markdown-body a:not([href]) { + color: inherit; + text-decoration: none; +} + +.markdown-body .absent { + color: #f85149; +} + +.markdown-body .anchor { + float: left; + padding-right: 4px; + margin-left: -20px; + line-height: 1; +} + +.markdown-body .anchor:focus { + outline: none; +} + +.markdown-body p, +.markdown-body blockquote, +.markdown-body ul, +.markdown-body ol, +.markdown-body dl, +.markdown-body table, +.markdown-body pre, +.markdown-body details { + margin-top: 0; + margin-bottom: 16px; +} + +.markdown-body blockquote>:first-child { + margin-top: 0; +} + +.markdown-body blockquote>:last-child { + margin-bottom: 0; +} + +.markdown-body sup>a::before { + content: "["; +} + +.markdown-body sup>a::after { + content: "]"; +} + +.markdown-body h1 .octicon-link, +.markdown-body h2 .octicon-link, +.markdown-body h3 .octicon-link, +.markdown-body h4 .octicon-link, +.markdown-body h5 .octicon-link, +.markdown-body h6 .octicon-link { + color: #c9d1d9; + vertical-align: middle; + visibility: hidden; +} + +.markdown-body h1:hover .anchor, +.markdown-body h2:hover .anchor, +.markdown-body h3:hover .anchor, +.markdown-body h4:hover .anchor, +.markdown-body h5:hover .anchor, +.markdown-body h6:hover .anchor { + text-decoration: none; +} + +.markdown-body h1:hover .anchor .octicon-link, +.markdown-body h2:hover .anchor .octicon-link, +.markdown-body h3:hover .anchor .octicon-link, +.markdown-body h4:hover .anchor .octicon-link, +.markdown-body h5:hover .anchor .octicon-link, +.markdown-body h6:hover .anchor .octicon-link { + visibility: visible; +} + +.markdown-body h1 tt, +.markdown-body h1 code, +.markdown-body h2 tt, +.markdown-body h2 code, +.markdown-body h3 tt, +.markdown-body h3 code, +.markdown-body h4 tt, +.markdown-body h4 code, +.markdown-body h5 tt, +.markdown-body h5 code, +.markdown-body h6 tt, +.markdown-body h6 code { + padding: 0 .2em; + font-size: inherit; +} + +.markdown-body ul.no-list, +.markdown-body ol.no-list { + padding: 0; + list-style-type: none; +} + +.markdown-body ol[type="1"] { + list-style-type: decimal; +} + +.markdown-body ol[type=a] { + list-style-type: lower-alpha; +} + +.markdown-body ol[type=i] { + list-style-type: lower-roman; +} + +.markdown-body div>ol:not([type]) { + list-style-type: decimal; +} + +.markdown-body ul ul, +.markdown-body ul ol, +.markdown-body ol ol, +.markdown-body ol ul { + margin-top: 0; + margin-bottom: 0; +} + +.markdown-body li>p { + margin-top: 16px; +} + +.markdown-body li+li { + margin-top: .25em; +} + +.markdown-body dl { + padding: 0; +} + +.markdown-body dl dt { + padding: 0; + margin-top: 16px; + font-size: 1em; + font-style: italic; + font-weight: 600; +} + +.markdown-body dl dd { + padding: 0 16px; + margin-bottom: 16px; +} + +.markdown-body table th { + font-weight: 600; +} + +.markdown-body table th, +.markdown-body table td { + padding: 6px 13px; + border: 1px solid #30363d; +} + +.markdown-body table tr { + background-color: #0d1117; + border-top: 1px solid #21262d; +} + +.markdown-body table tr:nth-child(2n) { + background-color: #161b22; +} + +.markdown-body table img { + background-color: transparent; +} + +.markdown-body img[align=right] { + padding-left: 20px; +} + +.markdown-body img[align=left] { + padding-right: 20px; +} + +.markdown-body .emoji { + max-width: none; + vertical-align: text-top; + background-color: transparent; +} + +.markdown-body span.frame { + display: block; + overflow: hidden; +} + +.markdown-body span.frame>span { + display: block; + float: left; + width: auto; + padding: 7px; + margin: 13px 0 0; + overflow: hidden; + border: 1px solid #30363d; +} + +.markdown-body span.frame span img { + display: block; + float: left; +} + +.markdown-body span.frame span span { + display: block; + padding: 5px 0 0; + clear: both; + color: #c9d1d9; +} + +.markdown-body span.align-center { + display: block; + overflow: hidden; + clear: both; +} + +.markdown-body span.align-center>span { + display: block; + margin: 13px auto 0; + overflow: hidden; + text-align: center; +} + +.markdown-body span.align-center span img { + margin: 0 auto; + text-align: center; +} + +.markdown-body span.align-right { + display: block; + overflow: hidden; + clear: both; +} + +.markdown-body span.align-right>span { + display: block; + margin: 13px 0 0; + overflow: hidden; + text-align: right; +} + +.markdown-body span.align-right span img { + margin: 0; + text-align: right; +} + +.markdown-body span.float-left { + display: block; + float: left; + margin-right: 13px; + overflow: hidden; +} + +.markdown-body span.float-left span { + margin: 13px 0 0; +} + +.markdown-body span.float-right { + display: block; + float: right; + margin-left: 13px; + overflow: hidden; +} + +.markdown-body span.float-right>span { + display: block; + margin: 13px auto 0; + overflow: hidden; + text-align: right; +} + +.markdown-body code, +.markdown-body tt { + padding: .2em .4em; + margin: 0; + font-size: 85%; + background-color: rgba(110,118,129,0.4); + border-radius: 6px; +} + +.markdown-body code br, +.markdown-body tt br { + display: none; +} + +.markdown-body del code { + text-decoration: inherit; +} + +.markdown-body pre code { + font-size: 100%; +} + +.markdown-body pre>code { + padding: 0; + margin: 0; + word-break: normal; + white-space: pre; + background: transparent; + border: 0; +} + +.markdown-body .highlight { + margin-bottom: 16px; +} + +.markdown-body .highlight pre { + margin-bottom: 0; + word-break: normal; +} + +.markdown-body .highlight pre, +.markdown-body pre { + padding: 16px; + overflow: auto; + font-size: 85%; + line-height: 1.45; + background-color: #161b22; + border-radius: 6px; +} + +.markdown-body pre code, +.markdown-body pre tt { + display: inline; + max-width: auto; + padding: 0; + margin: 0; + overflow: visible; + line-height: inherit; + word-wrap: normal; + background-color: transparent; + border: 0; +} + +.markdown-body .csv-data td, +.markdown-body .csv-data th { + padding: 5px; + overflow: hidden; + font-size: 12px; + line-height: 1; + text-align: left; + white-space: nowrap; +} + +.markdown-body .csv-data .blob-num { + padding: 10px 8px 9px; + text-align: right; + background: #0d1117; + border: 0; +} + +.markdown-body .csv-data tr { + border-top: 0; +} + +.markdown-body .csv-data th { + font-weight: 600; + background: #161b22; + border-top: 0; +} + +.markdown-body .footnotes { + font-size: 12px; + color: #8b949e; + border-top: 1px solid #30363d; +} + +.markdown-body .footnotes ol { + padding-left: 16px; +} + +.markdown-body .footnotes li { + position: relative; +} + +.markdown-body .footnotes li:target::before { + position: absolute; + top: -8px; + right: -8px; + bottom: -8px; + left: -24px; + pointer-events: none; + content: ""; + border: 2px solid #1f6feb; + border-radius: 6px; +} + +.markdown-body .footnotes li:target { + color: #c9d1d9; +} + +.markdown-body .footnotes .data-footnote-backref g-emoji { + font-family: monospace; +} + +.markdown-body [hidden] { + display: none !important; +} + +.markdown-body ::-webkit-calendar-picker-indicator { + filter: invert(50%); +} diff --git a/github-markdown-light.css b/github-markdown-light.css new file mode 100644 index 0000000..2e2783c --- /dev/null +++ b/github-markdown-light.css @@ -0,0 +1,899 @@ +.markdown-body { + -ms-text-size-adjust: 100%; + -webkit-text-size-adjust: 100%; + margin: 0; + color: #24292f; + background-color: #ffffff; + font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"; + font-size: 16px; + line-height: 1.5; + word-wrap: break-word; +} + +.markdown-body .octicon { + display: inline-block; + fill: currentColor; + vertical-align: text-bottom; +} + +.markdown-body h1:hover .anchor .octicon-link:before, +.markdown-body h2:hover .anchor .octicon-link:before, +.markdown-body h3:hover .anchor .octicon-link:before, +.markdown-body h4:hover .anchor .octicon-link:before, +.markdown-body h5:hover .anchor .octicon-link:before, +.markdown-body h6:hover .anchor .octicon-link:before { + width: 16px; + height: 16px; + content: ' '; + display: inline-block; + background-color: currentColor; + -webkit-mask-image: url("data:image/svg+xml,"); + mask-image: url("data:image/svg+xml,"); +} + +.markdown-body details, +.markdown-body figcaption, +.markdown-body figure { + display: block; +} + +.markdown-body summary { + display: list-item; +} + +.markdown-body a { + background-color: transparent; + color: #0969da; + text-decoration: none; +} + +.markdown-body a:active, +.markdown-body a:hover { + outline-width: 0; +} + +.markdown-body abbr[title] { + border-bottom: none; + -webkit-text-decoration: underline dotted; + text-decoration: underline dotted; +} + +.markdown-body b, +.markdown-body strong { + font-weight: 600; +} + +.markdown-body dfn { + font-style: italic; +} + +.markdown-body h1 { + margin: .67em 0; + font-weight: 600; + padding-bottom: .3em; + font-size: 2em; + border-bottom: 1px solid hsla(210,18%,87%,1); +} + +.markdown-body mark { + background-color: #ff0; + color: #24292f; +} + +.markdown-body small { + font-size: 90%; +} + +.markdown-body sub, +.markdown-body sup { + font-size: 75%; + line-height: 0; + position: relative; + vertical-align: baseline; +} + +.markdown-body sub { + bottom: -0.25em; +} + +.markdown-body sup { + top: -0.5em; +} + +.markdown-body img { + border-style: none; + max-width: 100%; + box-sizing: content-box; + background-color: #ffffff; +} + +.markdown-body code, +.markdown-body kbd, +.markdown-body pre, +.markdown-body samp { + font-family: monospace,monospace; + font-size: 1em; +} + +.markdown-body figure { + margin: 1em 40px; +} + +.markdown-body hr { + box-sizing: content-box; + overflow: hidden; + background: transparent; + border-bottom: 1px solid hsla(210,18%,87%,1); + height: .25em; + padding: 0; + margin: 24px 0; + background-color: #d0d7de; + border: 0; +} + +.markdown-body html [type=button], +.markdown-body [type=reset], +.markdown-body [type=submit] { + -webkit-appearance: button; +} + +.markdown-body [type=button]::-moz-focus-inner, +.markdown-body [type=reset]::-moz-focus-inner, +.markdown-body [type=submit]::-moz-focus-inner { + border-style: none; + padding: 0; +} + +.markdown-body [type=button]:-moz-focusring, +.markdown-body [type=reset]:-moz-focusring, +.markdown-body [type=submit]:-moz-focusring { + outline: 1px dotted ButtonText; +} + +.markdown-body [type=checkbox], +.markdown-body [type=radio] { + box-sizing: border-box; + padding: 0; +} + +.markdown-body [type=number]::-webkit-inner-spin-button, +.markdown-body [type=number]::-webkit-outer-spin-button { + height: auto; +} + +.markdown-body [type=search] { + -webkit-appearance: textfield; + outline-offset: -2px; +} + +.markdown-body [type=search]::-webkit-search-cancel-button, +.markdown-body [type=search]::-webkit-search-decoration { + -webkit-appearance: none; +} + +.markdown-body ::-webkit-input-placeholder { + color: inherit; + opacity: .54; +} + +.markdown-body ::-webkit-file-upload-button { + -webkit-appearance: button; + font: inherit; +} + +.markdown-body a:hover { + text-decoration: underline; +} + +.markdown-body hr::before { + display: table; + content: ""; +} + +.markdown-body hr::after { + display: table; + clear: both; + content: ""; +} + +.markdown-body table { + border-spacing: 0; + border-collapse: collapse; + display: block; + width: max-content; + max-width: 100%; + overflow: auto; +} + +.markdown-body td, +.markdown-body th { + padding: 0; +} + +.markdown-body details summary { + cursor: pointer; +} + +.markdown-body details:not([open])>*:not(summary) { + display: none !important; +} + +.markdown-body kbd { + display: inline-block; + padding: 3px 5px; + font: 11px ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace; + line-height: 10px; + color: #24292f; + vertical-align: middle; + background-color: #f6f8fa; + border: solid 1px rgba(175,184,193,0.2); + border-bottom-color: rgba(175,184,193,0.2); + border-radius: 6px; + box-shadow: inset 0 -1px 0 rgba(175,184,193,0.2); +} + +.markdown-body h1, +.markdown-body h2, +.markdown-body h3, +.markdown-body h4, +.markdown-body h5, +.markdown-body h6 { + margin-top: 24px; + margin-bottom: 16px; + font-weight: 600; + line-height: 1.25; +} + +.markdown-body h2 { + font-weight: 600; + padding-bottom: .3em; + font-size: 1.5em; + border-bottom: 1px solid hsla(210,18%,87%,1); +} + +.markdown-body h3 { + font-weight: 600; + font-size: 1.25em; +} + +.markdown-body h4 { + font-weight: 600; + font-size: 1em; +} + +.markdown-body h5 { + font-weight: 600; + font-size: .875em; +} + +.markdown-body h6 { + font-weight: 600; + font-size: .85em; + color: #57606a; +} + +.markdown-body p { + margin-top: 0; + margin-bottom: 10px; +} + +.markdown-body blockquote { + margin: 0; + padding: 0 1em; + color: #57606a; + border-left: .25em solid #d0d7de; +} + +.markdown-body ul, +.markdown-body ol { + margin-top: 0; + margin-bottom: 0; + padding-left: 2em; +} + +.markdown-body ol ol, +.markdown-body ul ol { + list-style-type: lower-roman; +} + +.markdown-body ul ul ol, +.markdown-body ul ol ol, +.markdown-body ol ul ol, +.markdown-body ol ol ol { + list-style-type: lower-alpha; +} + +.markdown-body dd { + margin-left: 0; +} + +.markdown-body tt, +.markdown-body code { + font-family: ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace; + font-size: 12px; +} + +.markdown-body pre { + margin-top: 0; + margin-bottom: 0; + font-family: ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace; + font-size: 12px; + word-wrap: normal; +} + +.markdown-body :-ms-input-placeholder { + color: #6e7781; + opacity: 1; +} + +.markdown-body ::-ms-input-placeholder { + color: #6e7781; + opacity: 1; +} + +.markdown-body ::placeholder { + color: #6e7781; + opacity: 1; +} + +.markdown-body .pl-c { + color: #6e7781; +} + +.markdown-body .pl-c1, +.markdown-body .pl-s .pl-v { + color: #0550ae; +} + +.markdown-body .pl-e, +.markdown-body .pl-en { + color: #8250df; +} + +.markdown-body .pl-smi, +.markdown-body .pl-s .pl-s1 { + color: #24292f; +} + +.markdown-body .pl-ent { + color: #116329; +} + +.markdown-body .pl-k { + color: #cf222e; +} + +.markdown-body .pl-s, +.markdown-body .pl-pds, +.markdown-body .pl-s .pl-pse .pl-s1, +.markdown-body .pl-sr, +.markdown-body .pl-sr .pl-cce, +.markdown-body .pl-sr .pl-sre, +.markdown-body .pl-sr .pl-sra { + color: #0a3069; +} + +.markdown-body .pl-v, +.markdown-body .pl-smw { + color: #953800; +} + +.markdown-body .pl-bu { + color: #82071e; +} + +.markdown-body .pl-ii { + color: #f6f8fa; + background-color: #82071e; +} + +.markdown-body .pl-c2 { + color: #f6f8fa; + background-color: #cf222e; +} + +.markdown-body .pl-sr .pl-cce { + font-weight: bold; + color: #116329; +} + +.markdown-body .pl-ml { + color: #3b2300; +} + +.markdown-body .pl-mh, +.markdown-body .pl-mh .pl-en, +.markdown-body .pl-ms { + font-weight: bold; + color: #0550ae; +} + +.markdown-body .pl-mi { + font-style: italic; + color: #24292f; +} + +.markdown-body .pl-mb { + font-weight: bold; + color: #24292f; +} + +.markdown-body .pl-md { + color: #82071e; + background-color: #FFEBE9; +} + +.markdown-body .pl-mi1 { + color: #116329; + background-color: #dafbe1; +} + +.markdown-body .pl-mc { + color: #953800; + background-color: #ffd8b5; +} + +.markdown-body .pl-mi2 { + color: #eaeef2; + background-color: #0550ae; +} + +.markdown-body .pl-mdr { + font-weight: bold; + color: #8250df; +} + +.markdown-body .pl-ba { + color: #57606a; +} + +.markdown-body .pl-sg { + color: #8c959f; +} + +.markdown-body .pl-corl { + text-decoration: underline; + color: #0a3069; +} + +.markdown-body [data-catalyst] { + display: block; +} + +.markdown-body g-emoji { + font-family: "Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol"; + font-size: 1em; + font-style: normal !important; + font-weight: 400; + line-height: 1; + vertical-align: -0.075em; +} + +.markdown-body g-emoji img { + width: 1em; + height: 1em; +} + +.markdown-body::before { + display: table; + content: ""; +} + +.markdown-body::after { + display: table; + clear: both; + content: ""; +} + +.markdown-body>*:first-child { + margin-top: 0 !important; +} + +.markdown-body>*:last-child { + margin-bottom: 0 !important; +} + +.markdown-body a:not([href]) { + color: inherit; + text-decoration: none; +} + +.markdown-body .absent { + color: #cf222e; +} + +.markdown-body .anchor { + float: left; + padding-right: 4px; + margin-left: -20px; + line-height: 1; +} + +.markdown-body .anchor:focus { + outline: none; +} + +.markdown-body p, +.markdown-body blockquote, +.markdown-body ul, +.markdown-body ol, +.markdown-body dl, +.markdown-body table, +.markdown-body pre, +.markdown-body details { + margin-top: 0; + margin-bottom: 16px; +} + +.markdown-body blockquote>:first-child { + margin-top: 0; +} + +.markdown-body blockquote>:last-child { + margin-bottom: 0; +} + +.markdown-body sup>a::before { + content: "["; +} + +.markdown-body sup>a::after { + content: "]"; +} + +.markdown-body h1 .octicon-link, +.markdown-body h2 .octicon-link, +.markdown-body h3 .octicon-link, +.markdown-body h4 .octicon-link, +.markdown-body h5 .octicon-link, +.markdown-body h6 .octicon-link { + color: #24292f; + vertical-align: middle; + visibility: hidden; +} + +.markdown-body h1:hover .anchor, +.markdown-body h2:hover .anchor, +.markdown-body h3:hover .anchor, +.markdown-body h4:hover .anchor, +.markdown-body h5:hover .anchor, +.markdown-body h6:hover .anchor { + text-decoration: none; +} + +.markdown-body h1:hover .anchor .octicon-link, +.markdown-body h2:hover .anchor .octicon-link, +.markdown-body h3:hover .anchor .octicon-link, +.markdown-body h4:hover .anchor .octicon-link, +.markdown-body h5:hover .anchor .octicon-link, +.markdown-body h6:hover .anchor .octicon-link { + visibility: visible; +} + +.markdown-body h1 tt, +.markdown-body h1 code, +.markdown-body h2 tt, +.markdown-body h2 code, +.markdown-body h3 tt, +.markdown-body h3 code, +.markdown-body h4 tt, +.markdown-body h4 code, +.markdown-body h5 tt, +.markdown-body h5 code, +.markdown-body h6 tt, +.markdown-body h6 code { + padding: 0 .2em; + font-size: inherit; +} + +.markdown-body ul.no-list, +.markdown-body ol.no-list { + padding: 0; + list-style-type: none; +} + +.markdown-body ol[type="1"] { + list-style-type: decimal; +} + +.markdown-body ol[type=a] { + list-style-type: lower-alpha; +} + +.markdown-body ol[type=i] { + list-style-type: lower-roman; +} + +.markdown-body div>ol:not([type]) { + list-style-type: decimal; +} + +.markdown-body ul ul, +.markdown-body ul ol, +.markdown-body ol ol, +.markdown-body ol ul { + margin-top: 0; + margin-bottom: 0; +} + +.markdown-body li>p { + margin-top: 16px; +} + +.markdown-body li+li { + margin-top: .25em; +} + +.markdown-body dl { + padding: 0; +} + +.markdown-body dl dt { + padding: 0; + margin-top: 16px; + font-size: 1em; + font-style: italic; + font-weight: 600; +} + +.markdown-body dl dd { + padding: 0 16px; + margin-bottom: 16px; +} + +.markdown-body table th { + font-weight: 600; +} + +.markdown-body table th, +.markdown-body table td { + padding: 6px 13px; + border: 1px solid #d0d7de; +} + +.markdown-body table tr { + background-color: #ffffff; + border-top: 1px solid hsla(210,18%,87%,1); +} + +.markdown-body table tr:nth-child(2n) { + background-color: #f6f8fa; +} + +.markdown-body table img { + background-color: transparent; +} + +.markdown-body img[align=right] { + padding-left: 20px; +} + +.markdown-body img[align=left] { + padding-right: 20px; +} + +.markdown-body .emoji { + max-width: none; + vertical-align: text-top; + background-color: transparent; +} + +.markdown-body span.frame { + display: block; + overflow: hidden; +} + +.markdown-body span.frame>span { + display: block; + float: left; + width: auto; + padding: 7px; + margin: 13px 0 0; + overflow: hidden; + border: 1px solid #d0d7de; +} + +.markdown-body span.frame span img { + display: block; + float: left; +} + +.markdown-body span.frame span span { + display: block; + padding: 5px 0 0; + clear: both; + color: #24292f; +} + +.markdown-body span.align-center { + display: block; + overflow: hidden; + clear: both; +} + +.markdown-body span.align-center>span { + display: block; + margin: 13px auto 0; + overflow: hidden; + text-align: center; +} + +.markdown-body span.align-center span img { + margin: 0 auto; + text-align: center; +} + +.markdown-body span.align-right { + display: block; + overflow: hidden; + clear: both; +} + +.markdown-body span.align-right>span { + display: block; + margin: 13px 0 0; + overflow: hidden; + text-align: right; +} + +.markdown-body span.align-right span img { + margin: 0; + text-align: right; +} + +.markdown-body span.float-left { + display: block; + float: left; + margin-right: 13px; + overflow: hidden; +} + +.markdown-body span.float-left span { + margin: 13px 0 0; +} + +.markdown-body span.float-right { + display: block; + float: right; + margin-left: 13px; + overflow: hidden; +} + +.markdown-body span.float-right>span { + display: block; + margin: 13px auto 0; + overflow: hidden; + text-align: right; +} + +.markdown-body code, +.markdown-body tt { + padding: .2em .4em; + margin: 0; + font-size: 85%; + background-color: rgba(175,184,193,0.2); + border-radius: 6px; +} + +.markdown-body code br, +.markdown-body tt br { + display: none; +} + +.markdown-body del code { + text-decoration: inherit; +} + +.markdown-body pre code { + font-size: 100%; +} + +.markdown-body pre>code { + padding: 0; + margin: 0; + word-break: normal; + white-space: pre; + background: transparent; + border: 0; +} + +.markdown-body .highlight { + margin-bottom: 16px; +} + +.markdown-body .highlight pre { + margin-bottom: 0; + word-break: normal; +} + +.markdown-body .highlight pre, +.markdown-body pre { + padding: 16px; + overflow: auto; + font-size: 85%; + line-height: 1.45; + background-color: #f6f8fa; + border-radius: 6px; +} + +.markdown-body pre code, +.markdown-body pre tt { + display: inline; + max-width: auto; + padding: 0; + margin: 0; + overflow: visible; + line-height: inherit; + word-wrap: normal; + background-color: transparent; + border: 0; +} + +.markdown-body .csv-data td, +.markdown-body .csv-data th { + padding: 5px; + overflow: hidden; + font-size: 12px; + line-height: 1; + text-align: left; + white-space: nowrap; +} + +.markdown-body .csv-data .blob-num { + padding: 10px 8px 9px; + text-align: right; + background: #ffffff; + border: 0; +} + +.markdown-body .csv-data tr { + border-top: 0; +} + +.markdown-body .csv-data th { + font-weight: 600; + background: #f6f8fa; + border-top: 0; +} + +.markdown-body .footnotes { + font-size: 12px; + color: #57606a; + border-top: 1px solid #d0d7de; +} + +.markdown-body .footnotes ol { + padding-left: 16px; +} + +.markdown-body .footnotes li { + position: relative; +} + +.markdown-body .footnotes li:target::before { + position: absolute; + top: -8px; + right: -8px; + bottom: -8px; + left: -24px; + pointer-events: none; + content: ""; + border: 2px solid #0969da; + border-radius: 6px; +} + +.markdown-body .footnotes li:target { + color: #24292f; +} + +.markdown-body .footnotes .data-footnote-backref g-emoji { + font-family: monospace; +} + +.markdown-body [hidden] { + display: none !important; +} + +.markdown-body ::-webkit-calendar-picker-indicator { + filter: invert(50%); +} diff --git a/github-markdown.css b/github-markdown.css index 7c6cd78..1e6d127 100644 --- a/github-markdown.css +++ b/github-markdown.css @@ -1,49 +1,115 @@ +@media (prefers-color-scheme: dark) { + .markdown-body { + color-scheme: dark; + --color-prettylights-syntax-comment: #8b949e; + --color-prettylights-syntax-constant: #79c0ff; + --color-prettylights-syntax-entity: #d2a8ff; + --color-prettylights-syntax-storage-modifier-import: #c9d1d9; + --color-prettylights-syntax-entity-tag: #7ee787; + --color-prettylights-syntax-keyword: #ff7b72; + --color-prettylights-syntax-string: #a5d6ff; + --color-prettylights-syntax-variable: #ffa657; + --color-prettylights-syntax-brackethighlighter-unmatched: #f85149; + --color-prettylights-syntax-invalid-illegal-text: #f0f6fc; + --color-prettylights-syntax-invalid-illegal-bg: #8e1519; + --color-prettylights-syntax-carriage-return-text: #f0f6fc; + --color-prettylights-syntax-carriage-return-bg: #b62324; + --color-prettylights-syntax-string-regexp: #7ee787; + --color-prettylights-syntax-markup-list: #f2cc60; + --color-prettylights-syntax-markup-heading: #1f6feb; + --color-prettylights-syntax-markup-italic: #c9d1d9; + --color-prettylights-syntax-markup-bold: #c9d1d9; + --color-prettylights-syntax-markup-deleted-text: #ffdcd7; + --color-prettylights-syntax-markup-deleted-bg: #67060c; + --color-prettylights-syntax-markup-inserted-text: #aff5b4; + --color-prettylights-syntax-markup-inserted-bg: #033a16; + --color-prettylights-syntax-markup-changed-text: #ffdfb6; + --color-prettylights-syntax-markup-changed-bg: #5a1e02; + --color-prettylights-syntax-markup-ignored-text: #c9d1d9; + --color-prettylights-syntax-markup-ignored-bg: #1158c7; + --color-prettylights-syntax-meta-diff-range: #d2a8ff; + --color-prettylights-syntax-brackethighlighter-angle: #8b949e; + --color-prettylights-syntax-sublimelinter-gutter-mark: #484f58; + --color-prettylights-syntax-constant-other-reference-link: #a5d6ff; + --color-fg-default: #c9d1d9; + --color-fg-muted: #8b949e; + --color-fg-subtle: #484f58; + --color-canvas-default: #0d1117; + --color-canvas-subtle: #161b22; + --color-border-default: #30363d; + --color-border-muted: #21262d; + --color-neutral-muted: rgba(110,118,129,0.4); + --color-accent-fg: #58a6ff; + --color-accent-emphasis: #1f6feb; + --color-danger-fg: #f85149; + } +} + +@media (prefers-color-scheme: light) { + .markdown-body { + color-scheme: light; + --color-prettylights-syntax-comment: #6e7781; + --color-prettylights-syntax-constant: #0550ae; + --color-prettylights-syntax-entity: #8250df; + --color-prettylights-syntax-storage-modifier-import: #24292f; + --color-prettylights-syntax-entity-tag: #116329; + --color-prettylights-syntax-keyword: #cf222e; + --color-prettylights-syntax-string: #0a3069; + --color-prettylights-syntax-variable: #953800; + --color-prettylights-syntax-brackethighlighter-unmatched: #82071e; + --color-prettylights-syntax-invalid-illegal-text: #f6f8fa; + --color-prettylights-syntax-invalid-illegal-bg: #82071e; + --color-prettylights-syntax-carriage-return-text: #f6f8fa; + --color-prettylights-syntax-carriage-return-bg: #cf222e; + --color-prettylights-syntax-string-regexp: #116329; + --color-prettylights-syntax-markup-list: #3b2300; + --color-prettylights-syntax-markup-heading: #0550ae; + --color-prettylights-syntax-markup-italic: #24292f; + --color-prettylights-syntax-markup-bold: #24292f; + --color-prettylights-syntax-markup-deleted-text: #82071e; + --color-prettylights-syntax-markup-deleted-bg: #FFEBE9; + --color-prettylights-syntax-markup-inserted-text: #116329; + --color-prettylights-syntax-markup-inserted-bg: #dafbe1; + --color-prettylights-syntax-markup-changed-text: #953800; + --color-prettylights-syntax-markup-changed-bg: #ffd8b5; + --color-prettylights-syntax-markup-ignored-text: #eaeef2; + --color-prettylights-syntax-markup-ignored-bg: #0550ae; + --color-prettylights-syntax-meta-diff-range: #8250df; + --color-prettylights-syntax-brackethighlighter-angle: #57606a; + --color-prettylights-syntax-sublimelinter-gutter-mark: #8c959f; + --color-prettylights-syntax-constant-other-reference-link: #0a3069; + --color-fg-default: #24292f; + --color-fg-muted: #57606a; + --color-fg-subtle: #6e7781; + --color-canvas-default: #ffffff; + --color-canvas-subtle: #f6f8fa; + --color-border-default: #d0d7de; + --color-border-muted: hsla(210,18%,87%,1); + --color-neutral-muted: rgba(175,184,193,0.2); + --color-accent-fg: #0969da; + --color-accent-emphasis: #0969da; + --color-danger-fg: #cf222e; + } +} + +.markdown-body { + -ms-text-size-adjust: 100%; + -webkit-text-size-adjust: 100%; + margin: 0; + color: var(--color-fg-default); + background-color: var(--color-canvas-default); + font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"; + font-size: 16px; + line-height: 1.5; + word-wrap: break-word; +} + .markdown-body .octicon { display: inline-block; fill: currentColor; vertical-align: text-bottom; } -.markdown-body .anchor { - float: left; - line-height: 1; - margin-left: -20px; - padding-right: 4px; -} - -.markdown-body .anchor:focus { - outline: none; -} - -.markdown-body h1 .octicon-link, -.markdown-body h2 .octicon-link, -.markdown-body h3 .octicon-link, -.markdown-body h4 .octicon-link, -.markdown-body h5 .octicon-link, -.markdown-body h6 .octicon-link { - color: #1b1f23; - vertical-align: middle; - visibility: hidden; -} - -.markdown-body h1:hover .anchor, -.markdown-body h2:hover .anchor, -.markdown-body h3:hover .anchor, -.markdown-body h4:hover .anchor, -.markdown-body h5:hover .anchor, -.markdown-body h6:hover .anchor { - text-decoration: none; -} - -.markdown-body h1:hover .anchor .octicon-link, -.markdown-body h2:hover .anchor .octicon-link, -.markdown-body h3:hover .anchor .octicon-link, -.markdown-body h4:hover .anchor .octicon-link, -.markdown-body h5:hover .anchor .octicon-link, -.markdown-body h6:hover .anchor .octicon-link { - visibility: visible; -} - .markdown-body h1:hover .anchor .octicon-link:before, .markdown-body h2:hover .anchor .octicon-link:before, .markdown-body h3:hover .anchor .octicon-link:before, @@ -54,19 +120,14 @@ height: 16px; content: ' '; display: inline-block; - background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' version='1.1' width='16' height='16' aria-hidden='true'%3E%3Cpath fill-rule='evenodd' d='M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z'%3E%3C/path%3E%3C/svg%3E"); -}.markdown-body { - -ms-text-size-adjust: 100%; - -webkit-text-size-adjust: 100%; - line-height: 1.5; - color: #24292e; - font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji; - font-size: 16px; - line-height: 1.5; - word-wrap: break-word; + background-color: currentColor; + -webkit-mask-image: url("data:image/svg+xml,"); + mask-image: url("data:image/svg+xml,"); } -.markdown-body details { +.markdown-body details, +.markdown-body figcaption, +.markdown-body figure { display: block; } @@ -75,7 +136,9 @@ } .markdown-body a { - background-color: initial; + background-color: transparent; + color: var(--color-accent-fg); + text-decoration: none; } .markdown-body a:active, @@ -83,92 +146,157 @@ outline-width: 0; } +.markdown-body abbr[title] { + border-bottom: none; + -webkit-text-decoration: underline dotted; + text-decoration: underline dotted; +} + +.markdown-body b, .markdown-body strong { - font-weight: inherit; - font-weight: bolder; + font-weight: 600; +} + +.markdown-body dfn { + font-style: italic; } .markdown-body h1 { - font-size: 2em; margin: .67em 0; + font-weight: 600; + padding-bottom: .3em; + font-size: 2em; + border-bottom: 1px solid var(--color-border-muted); +} + +.markdown-body mark { + background-color: #ff0; + color: var(--color-text-primary); +} + +.markdown-body small { + font-size: 90%; +} + +.markdown-body sub, +.markdown-body sup { + font-size: 75%; + line-height: 0; + position: relative; + vertical-align: baseline; +} + +.markdown-body sub { + bottom: -0.25em; +} + +.markdown-body sup { + top: -0.5em; } .markdown-body img { border-style: none; + max-width: 100%; + box-sizing: content-box; + background-color: var(--color-canvas-default); } .markdown-body code, .markdown-body kbd, -.markdown-body pre { +.markdown-body pre, +.markdown-body samp { font-family: monospace,monospace; font-size: 1em; } +.markdown-body figure { + margin: 1em 40px; +} + .markdown-body hr { - box-sizing: initial; - height: 0; - overflow: visible; + box-sizing: content-box; + overflow: hidden; + background: transparent; + border-bottom: 1px solid var(--color-border-muted); + height: .25em; + padding: 0; + margin: 24px 0; + background-color: var(--color-border-default); + border: 0; } -.markdown-body input { - font: inherit; - margin: 0; +.markdown-body html [type=button], +.markdown-body [type=reset], +.markdown-body [type=submit] { + -webkit-appearance: button; } -.markdown-body input { - overflow: visible; +.markdown-body [type=button]::-moz-focus-inner, +.markdown-body [type=reset]::-moz-focus-inner, +.markdown-body [type=submit]::-moz-focus-inner { + border-style: none; + padding: 0; +} + +.markdown-body [type=button]:-moz-focusring, +.markdown-body [type=reset]:-moz-focusring, +.markdown-body [type=submit]:-moz-focusring { + outline: 1px dotted ButtonText; } -.markdown-body [type=checkbox] { +.markdown-body [type=checkbox], +.markdown-body [type=radio] { box-sizing: border-box; padding: 0; } -.markdown-body * { - box-sizing: border-box; +.markdown-body [type=number]::-webkit-inner-spin-button, +.markdown-body [type=number]::-webkit-outer-spin-button { + height: auto; } -.markdown-body input { - font-family: inherit; - font-size: inherit; - line-height: inherit; +.markdown-body [type=search] { + -webkit-appearance: textfield; + outline-offset: -2px; } -.markdown-body a { - color: #0366d6; - text-decoration: none; +.markdown-body [type=search]::-webkit-search-cancel-button, +.markdown-body [type=search]::-webkit-search-decoration { + -webkit-appearance: none; } -.markdown-body a:hover { - text-decoration: underline; +.markdown-body ::-webkit-input-placeholder { + color: inherit; + opacity: .54; } -.markdown-body strong { - font-weight: 600; +.markdown-body ::-webkit-file-upload-button { + -webkit-appearance: button; + font: inherit; } -.markdown-body hr { - height: 0; - margin: 15px 0; - overflow: hidden; - background: transparent; - border: 0; - border-bottom: 1px solid #dfe2e5; +.markdown-body a:hover { + text-decoration: underline; } -.markdown-body hr:after, -.markdown-body hr:before { +.markdown-body hr::before { display: table; content: ""; } -.markdown-body hr:after { +.markdown-body hr::after { + display: table; clear: both; + content: ""; } .markdown-body table { border-spacing: 0; border-collapse: collapse; + display: block; + width: max-content; + max-width: 100%; + overflow: auto; } .markdown-body td, @@ -180,17 +308,22 @@ cursor: pointer; } +.markdown-body details:not([open])>*:not(summary) { + display: none !important; +} + .markdown-body kbd { display: inline-block; padding: 3px 5px; - font: 11px SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace; + font: 11px ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace; line-height: 10px; - color: #444d56; + color: var(--color-fg-default); vertical-align: middle; - background-color: #fafbfc; - border: 1px solid #d1d5da; - border-radius: 3px; - box-shadow: inset 0 -1px 0 #d1d5da; + background-color: var(--color-canvas-subtle); + border: solid 1px var(--color-neutral-muted); + border-bottom-color: var(--color-neutral-muted); + border-radius: 6px; + box-shadow: inset 0 -1px 0 var(--color-neutral-muted); } .markdown-body h1, @@ -199,47 +332,38 @@ .markdown-body h4, .markdown-body h5, .markdown-body h6 { - margin-top: 0; - margin-bottom: 0; -} - -.markdown-body h1 { - font-size: 32px; -} - -.markdown-body h1, -.markdown-body h2 { + margin-top: 24px; + margin-bottom: 16px; font-weight: 600; + line-height: 1.25; } .markdown-body h2 { - font-size: 24px; + font-weight: 600; + padding-bottom: .3em; + font-size: 1.5em; + border-bottom: 1px solid var(--color-border-muted); } .markdown-body h3 { - font-size: 20px; -} - -.markdown-body h3, -.markdown-body h4 { font-weight: 600; + font-size: 1.25em; } .markdown-body h4 { - font-size: 16px; + font-weight: 600; + font-size: 1em; } .markdown-body h5 { - font-size: 14px; -} - -.markdown-body h5, -.markdown-body h6 { font-weight: 600; + font-size: .875em; } .markdown-body h6 { - font-size: 12px; + font-weight: 600; + font-size: .85em; + color: var(--color-fg-muted); } .markdown-body p { @@ -249,13 +373,16 @@ .markdown-body blockquote { margin: 0; + padding: 0 1em; + color: var(--color-fg-muted); + border-left: .25em solid var(--color-border-default); } -.markdown-body ol, -.markdown-body ul { - padding-left: 0; +.markdown-body ul, +.markdown-body ol { margin-top: 0; margin-bottom: 0; + padding-left: 2em; } .markdown-body ol ol, @@ -263,10 +390,10 @@ list-style-type: lower-roman; } -.markdown-body ol ol ol, -.markdown-body ol ul ol, +.markdown-body ul ul ol, .markdown-body ul ol ol, -.markdown-body ul ul ol { +.markdown-body ol ul ol, +.markdown-body ol ol ol { list-style-type: lower-alpha; } @@ -274,534 +401,490 @@ margin-left: 0; } -.markdown-body code, -.markdown-body pre { - font-family: SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace; +.markdown-body tt, +.markdown-body code { + font-family: ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace; font-size: 12px; } .markdown-body pre { margin-top: 0; margin-bottom: 0; + font-family: ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace; + font-size: 12px; + word-wrap: normal; } -.markdown-body input::-webkit-inner-spin-button, -.markdown-body input::-webkit-outer-spin-button { - margin: 0; - -webkit-appearance: none; - appearance: none; -} - -.markdown-body :checked+.radio-label { - position: relative; - z-index: 1; - border-color: #0366d6; -} - -.markdown-body .border { - border: 1px solid #e1e4e8!important; -} - -.markdown-body .border-0 { - border: 0!important; -} - -.markdown-body .border-bottom { - border-bottom: 1px solid #e1e4e8!important; -} - -.markdown-body .rounded-1 { - border-radius: 3px!important; -} - -.markdown-body .bg-white { - background-color: #fff!important; -} - -.markdown-body .bg-gray-light { - background-color: #fafbfc!important; -} - -.markdown-body .text-gray-light { - color: #6a737d!important; -} - -.markdown-body .mb-0 { - margin-bottom: 0!important; -} - -.markdown-body .my-2 { - margin-top: 8px!important; - margin-bottom: 8px!important; -} - -.markdown-body .pl-0 { - padding-left: 0!important; -} - -.markdown-body .py-0 { - padding-top: 0!important; - padding-bottom: 0!important; -} - -.markdown-body .pl-1 { - padding-left: 4px!important; -} - -.markdown-body .pl-2 { - padding-left: 8px!important; -} - -.markdown-body .py-2 { - padding-top: 8px!important; - padding-bottom: 8px!important; -} - -.markdown-body .pl-3, -.markdown-body .px-3 { - padding-left: 16px!important; -} - -.markdown-body .px-3 { - padding-right: 16px!important; -} - -.markdown-body .pl-4 { - padding-left: 24px!important; -} - -.markdown-body .pl-5 { - padding-left: 32px!important; -} - -.markdown-body .pl-6 { - padding-left: 40px!important; -} - -.markdown-body .f6 { - font-size: 12px!important; +.markdown-body :-ms-input-placeholder { + color: var(--color-fg-subtle); + opacity: 1; } -.markdown-body .lh-condensed { - line-height: 1.25!important; +.markdown-body ::-ms-input-placeholder { + color: var(--color-fg-subtle); + opacity: 1; } -.markdown-body .text-bold { - font-weight: 600!important; +.markdown-body ::placeholder { + color: var(--color-fg-subtle); + opacity: 1; } .markdown-body .pl-c { - color: #6a737d; + color: var(--color-prettylights-syntax-comment); } .markdown-body .pl-c1, .markdown-body .pl-s .pl-v { - color: #005cc5; + color: var(--color-prettylights-syntax-constant); } .markdown-body .pl-e, .markdown-body .pl-en { - color: #6f42c1; + color: var(--color-prettylights-syntax-entity); } -.markdown-body .pl-s .pl-s1, -.markdown-body .pl-smi { - color: #24292e; +.markdown-body .pl-smi, +.markdown-body .pl-s .pl-s1 { + color: var(--color-prettylights-syntax-storage-modifier-import); } .markdown-body .pl-ent { - color: #22863a; + color: var(--color-prettylights-syntax-entity-tag); } .markdown-body .pl-k { - color: #d73a49; + color: var(--color-prettylights-syntax-keyword); } -.markdown-body .pl-pds, .markdown-body .pl-s, +.markdown-body .pl-pds, .markdown-body .pl-s .pl-pse .pl-s1, .markdown-body .pl-sr, .markdown-body .pl-sr .pl-cce, -.markdown-body .pl-sr .pl-sra, -.markdown-body .pl-sr .pl-sre { - color: #032f62; +.markdown-body .pl-sr .pl-sre, +.markdown-body .pl-sr .pl-sra { + color: var(--color-prettylights-syntax-string); } -.markdown-body .pl-smw, -.markdown-body .pl-v { - color: #e36209; +.markdown-body .pl-v, +.markdown-body .pl-smw { + color: var(--color-prettylights-syntax-variable); } .markdown-body .pl-bu { - color: #b31d28; + color: var(--color-prettylights-syntax-brackethighlighter-unmatched); } .markdown-body .pl-ii { - color: #fafbfc; - background-color: #b31d28; + color: var(--color-prettylights-syntax-invalid-illegal-text); + background-color: var(--color-prettylights-syntax-invalid-illegal-bg); } .markdown-body .pl-c2 { - color: #fafbfc; - background-color: #d73a49; -} - -.markdown-body .pl-c2:before { - content: "^M"; + color: var(--color-prettylights-syntax-carriage-return-text); + background-color: var(--color-prettylights-syntax-carriage-return-bg); } .markdown-body .pl-sr .pl-cce { - font-weight: 700; - color: #22863a; + font-weight: bold; + color: var(--color-prettylights-syntax-string-regexp); } .markdown-body .pl-ml { - color: #735c0f; + color: var(--color-prettylights-syntax-markup-list); } .markdown-body .pl-mh, .markdown-body .pl-mh .pl-en, .markdown-body .pl-ms { - font-weight: 700; - color: #005cc5; + font-weight: bold; + color: var(--color-prettylights-syntax-markup-heading); } .markdown-body .pl-mi { font-style: italic; - color: #24292e; + color: var(--color-prettylights-syntax-markup-italic); } .markdown-body .pl-mb { - font-weight: 700; - color: #24292e; + font-weight: bold; + color: var(--color-prettylights-syntax-markup-bold); } .markdown-body .pl-md { - color: #b31d28; - background-color: #ffeef0; + color: var(--color-prettylights-syntax-markup-deleted-text); + background-color: var(--color-prettylights-syntax-markup-deleted-bg); } .markdown-body .pl-mi1 { - color: #22863a; - background-color: #f0fff4; + color: var(--color-prettylights-syntax-markup-inserted-text); + background-color: var(--color-prettylights-syntax-markup-inserted-bg); } .markdown-body .pl-mc { - color: #e36209; - background-color: #ffebda; + color: var(--color-prettylights-syntax-markup-changed-text); + background-color: var(--color-prettylights-syntax-markup-changed-bg); } .markdown-body .pl-mi2 { - color: #f6f8fa; - background-color: #005cc5; + color: var(--color-prettylights-syntax-markup-ignored-text); + background-color: var(--color-prettylights-syntax-markup-ignored-bg); } .markdown-body .pl-mdr { - font-weight: 700; - color: #6f42c1; + font-weight: bold; + color: var(--color-prettylights-syntax-meta-diff-range); } .markdown-body .pl-ba { - color: #586069; + color: var(--color-prettylights-syntax-brackethighlighter-angle); } .markdown-body .pl-sg { - color: #959da5; + color: var(--color-prettylights-syntax-sublimelinter-gutter-mark); } .markdown-body .pl-corl { text-decoration: underline; - color: #032f62; + color: var(--color-prettylights-syntax-constant-other-reference-link); } -.markdown-body .mb-0 { - margin-bottom: 0!important; +.markdown-body [data-catalyst] { + display: block; } -.markdown-body .my-2 { - margin-bottom: 8px!important; +.markdown-body g-emoji { + font-family: "Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol"; + font-size: 1em; + font-style: normal !important; + font-weight: 400; + line-height: 1; + vertical-align: -0.075em; } -.markdown-body .my-2 { - margin-top: 8px!important; +.markdown-body g-emoji img { + width: 1em; + height: 1em; } -.markdown-body .pl-0 { - padding-left: 0!important; +.markdown-body::before { + display: table; + content: ""; } -.markdown-body .py-0 { - padding-top: 0!important; - padding-bottom: 0!important; +.markdown-body::after { + display: table; + clear: both; + content: ""; } -.markdown-body .pl-1 { - padding-left: 4px!important; +.markdown-body>*:first-child { + margin-top: 0 !important; } -.markdown-body .pl-2 { - padding-left: 8px!important; +.markdown-body>*:last-child { + margin-bottom: 0 !important; } -.markdown-body .py-2 { - padding-top: 8px!important; - padding-bottom: 8px!important; +.markdown-body a:not([href]) { + color: inherit; + text-decoration: none; } -.markdown-body .pl-3 { - padding-left: 16px!important; +.markdown-body .absent { + color: var(--color-danger-fg); } -.markdown-body .pl-4 { - padding-left: 24px!important; +.markdown-body .anchor { + float: left; + padding-right: 4px; + margin-left: -20px; + line-height: 1; } -.markdown-body .pl-5 { - padding-left: 32px!important; +.markdown-body .anchor:focus { + outline: none; } -.markdown-body .pl-6 { - padding-left: 40px!important; +.markdown-body p, +.markdown-body blockquote, +.markdown-body ul, +.markdown-body ol, +.markdown-body dl, +.markdown-body table, +.markdown-body pre, +.markdown-body details { + margin-top: 0; + margin-bottom: 16px; } -.markdown-body .pl-7 { - padding-left: 48px!important; +.markdown-body blockquote>:first-child { + margin-top: 0; } -.markdown-body .pl-8 { - padding-left: 64px!important; +.markdown-body blockquote>:last-child { + margin-bottom: 0; } -.markdown-body .pl-9 { - padding-left: 80px!important; +.markdown-body sup>a::before { + content: "["; } -.markdown-body .pl-10 { - padding-left: 96px!important; +.markdown-body sup>a::after { + content: "]"; } -.markdown-body .pl-11 { - padding-left: 112px!important; +.markdown-body h1 .octicon-link, +.markdown-body h2 .octicon-link, +.markdown-body h3 .octicon-link, +.markdown-body h4 .octicon-link, +.markdown-body h5 .octicon-link, +.markdown-body h6 .octicon-link { + color: var(--color-fg-default); + vertical-align: middle; + visibility: hidden; } -.markdown-body .pl-12 { - padding-left: 128px!important; +.markdown-body h1:hover .anchor, +.markdown-body h2:hover .anchor, +.markdown-body h3:hover .anchor, +.markdown-body h4:hover .anchor, +.markdown-body h5:hover .anchor, +.markdown-body h6:hover .anchor { + text-decoration: none; } -.markdown-body hr { - border-bottom-color: #eee; +.markdown-body h1:hover .anchor .octicon-link, +.markdown-body h2:hover .anchor .octicon-link, +.markdown-body h3:hover .anchor .octicon-link, +.markdown-body h4:hover .anchor .octicon-link, +.markdown-body h5:hover .anchor .octicon-link, +.markdown-body h6:hover .anchor .octicon-link { + visibility: visible; } -.markdown-body kbd { - display: inline-block; - padding: 3px 5px; - font: 11px SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace; - line-height: 10px; - color: #444d56; - vertical-align: middle; - background-color: #fafbfc; - border: 1px solid #d1d5da; - border-radius: 3px; - box-shadow: inset 0 -1px 0 #d1d5da; +.markdown-body h1 tt, +.markdown-body h1 code, +.markdown-body h2 tt, +.markdown-body h2 code, +.markdown-body h3 tt, +.markdown-body h3 code, +.markdown-body h4 tt, +.markdown-body h4 code, +.markdown-body h5 tt, +.markdown-body h5 code, +.markdown-body h6 tt, +.markdown-body h6 code { + padding: 0 .2em; + font-size: inherit; } -.markdown-body:after, -.markdown-body:before { - display: table; - content: ""; +.markdown-body ul.no-list, +.markdown-body ol.no-list { + padding: 0; + list-style-type: none; } -.markdown-body:after { - clear: both; +.markdown-body ol[type="1"] { + list-style-type: decimal; } -.markdown-body>:first-child { - margin-top: 0!important; +.markdown-body ol[type=a] { + list-style-type: lower-alpha; } -.markdown-body>:last-child { - margin-bottom: 0!important; +.markdown-body ol[type=i] { + list-style-type: lower-roman; } -.markdown-body a:not([href]) { - color: inherit; - text-decoration: none; +.markdown-body div>ol:not([type]) { + list-style-type: decimal; } -.markdown-body blockquote, -.markdown-body details, -.markdown-body dl, -.markdown-body ol, -.markdown-body p, -.markdown-body pre, -.markdown-body table, -.markdown-body ul { +.markdown-body ul ul, +.markdown-body ul ol, +.markdown-body ol ol, +.markdown-body ol ul { margin-top: 0; - margin-bottom: 16px; + margin-bottom: 0; } -.markdown-body hr { - height: .25em; - padding: 0; - margin: 24px 0; - background-color: #e1e4e8; - border: 0; +.markdown-body li>p { + margin-top: 16px; } -.markdown-body blockquote { - padding: 0 1em; - color: #6a737d; - border-left: .25em solid #dfe2e5; +.markdown-body li+li { + margin-top: .25em; } -.markdown-body blockquote>:first-child { - margin-top: 0; +.markdown-body dl { + padding: 0; } -.markdown-body blockquote>:last-child { - margin-bottom: 0; +.markdown-body dl dt { + padding: 0; + margin-top: 16px; + font-size: 1em; + font-style: italic; + font-weight: 600; } -.markdown-body h1, -.markdown-body h2, -.markdown-body h3, -.markdown-body h4, -.markdown-body h5, -.markdown-body h6 { - margin-top: 24px; +.markdown-body dl dd { + padding: 0 16px; margin-bottom: 16px; - font-weight: 600; - line-height: 1.25; } -.markdown-body h1 { - font-size: 2em; +.markdown-body table th { + font-weight: 600; } -.markdown-body h1, -.markdown-body h2 { - padding-bottom: .3em; - border-bottom: 1px solid #eaecef; +.markdown-body table th, +.markdown-body table td { + padding: 6px 13px; + border: 1px solid var(--color-border-default); } -.markdown-body h2 { - font-size: 1.5em; +.markdown-body table tr { + background-color: var(--color-canvas-default); + border-top: 1px solid var(--color-border-muted); } -.markdown-body h3 { - font-size: 1.25em; +.markdown-body table tr:nth-child(2n) { + background-color: var(--color-canvas-subtle); } -.markdown-body h4 { - font-size: 1em; +.markdown-body table img { + background-color: transparent; } -.markdown-body h5 { - font-size: .875em; +.markdown-body img[align=right] { + padding-left: 20px; } -.markdown-body h6 { - font-size: .85em; - color: #6a737d; +.markdown-body img[align=left] { + padding-right: 20px; } -.markdown-body ol, -.markdown-body ul { - padding-left: 2em; +.markdown-body .emoji { + max-width: none; + vertical-align: text-top; + background-color: transparent; } -.markdown-body ol ol, -.markdown-body ol ul, -.markdown-body ul ol, -.markdown-body ul ul { - margin-top: 0; - margin-bottom: 0; +.markdown-body span.frame { + display: block; + overflow: hidden; } -.markdown-body li { - word-wrap: break-all; +.markdown-body span.frame>span { + display: block; + float: left; + width: auto; + padding: 7px; + margin: 13px 0 0; + overflow: hidden; + border: 1px solid var(--color-border-default); } -.markdown-body li>p { - margin-top: 16px; +.markdown-body span.frame span img { + display: block; + float: left; } -.markdown-body li+li { - margin-top: .25em; +.markdown-body span.frame span span { + display: block; + padding: 5px 0 0; + clear: both; + color: var(--color-fg-default); } -.markdown-body dl { - padding: 0; +.markdown-body span.align-center { + display: block; + overflow: hidden; + clear: both; } -.markdown-body dl dt { - padding: 0; - margin-top: 16px; - font-size: 1em; - font-style: italic; - font-weight: 600; +.markdown-body span.align-center>span { + display: block; + margin: 13px auto 0; + overflow: hidden; + text-align: center; } -.markdown-body dl dd { - padding: 0 16px; - margin-bottom: 16px; +.markdown-body span.align-center span img { + margin: 0 auto; + text-align: center; } -.markdown-body table { +.markdown-body span.align-right { display: block; - width: 100%; - overflow: auto; -} - -.markdown-body table th { - font-weight: 600; + overflow: hidden; + clear: both; } -.markdown-body table td, -.markdown-body table th { - padding: 6px 13px; - border: 1px solid #dfe2e5; +.markdown-body span.align-right>span { + display: block; + margin: 13px 0 0; + overflow: hidden; + text-align: right; } -.markdown-body table tr { - background-color: #fff; - border-top: 1px solid #c6cbd1; +.markdown-body span.align-right span img { + margin: 0; + text-align: right; } -.markdown-body table tr:nth-child(2n) { - background-color: #f6f8fa; +.markdown-body span.float-left { + display: block; + float: left; + margin-right: 13px; + overflow: hidden; } -.markdown-body img { - max-width: 100%; - box-sizing: initial; - background-color: #fff; +.markdown-body span.float-left span { + margin: 13px 0 0; } -.markdown-body img[align=right] { - padding-left: 20px; +.markdown-body span.float-right { + display: block; + float: right; + margin-left: 13px; + overflow: hidden; } -.markdown-body img[align=left] { - padding-right: 20px; +.markdown-body span.float-right>span { + display: block; + margin: 13px auto 0; + overflow: hidden; + text-align: right; } -.markdown-body code { +.markdown-body code, +.markdown-body tt { padding: .2em .4em; margin: 0; font-size: 85%; - background-color: rgba(27,31,35,.05); - border-radius: 3px; + background-color: var(--color-neutral-muted); + border-radius: 6px; } -.markdown-body pre { - word-wrap: normal; +.markdown-body code br, +.markdown-body tt br { + display: none; +} + +.markdown-body del code { + text-decoration: inherit; +} + +.markdown-body pre code { + font-size: 100%; } .markdown-body pre>code { padding: 0; margin: 0; - font-size: 100%; word-break: normal; white-space: pre; background: transparent; @@ -823,11 +906,12 @@ overflow: auto; font-size: 85%; line-height: 1.45; - background-color: #f6f8fa; - border-radius: 3px; + background-color: var(--color-canvas-subtle); + border-radius: 6px; } -.markdown-body pre code { +.markdown-body pre code, +.markdown-body pre tt { display: inline; max-width: auto; padding: 0; @@ -835,151 +919,75 @@ overflow: visible; line-height: inherit; word-wrap: normal; - background-color: initial; + background-color: transparent; border: 0; } -.markdown-body .commit-tease-sha { - display: inline-block; - font-family: SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace; - font-size: 90%; - color: #444d56; -} - -.markdown-body .full-commit .btn-outline:not(:disabled):hover { - color: #005cc5; - border-color: #005cc5; -} - -.markdown-body .blob-wrapper { - overflow-x: auto; - overflow-y: hidden; -} - -.markdown-body .blob-wrapper-embedded { - max-height: 240px; - overflow-y: auto; -} - -.markdown-body .blob-num { - width: 1%; - min-width: 50px; - padding-right: 10px; - padding-left: 10px; - font-family: SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace; +.markdown-body .csv-data td, +.markdown-body .csv-data th { + padding: 5px; + overflow: hidden; font-size: 12px; - line-height: 20px; - color: rgba(27,31,35,.3); - text-align: right; + line-height: 1; + text-align: left; white-space: nowrap; - vertical-align: top; - cursor: pointer; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; } -.markdown-body .blob-num:hover { - color: rgba(27,31,35,.6); +.markdown-body .csv-data .blob-num { + padding: 10px 8px 9px; + text-align: right; + background: var(--color-canvas-default); + border: 0; } -.markdown-body .blob-num:before { - content: attr(data-line-number); +.markdown-body .csv-data tr { + border-top: 0; } -.markdown-body .blob-code { - position: relative; - padding-right: 10px; - padding-left: 10px; - line-height: 20px; - vertical-align: top; +.markdown-body .csv-data th { + font-weight: 600; + background: var(--color-canvas-subtle); + border-top: 0; } -.markdown-body .blob-code-inner { - overflow: visible; - font-family: SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace; +.markdown-body .footnotes { font-size: 12px; - color: #24292e; - word-wrap: normal; - white-space: pre; -} - -.markdown-body .pl-token.active, -.markdown-body .pl-token:hover { - cursor: pointer; - background: #ffea7f; -} - -.markdown-body .tab-size[data-tab-size="1"] { - -moz-tab-size: 1; - tab-size: 1; -} - -.markdown-body .tab-size[data-tab-size="2"] { - -moz-tab-size: 2; - tab-size: 2; -} - -.markdown-body .tab-size[data-tab-size="3"] { - -moz-tab-size: 3; - tab-size: 3; + color: var(--color-fg-muted); + border-top: 1px solid var(--color-border-default); } -.markdown-body .tab-size[data-tab-size="4"] { - -moz-tab-size: 4; - tab-size: 4; +.markdown-body .footnotes ol { + padding-left: 16px; } -.markdown-body .tab-size[data-tab-size="5"] { - -moz-tab-size: 5; - tab-size: 5; -} - -.markdown-body .tab-size[data-tab-size="6"] { - -moz-tab-size: 6; - tab-size: 6; -} - -.markdown-body .tab-size[data-tab-size="7"] { - -moz-tab-size: 7; - tab-size: 7; -} - -.markdown-body .tab-size[data-tab-size="8"] { - -moz-tab-size: 8; - tab-size: 8; -} - -.markdown-body .tab-size[data-tab-size="9"] { - -moz-tab-size: 9; - tab-size: 9; -} - -.markdown-body .tab-size[data-tab-size="10"] { - -moz-tab-size: 10; - tab-size: 10; +.markdown-body .footnotes li { + position: relative; } -.markdown-body .tab-size[data-tab-size="11"] { - -moz-tab-size: 11; - tab-size: 11; +.markdown-body .footnotes li:target::before { + position: absolute; + top: -8px; + right: -8px; + bottom: -8px; + left: -24px; + pointer-events: none; + content: ""; + border: 2px solid var(--color-accent-emphasis); + border-radius: 6px; } -.markdown-body .tab-size[data-tab-size="12"] { - -moz-tab-size: 12; - tab-size: 12; +.markdown-body .footnotes li:target { + color: var(--color-fg-default); } -.markdown-body .task-list-item { - list-style-type: none; +.markdown-body .footnotes .data-footnote-backref g-emoji { + font-family: monospace; } -.markdown-body .task-list-item+.task-list-item { - margin-top: 3px; +.markdown-body [hidden] { + display: none !important; } -.markdown-body .task-list-item input { - margin: 0 .2em .25em -1.6em; - vertical-align: middle; +.markdown-body ::-webkit-calendar-picker-indicator { + filter: invert(50%); } diff --git a/index.html b/index.html index ec9d64d..8b54af2 100644 --- a/index.html +++ b/index.html @@ -4,6 +4,7 @@ GitHub Markdown CSS demo +

Unicorns

From 7f38dcb9054bc5d860fac65291f5c98fef47932c Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Sat, 19 Sep 2026 02:06:40 +0700 Subject: [PATCH 80/80] Meta tweaks --- .github/security.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/security.md b/.github/security.md index 5358dc5..92e453c 100644 --- a/.github/security.md +++ b/.github/security.md @@ -1,3 +1,5 @@ # Security Policy -To report a security vulnerability, please use the [Tidelift security contact](https://tidelift.com/security). Tidelift will coordinate the fix and disclosure. +To report a security vulnerability, please submit it [here](https://github.com/sindresorhus/github-markdown-css/security/advisories/new). + +No AI slop will be accepted.