-
Notifications
You must be signed in to change notification settings - Fork 5
/
index.html
52 lines (48 loc) · 1.34 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Marked Extensions Demo</title>
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.44.0/codemirror.min.css"
/>
<style>
body {
padding: 0.5em;
}
.CodeMirror {
border: 1px solid #222;
font-size: 13px;
min-height: 50vh;
}
.container {
display: grid;
grid-template-columns: 50% 50%;
grid-gap: 0 1em;
}
</style>
</head>
<body>
<h1>Marked Extensions</h1>
<div class="container">
<div>
<textarea id="input">
# @@docMethod:full_name(@@docParam:first_name, @@docParam:last_name)
```@doc
Parameters:
@@docParam:first_name @@docType:String - The first name
@@docParam:last_name @@docType:String - The last name
Return Value:
@@docType:String - The first and last name
```</textarea
>
</div>
<div id="output"></div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.44.0/codemirror.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.44.0/mode/markdown/markdown.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/marked/2.1.1/marked.min.js"></script>
<script type="module" src="./demo.js"></script>
</body>
</html>