-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.html
190 lines (184 loc) · 10.4 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
<!DOCTYPE html>
<html>
<head>
<title>Markdownify</title>
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/style.css" rel="stylesheet">
<link rel="stylesheet" href="css/codemirror.css">
<link rel="stylesheet" href="css/base16-dark.css">
<link rel="stylesheet" href="css/font-awesome.min.css">
<link rel="stylesheet" href="css/dialog.css">
<!-- for Google -->
<meta name="description" content="A minimalist markdown editor app" />
<meta name="keywords" content="markdown,editor,javascript" />
<meta name="author" content="Amit Merchant" />
<meta name="copyright" content="MIT" />
<meta name="application-name" content="Markdownify" />
<!-- for Facebook -->
<meta property="og:title" content="Markdownify" />
<meta property="og:type" content="article" />
<meta property="og:image" content="https://raw.githubusercontent.com/amitmerchant1990/markdownify-web/master/img/markdownify.png" />
<meta property="og:url" content="http://www.amitmerchant.com/markdownify-web" />
<meta property="og:description" content="A minimalist markdown editor app" />
<!-- for Twitter -->
<meta name="twitter:card" content="summary" />
<meta name="twitter:title" content="Markdownify" />
<meta name="twitter:description" content="A minimalist markdown editor app" />
<meta name="twitter:image" content="https://raw.githubusercontent.com/amitmerchant1990/markdownify-web/master/img/markdownify.png" />
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-43339302-3', 'auto');
ga('send', 'pageview');
</script>
</head>
<body class="container-fluid">
<div class="main-title">
<span class="app-title">
Markdownify
</span>
<span class="git-buttons">
<!-- Place this tag where you want the button to render. -->
<a href="https://github.com/amitmerchant1990/markdownify" class="btn btn-success" target="_blank">Try Desktop Version</a>
<a class="github-button" href="https://github.com/amitmerchant1990/markdownify-web/fork" data-icon="octicon-repo-forked" data-count-href="/amitmerchant1990/markdownify-web/network" data-count-api="/repos/amitmerchant1990/markdownify-web#forks_count" data-count-aria-label="# forks on GitHub" aria-label="Fork amitmerchant1990/markdownify-web on GitHub">Fork</a>
<a class="github-button" href="https://github.com/amitmerchant1990/markdownify-web" data-icon="octicon-star" data-count-href="/amitmerchant1990/markdownify-web/stargazers" data-count-api="/repos/amitmerchant1990/markdownify-web#stargazers_count" data-count-aria-label="# stargazers on GitHub" aria-label="Star amitmerchant1990/markdownify-web on GitHub">Star</a>
</span>
</div>
<div class="optContainer">
<div class="mode">
<span class="toolContainer">
<a id="angleToolBar" title="Toolbar" class="fa fa-angle-double-right" onclick="showToolBar();" style="cursor: pointer;text-decoration:none;"></a>
</span>
<span>
<input type="radio" name="changeTheme" value="light" onclick="changeTheme(this);" title="Light Mode" checked="checked"> <label style="vertical-align: middle;" title="Light Mode"><b>Light</b></label>
<input type="radio" name="changeTheme" value="dark" onclick="changeTheme(this);" title="Dark Mode"> <label style="vertical-align: middle;" title="Dark Mode"><b>Dark</b></label>
</span>
</div>
<div class="pref" id="pref">
<input type="radio" name="showPreference" value="html" onclick="clkPref(this);"> <label style="vertical-align: middle;"><b>HTML</b></label>
<input type="radio" name="showPreference" value="preview" onclick="clkPref(this);" checked="checked"> <label style="vertical-align: middle;"><b>Preview</b></label>
</div>
</div>
<div id="toolbarArea">
<div style="padding-left:10px;">
<a onclick="toggleFormat('bold');" title="Bold [Ctrl+B]" class="fa fa-bold editor-toolbar"></a>
<a onclick="toggleFormat('italic');" title="Italic [Ctrl+I]" class="fa fa-italic editor-toolbar"></a>
<a onclick="toggleHeadingSmaller();" title="Header [Ctrl+H]" class="fa fa-header editor-toolbar"></a>
<a onclick="toggleFormat('strikethrough');" title="StrikeThrough [Ctrl+/]" class="fa fa-strikethrough editor-toolbar"></a>
<i class="separator">|</i>
<a onclick="toggleBlockquote();" title="Quote" class="fa fa-quote-left editor-toolbar"></a>
<a onclick="toggleUnorderedList();" title="Unordered List" class="fa fa-list-ul editor-toolbar"></a>
<a onclick="toggleOrderedList();" title="Ordered List" class="fa fa-list-ol editor-toolbar"></a>
<i class="separator">|</i>
<a onclick="drawLink();" title="Create Link [Ctrl+L]" class="fa fa-link editor-toolbar"></a>
<a onclick="drawImage();" title="Insert Image [Ctrl+Alt+I]" class="fa fa-picture-o editor-toolbar"></a>
<a onclick="drawTable();" title="Insert Table [Ctrl+Shift+T]" class="fa fa-table editor-toolbar"></a>
<a onclick="drawHorizontalRule();" title="Insert Horizontal Rule" class="fa fa-minus editor-toolbar"></a>
<i class="separator">|</i>
<a onclick="toggleSidePanel();" title="Side-By-Side Panel Toggle" class="fa fa-columns editor-toolbar"></a>
<a data-toggle="modal" data-target="#myModal" title="Markdown Help" class="fa fa-question-circle editor-toolbar"></a>
</div>
</div>
<section class="row" id="editArea" style="padding-top: 63px;">
<div class="col-md-6 full-height" style="box-shadow: -10px 13px 6px 10px rgba(0,0,0,0.4);" id="textPanel">
<textarea id="plainText" placeholder="Write your Markdown here.." autofocus></textarea>
</div>
<div class="col-md-6 full-height" style="overflow-y: auto;display:block;" id="previewPanel">
<div id="markdown"></div>
<textarea id="htmlPreview" class="mdHtml"></textarea>
</div>
</section>
<!-- Markdown Help Modal -->
<div class="modal fade" id="myModal" role="dialog">
<div class="modal-dialog">
<!-- Modal content-->
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4 class="modal-title">Markdown Help</h4>
</div>
<div class="modal-body">
<section class="modal--default__content" id="modal-body-region">
<table class="markdown-help-content">
<tbody>
<tr>
<td><strong>Bold</strong></td>
<td>**bold**</td>
</tr>
<tr>
<td><i>Italics</i></td>
<td>*italics*</td>
</tr>
<tr>
<td><del>Strikethrough</del></td>
<td>~~strikethrough~~</td>
</tr>
<tr>
<td>Header</td>
<td># H1 ## H2 ### H3</td>
</tr>
<tr>
<td><li>item</li></td>
<td>* item</td>
</tr>
<tr>
<td>Blockquote</td>
<td>> blockquote</td>
</tr>
<tr>
<td><span class="issue open">#123</span> (issue)</td>
<td>#123</td>
</tr>
<tr>
<td><a href="https://github.com/amitmerchant1990/electron-markdownify" target="_rick">Link</a></td>
<td>[title](http://)</td>
</tr>
<tr>
<td>Image</td>
<td>![alt](http://)</td>
</tr>
<tr>
<td><code>code</code></td>
<td>`code`</td>
</tr>
<tr>
<td>L<sup>a</sup>T<sub>e</sub>X</td>
<td>$$LaTeX code$$</td>
</tr>
<tr>
<td><pre style="display: inline-block; margin: 4px 0"><code><span class="keyword">var </span>code = <span class="string">"formatted"</span>;</code></pre></td>
<td style="line-height: 100%">``` <i style="color: rgba(0,0,0,0.5)">(shift+enter for line break)</i><br>var code = "formatted";<br>```</td>
</tr>
</tbody>
</table>
</section>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<script>if (typeof module === 'object') {window.module = module; module = undefined;}</script>
<script src="js/libs/jquery.min.js"></script>
<script src="js/libs/bootstrap.min.js"></script>
<script>if (window.module) module = window.module;</script>
<script src="js/libs/marked.min.js"></script>
<script src="js/libs/showdown.min.js"></script>
<script src="js/libs/codemirror.js"></script>
<script src="js/libs/placeholder.js"></script>
<script src="js/libs/search.js"></script>
<script src="js/libs/searchcursor.js"></script>
<script src="js/libs/dialog.js"></script>
<script src="js/libs/closebrackets.js"></script>
<script src="js/markdown/markdown.js"></script>
<script src="js/app.js"></script>
<script src="js/format.js"></script>
<script src="js/functions.js"></script>
<script src="js/emoji.js"></script>
<!-- Place this tag in your head or just before your close body tag. -->
<script async defer src="https://buttons.github.io/buttons.js"></script>
</body>
</html>