HackMD/public/views/pretty.ejs

58 lines
2.6 KiB
Text
Raw Normal View History

2015-05-04 07:53:29 +00:00
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>
HackMD - Collaborative notes
</title>
<link rel="icon" type="image/png" href="<%- url %>/favicon.png">
<link rel="apple-touch-icon" href="<%- url %>/apple-touch-icon.png">
<link rel="stylesheet" href='<%- url %>/vendor/bootstrap/css/bootstrap.min.css'>
<link rel="stylesheet" href='<%- url %>/vendor/font-awesome/css/font-awesome.min.css'>
<link rel="stylesheet" href='<%- url %>/css/github-extract.css'>
<link rel="stylesheet" href='<%- url %>/css/gist.css'>
<link rel="stylesheet" href='<%- url %>/vendor/highlight-js/github.min.css'>
<link rel="stylesheet" href='<%- url %>/css/markdown.css'>
<link rel="stylesheet" href='<%- url %>/vendor/emojify/css/emojify.min.css'>
<link rel="stylesheet" href='<%- url %>/css/extra.css'>
<link rel="stylesheet" href='<%- url %>/css/site.css'>
</head>
<body>
<div class="container markdown-body" style="display:none;">
<%- body %>
</div>
</body>
</html>
<!--<script src="<%- url %>/js/ga.js"></script>-->
<script src="<%- url %>/vendor/jquery-1.11.2.min.js"></script>
<script src="<%- url %>/vendor/lz-string.min.js"></script>
<script src="<%- url %>/vendor/remarkable.min.js"></script>
<script src="<%- url %>/vendor/remarkable-regex.js"></script>
<script src="<%- url %>/vendor/gist-embed.js"></script>
<script src="<%- url %>/vendor/string.min.js"></script>
<script src="<%- url %>/vendor/highlight-js/highlight.min.js"></script>
<script src="<%- url %>/vendor/emojify/js/emojify.min.js"></script>
<script src="<%- url %>/vendor/raphael-min.js"></script>
<script src="<%- url %>/vendor/underscore-min.js"></script>
<script src="<%- url %>/vendor/sequence-diagrams/sequence-diagram-min.js"></script>
<script src="<%- url %>/vendor/flowchart/flowchart-1.4.0.min.js"></script>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ messageStyle: "none", skipStartupTypeset: true ,tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']], processEscapes: true }});
</script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
<script src="<%- url %>/js/extra.js"></script>
<script>
var raw = $(".markdown-body").text();
var markdown = LZString.decompressFromBase64(raw);
var result = postProcess(md.render(markdown));
var markdown = $(".markdown-body");
markdown.html(result);
markdown.show();
finishView(markdown);
autoLinkify(markdown);
scrollToHash();
</script>