|
1 | | -<!doctype html> |
| 1 | +<!DOCTYPE html> |
2 | 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> |
| 3 | + <head> |
| 4 | + <meta charset="utf-8" /> |
| 5 | + <title>paste-markdown demo</title> |
| 6 | + <style> |
| 7 | + img, |
| 8 | + textarea { |
| 9 | + display: block; |
| 10 | + } |
| 11 | + img, |
| 12 | + table, |
| 13 | + textarea { |
| 14 | + margin: 1em 0; |
| 15 | + } |
| 16 | + </style> |
| 17 | + </head> |
| 18 | + <body> |
| 19 | + <p>Test by selecting the elements and then either copy/paste or drag them into the textarea.</p> |
| 20 | + <table border="1" cellpadding="5"> |
| 21 | + <thead> |
| 22 | + <tr> |
| 23 | + <th>name</th> |
| 24 | + <th>origin</th> |
| 25 | + </tr> |
| 26 | + </thead> |
| 27 | + <tbody> |
| 28 | + <tr> |
| 29 | + <td>hubot</td> |
| 30 | + <td>github</td> |
| 31 | + </tr> |
| 32 | + <tr> |
| 33 | + <td>bender</td> |
| 34 | + <td>futurama</td> |
| 35 | + </tr> |
| 36 | + </tbody> |
| 37 | + </table> |
31 | 38 |
|
32 | | - <table border="1" cellpadding="5" data-paste-markdown-skip> |
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> |
| 39 | + <table border="1" cellpadding="5" data-paste-markdown-skip> |
| 40 | + <thead> |
| 41 | + <tr> |
| 42 | + <th>name</th> |
| 43 | + <th>origin</th> |
| 44 | + </tr> |
| 45 | + </thead> |
| 46 | + <tbody> |
| 47 | + <tr> |
| 48 | + <td>this table will not be</td> |
| 49 | + <td>converted to markdown</td> |
| 50 | + </tr> |
| 51 | + </tbody> |
| 52 | + </table> |
46 | 53 |
|
47 | | - <img src="https://github.com/hubot.png" width="100" alt="hubot"> |
| 54 | + <img src="https://github.com/hubot.png" width="100" alt="hubot" /> |
48 | 55 |
|
49 | | - <p>Test by copying this page's URL and then selecting <i>here</i> in the textarea and pasting the URL.</p> |
| 56 | + <p>Test by copying this page's URL and then selecting <i>here</i> in the textarea and pasting the URL.</p> |
50 | 57 |
|
51 | | - <p>Or copy and paste a <a href="https://github.com">link</a> and <a href="https://www.youtube.com/watch?v=dQw4w9WgXcQ">another link</a> and maybe <a href="https://google.com">one more</a> into the textarea.</p> |
| 58 | + <p> |
| 59 | + Or copy and paste a <a href="https://github.com">link</a> and |
| 60 | + <a href="https://www.youtube.com/watch?v=dQw4w9WgXcQ">another link</a> and maybe |
| 61 | + <a href="https://google.com">one more</a> into the textarea. |
| 62 | + </p> |
52 | 63 |
|
53 | | - <textarea cols="50" rows="10">The examples can be found here.</textarea> |
| 64 | + <textarea cols="50" rows="10">The examples can be found here.</textarea> |
54 | 65 |
|
55 | | - <script type="module"> |
56 | | - // import {subscribe} from '../dist/index.esm.js' |
57 | | - import {subscribe} from 'https://unpkg.com/@github/paste-markdown/dist/index.esm.js' |
58 | | - subscribe(document.querySelector('textarea')) |
59 | | - </script> |
60 | | -</body> |
| 66 | + <script type="module"> |
| 67 | + // import {subscribe} from '../dist/index.esm.js' |
| 68 | + import {subscribe} from 'https://unpkg.com/@github/paste-markdown/dist/index.esm.js' |
| 69 | + subscribe(document.querySelector('textarea')) |
| 70 | + </script> |
| 71 | + </body> |
61 | 72 | </html> |
0 commit comments