-
Notifications
You must be signed in to change notification settings - Fork 96
/
index.html
35 lines (35 loc) · 1.2 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>IE9 Example</title>
<link
rel="stylesheet"
href="https://unpkg.com/[email protected]/dist/index.min.css"
/>
<link rel="stylesheet" href="https://unpkg.com/github-markdown-css" />
<script src="https://polyfill.io/v3/polyfill.min.js"></script>
<script src="https://polyfill.io/v3/polyfill.min.js?features=Uint16Array,Array.prototype.find,smoothscroll"></script>
<script src="https://unpkg.com/[email protected]/dist/index.es5.min.js"></script>
<script src="https://unpkg.com/@bytemd/[email protected]/dist/index.es5.min.js"></script>
</head>
<body>
<body>
<!-- prettier-ignore -->
<script>
var plugins = [bytemdPluginGfm()];
var editor = new bytemd.Editor({
target: document.body,
props: {
value: '# heading\n\nparagraph\n\n> blockquote',
plugins: plugins
}
});
editor.$on('change', function (e) {
editor.$set({ value: e.detail.value });
});
</script>
</body>
</body>
</html>