mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-09-01 04:12:58 +08: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 + '~~'
|
|
}
|
|
})
|
|
}
|