mirror of
https://github.com/zadam/trilium.git
synced 2025-10-30 02:59:03 +01:00
9 lines
223 B
JavaScript
9 lines
223 B
JavaScript
export default function strikethrough (turndownService) {
|
|
turndownService.addRule('strikethrough', {
|
|
filter: ['del', 's', 'strike'],
|
|
replacement: function (content) {
|
|
return '~' + content + '~'
|
|
}
|
|
})
|
|
}
|