File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 >
You can’t perform that action at this time.
0 commit comments