From 9422e9aa5f67b19140916d0bd3ffa9cb4e4b53bc Mon Sep 17 00:00:00 2001 From: mertmit Date: Thu, 28 Dec 2023 15:45:51 +0000 Subject: [PATCH] fix: strike and underline for rich text --- packages/nc-gui/components/cell/RichText.vue | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/packages/nc-gui/components/cell/RichText.vue b/packages/nc-gui/components/cell/RichText.vue index c9a73f0cf2..b1c9e3b8c4 100644 --- a/packages/nc-gui/components/cell/RichText.vue +++ b/packages/nc-gui/components/cell/RichText.vue @@ -46,6 +46,15 @@ turndownService.addRule('taskList', { }, }) +turndownService.addRule('strikethrough', { + filter: ['s'], + replacement: (content) => { + return `~${content}~` + }, +}) + +turndownService.keep(['u', 'del']) + const checkListItem = { name: 'checkListItem', level: 'block',