vendor: 1,075 bytes, lines 1-3
1// @tiptap/[email protected] downloaded from https://ga.jspm.io/npm:@tiptap/[email protected]/dist/index.js 2 3import{Mark as t,markPasteRule as e,markInputRule as s,mergeAttributes as a}from"@tiptap/core";const n=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/;const r=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g;const i=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/;const o=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g;const d=t.create({name:"italic",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"em"},{tag:"i",getAttrs:t=>t.style.fontStyle!=="normal"&&null},{style:"font-style=normal",clearMark:t=>t.type.name===this.name},{style:"font-style=italic"}]},renderHTML({HTMLAttributes:t}){return["em",a(this.options.HTMLAttributes,t),0]},addCommands(){return{setItalic:()=>({commands:t})=>t.setMark(this.name),toggleItalic:()=>({commands:t})=>t.toggleMark(this.name),unsetItalic:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}}
3,addInputRules(){return[s({find:n,type:this.type}),s({find:i,type:this.type})]},addPasteRules(){return[e({find:r,type:this.type}),e({find:o,type:this.type})]}});export{d as Italic,d as default,n as starInputRegex,r as starPasteRegex,i as underscoreInputRegex,o as underscorePasteRegex}; 4
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.