-
Notifications
You must be signed in to change notification settings - Fork 1
/
markdeep-editor.html
123 lines (113 loc) · 4.26 KB
/
markdeep-editor.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
<html class="expand close">
<head>
<style type="text/css">
.expand { width: 100%; height: 100%; }
.close { border: none; margin: 0px; padding: 0px; }
html,body,textarea{ font-family: Menlo,Consolas, monospace; }
form > label {
font-size : 0.5em;
}
textarea.close {
padding-left:5px;
}
textarea::-webkit-scrollbar {
-webkit-appearance: none;
}
textarea::-webkit-scrollbar:vertical {
width: 11px;
}
textarea::-webkit-scrollbar:horizontal {
height: 11px;
}
textarea::-webkit-scrollbar-thumb {
border-radius: 8px;
border: 2px solid white; /* should match background, can't be transparent */
background-color: rgba(0, 0, 0, .5);
}
textarea::-webkit-scrollbar-track {
background-color: #fff;
border-radius: 8px;
}
</style>
</head>
<body class="expand close" onload="document.f.ta.focus(); document.f.ta.select();">
<script>function triggerRebuild(){
document.f.ta.dispatchEvent(new Event('keyup'));
}
</script>
<form class="expand close" name="f" onsubmit="return false;">
<select name="url" onchange="window.history.pushState({},'','?'+this.value);triggerRebuild()">
<option></option>
<option>noformat</option>
<option>export</option>
</select>
<label>mode</label>
<select name="mode" onchange="triggerRebuild();">
<option>markdeep</option>
<option>script</option>
<option>html</option>
<option>doxygen</option>
</select>
<label>tocStyle</label>
<select name="tocStyle" onchange="triggerRebuild();">
<option>none</option>
<option>auto</option>
<option>short</option>
<option>medium</option>
<option>long</option>
</select>
<label>detectMath</label>
<select name="detectMath" onchange="triggerRebuild();">
<option>false</option>
<option>true</option>
</select>
<label>showURLs</label>
<select name="showURLs" onchange="triggerRebuild();">
<option>false</option>
<option>true</option>
</select>
<button name="png">PNG</button>
<textarea class="expand close" style="background: #def;" name="ta" wrap="hard" spellcheck="false">
***************************************************************************************
* .-. .-----. *
* .-+ | | | *
* .-+ '-. |'-----'| *
* | Cloud! |<------------------>+ +<--------. *
* '-----------' | | | *
* ^ ^ '-----' | *
* | | ^ | *
* .----------------------' | | | *
* | | v v *
* v v .------. .------.*
* .-------. .-------. / /| / /|*
* | | | | +------+/| +------+/|*
* | Mac | | Nix | | |/| | |/|*
* +-------+ +-------+ | |/| | |/|*
* /// ___ \\\ /// ___ \\\ | +/ | +/ *
*'-----------' '-----------' '------' '------' *
* Laptop 1 Laptop 2 *
***************************************************************************************
[Figure [diagram]: Fun figures]
# Stuff
Amazing things
## Code
```js
for(fun in markdown){
var highlighted = "Text" + diagrams;
}
```
## Calendar and Diagram instructions
2017-04-23: When a line ends in `*`
- Use Shift-Space to insert a space
- Use Shift-Delete to delete
- Otherwise, everything overwrites
2017-04-24: All other lines
- normal
# Another Part
And also a reference to Section [Stuff]
# SVG
The first Figure [diagram] of the document converted to a PNG. Still in TODO phase.
</textarea>
</form>
</body>
</html>