Skip to content

Commit b331fbf

Browse files
committed
Stop rendering tables
1 parent 0d53ac7 commit b331fbf

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

lib/index.js

+2
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ service.escape = (string) => (
2323
service.use(strikethrough)
2424
service.use(taskListItems)
2525

26+
service.remove('table')
27+
2628
Object.keys(rules).forEach(rule => service.addRule(rule, rules[rule]))
2729

2830
module.exports = (html) => {

test/fixtures/table.mrkdwn

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<table><thead><tr><th>test</th><th>hello</th><th>hi</th><th>this is</th><th>a table</th></tr></thead><tbody><tr><td>with</td><td>many</td><td>test</td><td>columns</td><td>and</td></tr><tr><td>rows</td><td>ok</td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td>third</td><td>row!</td></tr></tbody></table>
2+
====

0 commit comments

Comments
 (0)