Skip to content

Build your personal knowledge base with Trilium Notes

279 B
Raw Blame
import type Turnish from "turnish";

export default function strikethrough (turndownService: Turnish) {
  turndownService.addRule('strikethrough', {
    filter: ['del', 's', 'strike'],
    replacement: function (content: string) {
      return '~~' + content + '~~'
    }
  })
}