Skip to content
main
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
Oct 15, 2017
Oct 15, 2017
Oct 15, 2017
Jan 31, 2019
Feb 22, 2020
Jan 31, 2019

generate-github-markdown-css

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>