import { Code as t } from "@tiptap/extension-code"
import { markInputRule as o } from "@tiptap/core"
const e = /`([^`]+)`$/
export const Code = t.extend({
addKeyboardShortcuts() {
return { "Mod-Shift-C": () => this.editor.commands.toggleCode() }
},
addInputRules() {
return [o({ find: e, type: this.type })]
},
})