vnote/src/resources/markdown_template.html
Le Tan 06fc4d5831 support custom code block style of highlightjs
Add two config:
- template_code_block_css
- template_code_block_css_url
2017-09-30 19:01:21 +08:00

36 lines
1005 B
HTML

<!doctype html>
<html lang="en">
<meta charset="utf-8">
<head>
<style type="text/css">
<!-- BACKGROUND_PLACE_HOLDER -->
</style>
<style type="text/css">
@keyframes flash {
0% { color: #75C5B5; }
10% { color: #15AE67; }
40% { color: #15AE67; }
50% { color: #75C5B5; }
60% { color: #15AE67; }
90% { color: #15AE67; }
}
.highlighted-anchor {
animation: 1s flash;
}
</style>
<link rel="stylesheet" type="text/css" href="CSS_PLACE_HOLDER">
<link rel="stylesheet" type="text/css" href="HIGHLIGHTJS_CSS_PLACE_HOLDER">
<script src="qrc:/resources/qwebchannel.js"></script>
<script src="qrc:/utils/highlightjs/highlight.pack.js"></script>
<!-- EXTRA_PLACE_HOLDER -->
<script src="JS_PLACE_HOLDER" defer></script>
<script src="qrc:/resources/markdown_template.js" defer></script>
</head>
<body>
<div id="placeholder"></div>
</body>
</html>