Skip to content
Generate the CSS for github-markdown-css
Branch: master
Clone or download
Latest commit 0a18c6b Feb 1, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.editorconfig
.gitattributes Meta tweaks Jan 31, 2019
.gitignore
.npmrc Meta tweaks Oct 15, 2017
.travis.yml Meta tweaks Jan 31, 2019
cli.js
fixture.md Include `<details>` tag in the fixture Jan 31, 2019
index.js
license
package.json
readme.md
test.js Meta tweaks Jan 31, 2019

readme.md

generate-github-markdown-css Build Status

Generate the CSS for github-markdown-css

Get the CSS

See github-markdown-css

How

First a rendered Markdown with all possible syntax is fetched from GitHub. Then the GitHub.com CSS is fetched and both are run through UnCSS, which extracts only the used styles, and then through a custom cleanup.

API

const githubMarkdownCss = require('generate-github-markdown-css');

(async () => {
	console.log(await githubMarkdownCss());
	//=> '.markdown-body { …'
})();

CLI

$ npm install --global generate-github-markdown-css
$ github-markdown-css --help

  Usage
    $ github-markdown-css > <filename>

License

MIT © Sindre Sorhus

You can’t perform that action at this time.