-
Notifications
You must be signed in to change notification settings - Fork 11
/
index.html
73 lines (61 loc) · 3.12 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>markdown-toolbar</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
<link rel="stylesheet" href="dist/markdown-toolbar.css" type="text/css" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/commonmark/0.28.1/commonmark.min.js"></script>
<script src="dist/markdown-toolbar.js"></script>
<style type="text/css">
textarea {
width: 400px;
}
.markdown-preview {
width: 400px;
min-height: 30px;
}
</style>
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-light bg-faded">
<button class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<a class="navbar-brand" href="#">markdown-toolbar</a>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto">
<li class="nav-item">
<a class="nav-link" href="https://github.com/nikolas/markdown-toolbar">github</a>
</li>
</ul>
</div>
</nav>
<div class="container">
<h1>markdown-toolbar sandbox</h1>
<textarea class="toolbar" rows="6"></textarea>
<hr />
<h3>Source:</h3>
<pre>
<link rel="stylesheet" href="<a href="https://github.com/nikolas/markdown-toolbar/blob/master/dist/markdown-toolbar.css">dist/markdown-toolbar.css</a>" type="text/css" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/commonmark/0.28.1/commonmark.min.js"></script>
<script src="<a href="https://github.com/nikolas/markdown-toolbar/blob/master/dist/markdown-toolbar.js">dist/markdown-toolbar.js</a>"></script>
<textarea class="toolbar" rows="6"></textarea>
<script>
$(document).ready(function() {
$('.toolbar').markdownToolbar();
});
</script>
</pre>
</div>
<script>
$(document).ready(function() {
$('.toolbar').markdownToolbar();
});
</script>
</body>
</html>