mirror of
https://github.com/laurent22/joplin.git
synced 2025-01-26 18:58:21 +02:00
9 lines
225 B
JavaScript
9 lines
225 B
JavaScript
export default function strikethrough (turndownService) {
|
|
turndownService.addRule('strikethrough', {
|
|
filter: ['del', 's', 'strike'],
|
|
replacement: function (content) {
|
|
return '~~' + content + '~~'
|
|
}
|
|
})
|
|
}
|