9 lines
225 B
JavaScript
Raw Normal View History

2017-11-10 14:21:46 +00:00
export default function strikethrough (turndownService) {
turndownService.addRule('strikethrough', {
filter: ['del', 's', 'strike'],
replacement: function (content) {
return '~~' + content + '~~'
2017-11-10 14:21:46 +00:00
}
})
}