Skip to content

Instantly share code, notes, and snippets.

@haxpor
Created November 23, 2016 06:44
Show Gist options
  • Save haxpor/f00627130478d23f04fcc794cdf3ff69 to your computer and use it in GitHub Desktop.
Save haxpor/f00627130478d23f04fcc794cdf3ff69 to your computer and use it in GitHub Desktop.
Default template of Macdown (Version 0.6.4 (786) to include support for mermaid, and fix final css styling.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
{{{ titleTag }}}
{{#each styleTags }}
{{{ this }}}
{{/each }}
<link rel="stylesheet" type="text/css" href="
https://cdnjs.cloudflare.com/ajax/libs/mermaid/6.0.0/mermaid.css">
<style>
code {
white-space: normal;
}
.mermaid {
text-align: center;
}
</style>
</head>
<body>
{{{ body }}}
{{#each scriptTags }}
{{{ this }}}
{{/each }}
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mermaid/6.0.0/mermaid.min.js"></script>
<script type="text/javascript">mermaid.initialize({startOnLoad:true});</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment