Browse Source

fix: strike and underline for rich text

pull/7320/head
mertmit 11 months ago
parent
commit
9422e9aa5f
  1. 9
      packages/nc-gui/components/cell/RichText.vue

9
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 = { const checkListItem = {
name: 'checkListItem', name: 'checkListItem',
level: 'block', level: 'block',

Loading…
Cancel
Save