turndown icon indicating copy to clipboard operation
turndown copied to clipboard

Adding multiple rules

Open domchristie opened this issue 6 years ago • 0 comments

Make it easier to add multiple rules e.g.:

turndownService.addRules({
  table: { filter: '…', replacement: function () {…} },
  del: { filter: '…', replacement: function () {…} }
})

and:

turndownService.addRules([
  ['table', { filter: '…', replacement: function () {…} }],
  ['del', { filter: '…', replacement: function () {…} }]
])

domchristie avatar Dec 17 '17 12:12 domchristie