Skip to content

Commit edd2575

Browse files
committed
Merge branch 'master' into tsc
2 parents f55ba06 + 2a59202 commit edd2575

1 file changed

Lines changed: 57 additions & 0 deletions

File tree

examples/index.html

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8">
5+
<title>paste-markdown demo</title>
6+
<style>
7+
img, textarea { display: block; }
8+
img, table, textarea { margin: 1em 0; }
9+
</style>
10+
</head>
11+
<body>
12+
<p>Test by selecting the elements and then either copy/paste or drag them into the textarea.</p>
13+
<table border="1" cellpadding="5">
14+
<thead>
15+
<tr>
16+
<th>name</th>
17+
<th>origin</th>
18+
</tr>
19+
</thead>
20+
<tbody>
21+
<tr>
22+
<td>hubot</td>
23+
<td>github</td>
24+
</tr>
25+
<tr>
26+
<td>bender</td>
27+
<td>futurama</td>
28+
</tr>
29+
</tbody>
30+
</table>
31+
32+
<table border="1" cellpadding="5" class="js-comment">
33+
<thead>
34+
<tr>
35+
<th>name</th>
36+
<th>origin</th>
37+
</tr>
38+
</thead>
39+
<tbody>
40+
<tr>
41+
<td>this table will not be</td>
42+
<td>converted to markdown</td>
43+
</tr>
44+
</tbody>
45+
</table>
46+
47+
<img src="https://github.com/hubot.png" width="100" alt="hubot">
48+
49+
<textarea cols="50" rows="10"></textarea>
50+
51+
<script type="module">
52+
// import subscribe from '../dist/index.esm.js'
53+
import subscribe from 'https://unpkg.com/@github/paste-markdown/dist/index.esm.js'
54+
subscribe(document.querySelector('textarea'))
55+
</script>
56+
</body>
57+
</html>

0 commit comments

Comments
 (0)