티스토리 수익 글 보기
(self.webpackChunksubstack=self.webpackChunksubstack||[]).push([[“6416”],{31521:function(t,s,e){var i=e(77556),o=e(28754),r=e(23875),p=e(63912),n=e(13222),u=e(31800);t.exports=function(t,s,e){if((t=n(t))&&(e||void 0===s))return t.slice(0,u(t)+1);if(!t||!(s=i(s)))return t;var h=p(t),a=r(h,p(s))+1;return o(h,0,a).join(“”)}},16571:function(t,s,e){“use strict”;e.d(s,{Ay:()=>p,Rg:()=>p});var i=e(88285);let o=”textStyle”,r=/^\s*([-+*])\s$/,p=i.bP.create({name:”bulletList”,addOptions:()=>({itemTypeName:”listItem”,HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}),group:”block list”,content(){return`${this.options.itemTypeName}+`},parseHTML:()=>[{tag:”ul”}],renderHTML({HTMLAttributes:t}){return[“ul”,(0,i.KV)(this.options.HTMLAttributes,t),0]},addCommands(){return{toggleBulletList:()=>({commands:t,chain:s})=>this.options.keepAttributes?s().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(“listItem”,this.editor.getAttributes(o)).run():t.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{“Mod-Shift-8”:()=>this.editor.commands.toggleBulletList()}},addInputRules(){let t=(0,i.tG)({find:r,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(t=(0,i.tG)({find:r,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(o),editor:this.editor})),[t]}})},34688:function(t,s,e){“use strict”;e.d(s,{Ay:()=>p,_J:()=>p});var i=e(88285);let o=”textStyle”,r=/^(\d+)\.\s$/,p=i.bP.create({name:”orderedList”,addOptions:()=>({itemTypeName:”listItem”,HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}),group:”block list”,content(){return`${this.options.itemTypeName}+`},addAttributes:()=>({start:{default:1,parseHTML:t=>t.hasAttribute(“start”)?parseInt(t.getAttribute(“start”)||””,10):1},type:{default:null,parseHTML:t=>t.getAttribute(“type”)}}),parseHTML:()=>[{tag:”ol”}],renderHTML({HTMLAttributes:t}){let{start:s,…e}=t;return 1===s?[“ol”,(0,i.KV)(this.options.HTMLAttributes,e),0]:[“ol”,(0,i.KV)(this.options.HTMLAttributes,t),0]},addCommands(){return{toggleOrderedList:()=>({commands:t,chain:s})=>this.options.keepAttributes?s().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(“listItem”,this.editor.getAttributes(o)).run():t.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{“Mod-Shift-7”:()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let t=(0,i.tG)({find:r,type:this.type,getAttributes:t=>({start:+t[1]}),joinPredicate:(t,s)=>s.childCount+s.attrs.start===+t[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(t=(0,i.tG)({find:r,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:t=>({start:+t[1],…this.editor.getAttributes(o)}),joinPredicate:(t,s)=>s.childCount+s.attrs.start===+t[1],editor:this.editor})),[t]}})},35933:function(t,s,e){“use strict”;e.d(s,{A:()=>o,E:()=>o});var i=e(88285);let o=i.CU.create({name:”subscript”,addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:”sub”},{style:”vertical-align”,getAttrs:t=>”sub”===t&&null}],renderHTML({HTMLAttributes:t}){return[“sub”,(0,i.KV)(this.options.HTMLAttributes,t),0]},addCommands(){return{setSubscript:()=>({commands:t})=>t.setMark(this.name),toggleSubscript:()=>({commands:t})=>t.toggleMark(this.name),unsetSubscript:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{“Mod-,”:()=>this.editor.commands.toggleSubscript()}}})},41002:function(t,s,e){“use strict”;e.d(s,{A:()=>o,Z:()=>o});var i=e(88285);let o=i.CU.create({name:”superscript”,addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:”sup”},{style:”vertical-align”,getAttrs:t=>”super”===t&&null}],renderHTML({HTMLAttributes:t}){return[“sup”,(0,i.KV)(this.options.HTMLAttributes,t),0]},addCommands(){return{setSuperscript:()=>({commands:t})=>t.setMark(this.name),toggleSuperscript:()=>({commands:t})=>t.toggleMark(this.name),unsetSuperscript:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{“Mod-.”:()=>this.editor.commands.toggleSuperscript()}}})},71979:function(t,s,e){“use strict”;e.d(s,{Ay:()=>o});var i=e(88285);let o=i.YY.create({name:”typography”,addOptions:()=>({closeDoubleQuote:”””,closeSingleQuote:”’”,copyright:”\xa9″,ellipsis:”…”,emDash:”—”,laquo:”\xab”,leftArrow:”←”,multiplication:”\xd7″,notEqual:”≠”,oneHalf:”\xbd”,oneQuarter:”\xbc”,openDoubleQuote:”“”,openSingleQuote:”‘”,plusMinus:”\xb1″,raquo:”\xbb”,registeredTrademark:”\xae”,rightArrow:”→”,servicemark:”℠”,superscriptThree:”\xb3″,superscriptTwo:”\xb2″,threeQuarters:”\xbe”,trademark:”™”}),addInputRules(){let t,s,e,o,r,p,n,u,h,a,l,d,c,g,m,f,b,k,A,M,y,T,L=[];return!1!==this.options.emDash&&L.push((t=this.options.emDash,(0,i.Yp)({find:/–$/,replace:null!=t?t:”—”}))),!1!==this.options.ellipsis&&L.push((s=this.options.ellipsis,(0,i.Yp)({find:/\.\.\.$/,replace:null!=s?s:”…”}))),!1!==this.options.openDoubleQuote&&L.push((e=this.options.openDoubleQuote,(0,i.Yp)({find:/(?:^|[\s{[(<'"\u2018\u201C])(")$/,replace:null!=e?e:"“"}))),!1!==this.options.closeDoubleQuote&&L.push((o=this.options.closeDoubleQuote,(0,i.Yp)({find:/"$/,replace:null!=o?o:"”"}))),!1!==this.options.openSingleQuote&&L.push((r=this.options.openSingleQuote,(0,i.Yp)({find:/(?:^|[\s{[(<'"\u2018\u201C])(')$/,replace:null!=r?r:"‘"}))),!1!==this.options.closeSingleQuote&&L.push((p=this.options.closeSingleQuote,(0,i.Yp)({find:/'$/,replace:null!=p?p:"’"}))),!1!==this.options.leftArrow&&L.push((n=this.options.leftArrow,(0,i.Yp)({find:/<-$/,replace:null!=n?n:"←"}))),!1!==this.options.rightArrow&&L.push((u=this.options.rightArrow,(0,i.Yp)({find:/->$/,replace:null!=u?u:”→”}))),!1!==this.options.copyright&&L.push((h=this.options.copyright,(0,i.Yp)({find:/\(c\)$/,replace:null!=h?h:”\xa9″}))),!1!==this.options.trademark&&L.push((a=this.options.trademark,(0,i.Yp)({find:/\(tm\)$/,replace:null!=a?a:”™”}))),!1!==this.options.servicemark&&L.push((l=this.options.servicemark,(0,i.Yp)({find:/\(sm\)$/,replace:null!=l?l:”℠”}))),!1!==this.options.registeredTrademark&&L.push((d=this.options.registeredTrademark,(0,i.Yp)({find:/\(r\)$/,replace:null!=d?d:”\xae”}))),!1!==this.options.oneHalf&&L.push((c=this.options.oneHalf,(0,i.Yp)({find:/(?:^|\s)(1\/2)\s$/,replace:null!=c?c:”\xbd”}))),!1!==this.options.plusMinus&&L.push((g=this.options.plusMinus,(0,i.Yp)({find:/\+\/-$/,replace:null!=g?g:”\xb1″}))),!1!==this.options.notEqual&&L.push((m=this.options.notEqual,(0,i.Yp)({find:/!=$/,replace:null!=m?m:”≠”}))),!1!==this.options.laquo&&L.push((f=this.options.laquo,(0,i.Yp)({find:/<<$/,replace:null!=f?f:"\xab"}))),!1!==this.options.raquo&&L.push((b=this.options.raquo,(0,i.Yp)({find:/>>$/,replace:null!=b?b:”\xbb”}))),!1!==this.options.multiplication&&L.push((k=this.options.multiplication,(0,i.Yp)({find:/\d+\s?([*x])\s?\d+$/,replace:null!=k?k:”\xd7″}))),!1!==this.options.superscriptTwo&&L.push((A=this.options.superscriptTwo,(0,i.Yp)({find:/\^2$/,replace:null!=A?A:”\xb2″}))),!1!==this.options.superscriptThree&&L.push((M=this.options.superscriptThree,(0,i.Yp)({find:/\^3$/,replace:null!=M?M:”\xb3″}))),!1!==this.options.oneQuarter&&L.push((y=this.options.oneQuarter,(0,i.Yp)({find:/(?:^|\s)(1\/4)\s$/,replace:null!=y?y:”\xbc”}))),!1!==this.options.threeQuarters&&L.push((T=this.options.threeQuarters,(0,i.Yp)({find:/(?:^|\s)(3\/4)\s$/,replace:null!=T?T:”\xbe”}))),L}})},75820:function(t,s,e){“use strict”;e.d(s,{A:()=>T});var i=e(88285),o=e(76229),r=e(93993),p=e(16571),n=e(55895),u=e(55679),h=e(31707),a=e(23317),l=e(74011),d=e(16233),c=e(96436),g=e(96282),m=e(58521),f=e(18708),b=e(60526),k=e(34688),A=e(61292),M=e(6142),y=e(39001);let T=i.YY.create({name:”starterKit”,addExtensions(){let t=[];return!1!==this.options.bold&&t.push(r.yN.configure(this.options.bold)),!1!==this.options.blockquote&&t.push(o.Cv.configure(this.options.blockquote)),!1!==this.options.bulletList&&t.push(p.Rg.configure(this.options.bulletList)),!1!==this.options.code&&t.push(n.Cy.configure(this.options.code)),!1!==this.options.codeBlock&&t.push(u.NG.configure(this.options.codeBlock)),!1!==this.options.document&&t.push(h.y.configure(this.options.document)),!1!==this.options.dropcursor&&t.push(a.Q.configure(this.options.dropcursor)),!1!==this.options.gapcursor&&t.push(l.v.configure(this.options.gapcursor)),!1!==this.options.hardBreak&&t.push(d.B.configure(this.options.hardBreak)),!1!==this.options.heading&&t.push(c.D.configure(this.options.heading)),!1!==this.options.history&&t.push(g.B.configure(this.options.history)),!1!==this.options.horizontalRule&&t.push(m.d.configure(this.options.horizontalRule)),!1!==this.options.italic&&t.push(f.J2.configure(this.options.italic)),!1!==this.options.listItem&&t.push(b.c.configure(this.options.listItem)),!1!==this.options.orderedList&&t.push(k._J.configure(this.options.orderedList)),!1!==this.options.paragraph&&t.push(A.f.configure(this.options.paragraph)),!1!==this.options.strike&&t.push(M.n.configure(this.options.strike)),!1!==this.options.text&&t.push(y.E.configure(this.options.text)),t}})}}]);