Tuesday, November 25, 2014

The minimal amount of CSS to replicate the GitHub Markdown style

Use github-markdown.css to replicate the GitHub Markdown style:

1. Download CSS file.

2. Include it into your HTML code and add a markdown-body class to the styles:

<link rel="stylesheet" href="github-markdown.css">
<style>
    .markdown-body {
        min-width: 200px;
        max-width: 790px;
        margin: 0 auto;
        padding: 30px;
    }
</style>

3. Apply markdown-body class to any container:

<body class="markdown-body">
...
</body>

1 comment:

  1. getEasycss i hope it may be useful for you and give feedback
    https://github.com/gopalkumar315/geteasycss

    ReplyDelete