Skip to content

Commit

Permalink
Merge pull request #30 from integrations/remove-tables
Browse files Browse the repository at this point in the history
Remove tables
  • Loading branch information
wilhelmklopp authored Aug 24, 2018
2 parents 4a09336 + b331fbf commit 06143ff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ service.escape = (string) => (
service.use(strikethrough)
service.use(taskListItems)

service.remove('table')

Object.keys(rules).forEach(rule => service.addRule(rule, rules[rule]))

module.exports = (html) => {
Expand Down
2 changes: 2 additions & 0 deletions test/fixtures/table.mrkdwn
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<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>
====

0 comments on commit 06143ff

Please sign in to comment.