import type { InlinePlugin } from "../types.ts"; const REGEXP = /(~~)(.+?)\1/g; const plugin: InlinePlugin = { type: "deleted", render: (text: string) => { text = text.replace(REGEXP, (...match) => `${match[2]}`); return text; }, }; export default plugin;