Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

markdown-to-jsx

Package Overview
Dependencies
Maintainers
2
Versions
116
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

markdown-to-jsx - npm Package Compare versions

Comparing version 7.7.0 to 7.7.1

2

dist/index.d.ts

@@ -265,3 +265,3 @@ /**

export type Parser<ParserOutput> = (capture: RegExpMatchArray, nestedParse: NestedParser, state?: MarkdownToJSX.State) => ParserOutput;
export type RuleOutput = (ast: MarkdownToJSX.ParserResult | MarkdownToJSX.ParserResult[], state: MarkdownToJSX.State) => JSX.Element;
export type RuleOutput = (ast: MarkdownToJSX.ParserResult | MarkdownToJSX.ParserResult[], state: MarkdownToJSX.State) => React.JSX.Element;
export type Rule<ParserOutput = MarkdownToJSX.ParserResult> = {

@@ -268,0 +268,0 @@ match: (source: string, state: MarkdownToJSX.State, prevCapturedString?: string) => RegExpMatchArray;

@@ -1,2 +0,2 @@

import*as e from"react";function t(){return t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},t.apply(this,arguments)}const n=["children","options"],r={blockQuote:"0",breakLine:"1",breakThematic:"2",codeBlock:"3",codeFenced:"4",codeInline:"5",footnote:"6",footnoteReference:"7",gfmTask:"8",heading:"9",headingSetext:"10",htmlBlock:"11",htmlComment:"12",htmlSelfClosing:"13",image:"14",link:"15",linkAngleBraceStyleDetector:"16",linkBareUrlDetector:"17",linkMailtoDetector:"18",newlineCoalescer:"19",orderedList:"20",paragraph:"21",ref:"22",refImage:"23",refLink:"24",table:"25",tableSeparator:"26",text:"27",textBolded:"28",textEmphasized:"29",textEscaped:"30",textMarked:"31",textStrikethroughed:"32",unorderedList:"33"};var i;!function(e){e[e.MAX=0]="MAX",e[e.HIGH=1]="HIGH",e[e.MED=2]="MED",e[e.LOW=3]="LOW",e[e.MIN=4]="MIN"}(i||(i={}));const l=["allowFullScreen","allowTransparency","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","charSet","classId","colSpan","contentEditable","contextMenu","crossOrigin","encType","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","hrefLang","inputMode","keyParams","keyType","marginHeight","marginWidth","maxLength","mediaGroup","minLength","noValidate","radioGroup","readOnly","rowSpan","spellCheck","srcDoc","srcLang","srcSet","tabIndex","useMap"].reduce((e,t)=>(e[t.toLowerCase()]=t,e),{class:"className",for:"htmlFor"}),a={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},o=["style","script"],c=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,s=/mailto:/i,d=/\n{2,}$/,p=/^(\s*>[\s\S]*?)(?=\n\n|$)/,u=/^ *> ?/gm,f=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,h=/^ {2,}\n/,m=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,g=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,y=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,k=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,x=/^(?:\n *)*\n/,b=/\r\n?/g,v=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,S=/^\[\^([^\]]+)]/,C=/\f/g,E=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,$=/^\s*?\[(x|\s)\]/,w=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,z=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,L=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,A=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,T=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,O=/^<!--[\s\S]*?(?:-->)/,B=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,M=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,R=/^\{.*\}$/,I=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,U=/^<([^ >]+@[^ >]+)>/,D=/^<([^ >]+:\/[^ >]+)>/,N=/-([a-z])?/gi,j=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,H=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,P=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,F=/^\[([^\]]*)\] ?\[([^\]]*)\]/,_=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,G=/\t/g,W=/(^ *\||\| *$)/g,Z=/^ *:-+: *$/,q=/^ *:-+ *$/,Q=/^ *-+: *$/,V="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~~.*?~~|==.*?==|.|\\n)*?)",X=new RegExp(`^([*_])\\1${V}\\1\\1(?!\\1)`),J=new RegExp(`^([*_])${V}\\1(?!\\1|\\w)`),K=new RegExp(`^==${V}==`),Y=new RegExp(`^~~${V}~~`),ee=/^\\([^0-9A-Za-z\s])/,te=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&#;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,ne=/^\n+/,re=/^([ \t]*)/,ie=/\\([^\\])/g,le=/ *\n+$/,ae=/(?:^|\n)( *)$/,oe="(?:\\d+\\.)",ce="(?:[*+-])";function se(e){return"( *)("+(1===e?oe:ce)+") +"}const de=se(1),pe=se(2);function ue(e){return new RegExp("^"+(1===e?de:pe))}const fe=ue(1),he=ue(2);function me(e){return new RegExp("^"+(1===e?de:pe)+"[^\\n]*(?:\\n(?!\\1"+(1===e?oe:ce)+" )[^\\n]*)*(\\n|$)","gm")}const ge=me(1),ye=me(2);function ke(e){const t=1===e?oe:ce;return new RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const xe=ke(1),be=ke(2);function ve(e,t){const n=1===t,i=n?xe:be,l=n?ge:ye,a=n?fe:he;return{match(e,t){const n=ae.exec(t.prevCapture);return n&&(t.list||!t.inline&&!t.simple)?i.exec(e=n[1]+e):null},order:1,parse(e,t,r){const i=n?+e[2]:void 0,o=e[0].replace(d,"\n").match(l);let c=!1;return{items:o.map(function(e,n){const i=a.exec(e)[0].length,l=new RegExp("^ {1,"+i+"}","gm"),s=e.replace(l,"").replace(a,""),d=n===o.length-1,p=-1!==s.indexOf("\n\n")||d&&c;c=p;const u=r.inline,f=r.list;let h;r.list=!0,p?(r.inline=!1,h=s.replace(le,"\n\n")):(r.inline=!0,h=s.replace(le,""));const m=t(h,r);return r.inline=u,r.list=f,m}),ordered:n,start:i}},render:(t,n,i)=>e(t.ordered?"ol":"ul",{key:i.key,start:t.type===r.orderedList?t.start:void 0},t.items.map(function(t,r){return e("li",{key:r},n(t,i))}))}}const Se=new RegExp("^\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['\"]([\\s\\S]*?)['\"])?\\s*\\)"),Ce=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,Ee=[p,g,y,w,L,z,O,j,ge,xe,ye,be],$e=[...Ee,/^[^\n]+(?: \n|\n{2,})/,A,M];function we(e){return e.replace(/[ÀÁÂÃÄÅàáâãäåæÆ]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function ze(e){return Q.test(e)?"right":Z.test(e)?"center":q.test(e)?"left":null}function Le(e,t,n,i){const l=n.inTable;n.inTable=!0;let a=e.trim().split(/( *(?:`[^`]*`|\\\||\|) *)/).reduce((e,l)=>("|"===l.trim()?e.push(i?{type:r.tableSeparator}:{type:r.text,text:l}):""!==l&&e.push.apply(e,t(l,n)),e),[]);n.inTable=l;let o=[[]];return a.forEach(function(e,t){e.type===r.tableSeparator?0!==t&&t!==a.length-1&&o.push([]):(e.type!==r.text||null!=a[t+1]&&a[t+1].type!==r.tableSeparator||(e.text=e.text.trimEnd()),o[o.length-1].push(e))}),o}function Ae(e,t,n){n.inline=!0;const i=e[2]?e[2].replace(W,"").split("|").map(ze):[],l=e[3]?function(e,t,n){return e.trim().split("\n").map(function(e){return Le(e,t,n,!0)})}(e[3],t,n):[],a=Le(e[1],t,n,!!l.length);return n.inline=!1,l.length?{align:i,cells:l,header:a,type:r.table}:{children:a,type:r.paragraph}}function Te(e,t){return null==e.align[t]?{}:{textAlign:e.align[t]}}function Oe(e){return function(t,n){return n.inline?e.exec(t):null}}function Be(e){return function(t,n){return n.inline||n.simple?e.exec(t):null}}function Me(e){return function(t,n){return n.inline||n.simple?null:e.exec(t)}}function Re(e){return function(t){return e.exec(t)}}function Ie(e,t){if(t.inline||t.simple)return null;let n="";e.split("\n").every(e=>!Ee.some(t=>t.test(e))&&(n+=e+"\n",e.trim()));const r=n.trimEnd();return""==r?null:[n,r]}function Ue(e){try{if(decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"").match(/^\s*(javascript|vbscript|data(?!:image)):/i))return null}catch(e){return null}return e}function De(e){return e.replace(ie,"$1")}function Ne(e,t,n){const r=n.inline||!1,i=n.simple||!1;n.inline=!0,n.simple=!0;const l=e(t,n);return n.inline=r,n.simple=i,l}function je(e,t,n){const r=n.inline||!1,i=n.simple||!1;n.inline=!1,n.simple=!0;const l=e(t,n);return n.inline=r,n.simple=i,l}function He(e,t,n){const r=n.inline||!1;n.inline=!1;const i=e(t,n);return n.inline=r,i}const Pe=(e,t,n)=>({children:Ne(t,e[1],n)});function Fe(){return{}}function _e(){return null}function Ge(...e){return e.filter(Boolean).join(" ")}function We(e,t,n){let r=e;const i=t.split(".");for(;i.length&&(r=r[i[0]],void 0!==r);)i.shift();return r||n}function Ze(n="",i={}){function d(e,n,...r){const l=We(i.overrides,`${e}.props`,{});return i.createElement(function(e,t){const n=We(t,e);return n?"function"==typeof n||"object"==typeof n&&"render"in n?n:We(t,`${e}.component`,e):e}(e,i.overrides),t({},n,l,{className:Ge(null==n?void 0:n.className,l.className)||void 0}),...r)}function W(t){t=t.replace(E,"");let n=!1;i.forceInline?n=!0:i.forceBlock||(n=!1===_.test(t));const r=le(ie(n?t:`${t.trimEnd().replace(ne,"")}\n\n`,{inline:n}));for(;"string"==typeof r[r.length-1]&&!r[r.length-1].trim();)r.pop();if(null===i.wrapper)return r;const l=i.wrapper||(n?"span":"div");let a;if(r.length>1||i.forceWrapper)a=r;else{if(1===r.length)return a=r[0],"string"==typeof a?d("span",{key:"outer"},a):a;a=null}return e.createElement(l,{key:"outer"},a)}function Z(t,n){const r=n.match(c);return r?r.reduce(function(n,r,a){const o=r.indexOf("=");if(-1!==o){const c=function(e){return-1!==e.indexOf("-")&&null===e.match(B)&&(e=e.replace(N,function(e,t){return t.toUpperCase()})),e}(r.slice(0,o)).trim(),s=function(e){const t=e[0];return('"'===t||"'"===t)&&e.length>=2&&e[e.length-1]===t?e.slice(1,-1):e}(r.slice(o+1).trim()),d=l[c]||c;if("ref"===d)return n;const p=n[d]=function(e,t,n,r){return"style"===t?n.split(/;\s?/).reduce(function(e,t){const n=t.slice(0,t.indexOf(":"));return e[n.trim().replace(/(-[a-z])/g,e=>e[1].toUpperCase())]=t.slice(n.length+1).trim(),e},{}):"href"===t||"src"===t?r(n,e,t):(n.match(R)&&(n=n.slice(1,n.length-1)),"true"===n||"false"!==n&&n)}(t,c,s,i.sanitizer);"string"==typeof p&&(A.test(p)||M.test(p))&&(n[d]=e.cloneElement(W(p.trim()),{key:a}))}else"style"!==r&&(n[l[r]||r]=!0);return n},{}):null}i.overrides=i.overrides||{},i.sanitizer=i.sanitizer||Ue,i.slugify=i.slugify||we,i.namedCodesToUnicode=i.namedCodesToUnicode?t({},a,i.namedCodesToUnicode):a,i.createElement=i.createElement||e.createElement;const q=[],Q={},V={[r.blockQuote]:{match:Me(p),order:1,parse(e,t,n){const[,r,i]=e[0].replace(u,"").match(f);return{alert:r,children:t(i,n)}},render(e,t,n){const l={key:n.key};return e.alert&&(l.className="markdown-alert-"+i.slugify(e.alert.toLowerCase(),we),e.children.unshift({attrs:{},children:[{type:r.text,text:e.alert}],noInnerParse:!0,type:r.htmlBlock,tag:"header"})),d("blockquote",l,t(e.children,n))}},[r.breakLine]:{match:Re(h),order:1,parse:Fe,render:(e,t,n)=>d("br",{key:n.key})},[r.breakThematic]:{match:Me(m),order:1,parse:Fe,render:(e,t,n)=>d("hr",{key:n.key})},[r.codeBlock]:{match:Me(y),order:0,parse:e=>({lang:void 0,text:e[0].replace(/^ {4}/gm,"").replace(/\n+$/,"")}),render:(e,n,r)=>d("pre",{key:r.key},d("code",t({},e.attrs,{className:e.lang?`lang-${e.lang}`:""}),e.text))},[r.codeFenced]:{match:Me(g),order:0,parse:e=>({attrs:Z("code",e[3]||""),lang:e[2]||void 0,text:e[4],type:r.codeBlock})},[r.codeInline]:{match:Be(k),order:3,parse:e=>({text:e[2]}),render:(e,t,n)=>d("code",{key:n.key},e.text)},[r.footnote]:{match:Me(v),order:0,parse:e=>(q.push({footnote:e[2],identifier:e[1]}),{}),render:_e},[r.footnoteReference]:{match:Oe(S),order:1,parse:e=>({target:`#${i.slugify(e[1],we)}`,text:e[1]}),render:(e,t,n)=>d("a",{key:n.key,href:i.sanitizer(e.target,"a","href")},d("sup",{key:n.key},e.text))},[r.gfmTask]:{match:Oe($),order:1,parse:e=>({completed:"x"===e[1].toLowerCase()}),render:(e,t,n)=>d("input",{checked:e.completed,key:n.key,readOnly:!0,type:"checkbox"})},[r.heading]:{match:Me(i.enforceAtxHeadings?z:w),order:1,parse:(e,t,n)=>({children:Ne(t,e[2],n),id:i.slugify(e[2],we),level:e[1].length}),render:(e,t,n)=>d(`h${e.level}`,{id:e.id,key:n.key},t(e.children,n))},[r.headingSetext]:{match:Me(L),order:0,parse:(e,t,n)=>({children:Ne(t,e[1],n),level:"="===e[2]?1:2,type:r.heading})},[r.htmlBlock]:{match:Re(A),order:1,parse(e,t,n){const[,r]=e[3].match(re),i=new RegExp(`^${r}`,"gm"),l=e[3].replace(i,""),a=(c=l,$e.some(e=>e.test(c))?He:Ne);var c;const s=e[1].toLowerCase(),d=-1!==o.indexOf(s),p=(d?s:e[1]).trim(),u={attrs:Z(p,e[2]),noInnerParse:d,tag:p};return n.inAnchor=n.inAnchor||"a"===s,d?u.text=e[3]:u.children=a(t,l,n),n.inAnchor=!1,u},render:(e,n,r)=>d(e.tag,t({key:r.key},e.attrs),e.text||(e.children?n(e.children,r):""))},[r.htmlSelfClosing]:{match:Re(M),order:1,parse(e){const t=e[1].trim();return{attrs:Z(t,e[2]||""),tag:t}},render:(e,n,r)=>d(e.tag,t({},e.attrs,{key:r.key}))},[r.htmlComment]:{match:Re(O),order:1,parse:()=>({}),render:_e},[r.image]:{match:Be(Ce),order:1,parse:e=>({alt:e[1],target:De(e[2]),title:e[3]}),render:(e,t,n)=>d("img",{key:n.key,alt:e.alt||void 0,title:e.title||void 0,src:i.sanitizer(e.target,"img","src")})},[r.link]:{match:Oe(Se),order:3,parse:(e,t,n)=>({children:je(t,e[1],n),target:De(e[2]),title:e[3]}),render:(e,t,n)=>d("a",{key:n.key,href:i.sanitizer(e.target,"a","href"),title:e.title},t(e.children,n))},[r.linkAngleBraceStyleDetector]:{match:Oe(D),order:0,parse:e=>({children:[{text:e[1],type:r.text}],target:e[1],type:r.link})},[r.linkBareUrlDetector]:{match:(e,t)=>t.inAnchor||i.disableAutoLink?null:Oe(I)(e,t),order:0,parse:e=>({children:[{text:e[1],type:r.text}],target:e[1],title:void 0,type:r.link})},[r.linkMailtoDetector]:{match:Oe(U),order:0,parse(e){let t=e[1],n=e[1];return s.test(n)||(n="mailto:"+n),{children:[{text:t.replace("mailto:",""),type:r.text}],target:n,type:r.link}}},[r.orderedList]:ve(d,1),[r.unorderedList]:ve(d,2),[r.newlineCoalescer]:{match:Me(x),order:3,parse:Fe,render:()=>"\n"},[r.paragraph]:{match:Ie,order:3,parse:Pe,render:(e,t,n)=>d("p",{key:n.key},t(e.children,n))},[r.ref]:{match:Oe(H),order:0,parse:e=>(Q[e[1]]={target:e[2],title:e[4]},{}),render:_e},[r.refImage]:{match:Be(P),order:0,parse:e=>({alt:e[1]||void 0,ref:e[2]}),render:(e,t,n)=>Q[e.ref]?d("img",{key:n.key,alt:e.alt,src:i.sanitizer(Q[e.ref].target,"img","src"),title:Q[e.ref].title}):null},[r.refLink]:{match:Oe(F),order:0,parse:(e,t,n)=>({children:t(e[1],n),fallbackChildren:e[0],ref:e[2]}),render:(e,t,n)=>Q[e.ref]?d("a",{key:n.key,href:i.sanitizer(Q[e.ref].target,"a","href"),title:Q[e.ref].title},t(e.children,n)):d("span",{key:n.key},e.fallbackChildren)},[r.table]:{match:Me(j),order:1,parse:Ae,render(e,t,n){const r=e;return d("table",{key:n.key},d("thead",null,d("tr",null,r.header.map(function(e,i){return d("th",{key:i,style:Te(r,i)},t(e,n))}))),d("tbody",null,r.cells.map(function(e,i){return d("tr",{key:i},e.map(function(e,i){return d("td",{key:i,style:Te(r,i)},t(e,n))}))})))}},[r.text]:{match:Re(te),order:4,parse:e=>({text:e[0].replace(T,(e,t)=>i.namedCodesToUnicode[t]?i.namedCodesToUnicode[t]:e)}),render:e=>e.text},[r.textBolded]:{match:Be(X),order:2,parse:(e,t,n)=>({children:t(e[2],n)}),render:(e,t,n)=>d("strong",{key:n.key},t(e.children,n))},[r.textEmphasized]:{match:Be(J),order:3,parse:(e,t,n)=>({children:t(e[2],n)}),render:(e,t,n)=>d("em",{key:n.key},t(e.children,n))},[r.textEscaped]:{match:Be(ee),order:1,parse:e=>({text:e[1],type:r.text})},[r.textMarked]:{match:Be(K),order:3,parse:Pe,render:(e,t,n)=>d("mark",{key:n.key},t(e.children,n))},[r.textStrikethroughed]:{match:Be(Y),order:3,parse:Pe,render:(e,t,n)=>d("del",{key:n.key},t(e.children,n))}};!0===i.disableParsingRawHTML&&(delete V[r.htmlBlock],delete V[r.htmlSelfClosing]);const ie=function(e){let t=Object.keys(e);function n(r,i){let l=[];for(i.prevCapture=i.prevCapture||"";r;){let a=0;for(;a<t.length;){const o=t[a],c=e[o],s=c.match(r,i);if(s){const e=s[0];i.prevCapture+=e,r=r.substring(e.length);const t=c.parse(s,n,i);null==t.type&&(t.type=o),l.push(t);break}a++}}return i.prevCapture="",l}return t.sort(function(t,n){let r=e[t].order,i=e[n].order;return r!==i?r-i:t<n?-1:1}),function(e,t){return n(function(e){return e.replace(b,"\n").replace(C,"").replace(G," ")}(e),t)}}(V),le=(ae=function(e,t){return function(n,r,i){const l=e[n.type].render;return t?t(()=>l(n,r,i),n,r,i):l(n,r,i)}}(V,i.renderRule),function e(t,n={}){if(Array.isArray(t)){const r=n.key,i=[];let l=!1;for(let r=0;r<t.length;r++){n.key=r;const a=e(t[r],n),o="string"==typeof a;o&&l?i[i.length-1]+=a:null!==a&&i.push(a),l=o}return n.key=r,i}return ae(t,e,n)});var ae;const oe=W(n);return q.length?d("div",null,oe,d("footer",{key:"footer"},q.map(function(e){return d("div",{id:i.slugify(e.identifier,we),key:e.identifier},e.identifier,le(ie(e.footnote,{inline:!0})))}))):oe}export default t=>{let{children:r="",options:i}=t,l=function(e,t){if(null==e)return{};var n,r,i={},l=Object.keys(e);for(r=0;r<l.length;r++)t.indexOf(n=l[r])>=0||(i[n]=e[n]);return i}(t,n);return e.cloneElement(Ze(r,i),l)};export{r as RuleType,Ze as compiler,Ue as sanitizer,we as slugify};
import*as e from"react";function t(){return t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},t.apply(this,arguments)}const n=["children","options"],r={blockQuote:"0",breakLine:"1",breakThematic:"2",codeBlock:"3",codeFenced:"4",codeInline:"5",footnote:"6",footnoteReference:"7",gfmTask:"8",heading:"9",headingSetext:"10",htmlBlock:"11",htmlComment:"12",htmlSelfClosing:"13",image:"14",link:"15",linkAngleBraceStyleDetector:"16",linkBareUrlDetector:"17",linkMailtoDetector:"18",newlineCoalescer:"19",orderedList:"20",paragraph:"21",ref:"22",refImage:"23",refLink:"24",table:"25",tableSeparator:"26",text:"27",textBolded:"28",textEmphasized:"29",textEscaped:"30",textMarked:"31",textStrikethroughed:"32",unorderedList:"33"};var i;!function(e){e[e.MAX=0]="MAX",e[e.HIGH=1]="HIGH",e[e.MED=2]="MED",e[e.LOW=3]="LOW",e[e.MIN=4]="MIN"}(i||(i={}));const l=["allowFullScreen","allowTransparency","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","charSet","classId","colSpan","contentEditable","contextMenu","crossOrigin","encType","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","hrefLang","inputMode","keyParams","keyType","marginHeight","marginWidth","maxLength","mediaGroup","minLength","noValidate","radioGroup","readOnly","rowSpan","spellCheck","srcDoc","srcLang","srcSet","tabIndex","useMap"].reduce((e,t)=>(e[t.toLowerCase()]=t,e),{class:"className",for:"htmlFor"}),a={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},o=["style","script"],c=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,s=/mailto:/i,d=/\n{2,}$/,p=/^(\s*>[\s\S]*?)(?=\n\n|$)/,u=/^ *> ?/gm,f=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,h=/^ {2,}\n/,m=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,g=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,y=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,k=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,x=/^(?:\n *)*\n/,b=/\r\n?/g,v=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,S=/^\[\^([^\]]+)]/,C=/\f/g,$=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,E=/^\s*?\[(x|\s)\]/,w=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,z=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,L=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,A=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,T=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,O=/^<!--[\s\S]*?(?:-->)/,B=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,M=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,R=/^\{.*\}$/,I=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,U=/^<([^ >]+@[^ >]+)>/,D=/^<([^ >]+:\/[^ >]+)>/,N=/-([a-z])?/gi,j=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,H=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,P=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,F=/^\[([^\]]*)\] ?\[([^\]]*)\]/,_=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,G=/\t/g,W=/(^ *\||\| *$)/g,Z=/^ *:-+: *$/,q=/^ *:-+ *$/,Q=/^ *-+: *$/,V="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~~.*?~~|==.*?==|.|\\n)*?)",X=new RegExp(`^([*_])\\1${V}\\1\\1(?!\\1)`),J=new RegExp(`^([*_])${V}\\1(?!\\1|\\w)`),K=new RegExp(`^==${V}==`),Y=new RegExp(`^~~${V}~~`),ee=/^\\([^0-9A-Za-z\s])/,te=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&#;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,ne=/^\n+/,re=/^([ \t]*)/,ie=/\\([^\\])/g,le=/ *\n+$/,ae=/(?:^|\n)( *)$/,oe="(?:\\d+\\.)",ce="(?:[*+-])";function se(e){return"( *)("+(1===e?oe:ce)+") +"}const de=se(1),pe=se(2);function ue(e){return new RegExp("^"+(1===e?de:pe))}const fe=ue(1),he=ue(2);function me(e){return new RegExp("^"+(1===e?de:pe)+"[^\\n]*(?:\\n(?!\\1"+(1===e?oe:ce)+" )[^\\n]*)*(\\n|$)","gm")}const ge=me(1),ye=me(2);function ke(e){const t=1===e?oe:ce;return new RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const xe=ke(1),be=ke(2);function ve(e,t){const n=1===t,i=n?xe:be,l=n?ge:ye,a=n?fe:he;return{match(e,t){const n=ae.exec(t.prevCapture);return n&&(t.list||!t.inline&&!t.simple)?i.exec(e=n[1]+e):null},order:1,parse(e,t,r){const i=n?+e[2]:void 0,o=e[0].replace(d,"\n").match(l);let c=!1;return{items:o.map(function(e,n){const i=a.exec(e)[0].length,l=new RegExp("^ {1,"+i+"}","gm"),s=e.replace(l,"").replace(a,""),d=n===o.length-1,p=-1!==s.indexOf("\n\n")||d&&c;c=p;const u=r.inline,f=r.list;let h;r.list=!0,p?(r.inline=!1,h=s.replace(le,"\n\n")):(r.inline=!0,h=s.replace(le,""));const m=t(h,r);return r.inline=u,r.list=f,m}),ordered:n,start:i}},render:(t,n,i)=>e(t.ordered?"ol":"ul",{key:i.key,start:t.type===r.orderedList?t.start:void 0},t.items.map(function(t,r){return e("li",{key:r},n(t,i))}))}}const Se=new RegExp("^\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['\"]([\\s\\S]*?)['\"])?\\s*\\)"),Ce=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,$e=[p,g,y,w,L,z,O,j,ge,xe,ye,be],Ee=[...$e,/^[^\n]+(?: \n|\n{2,})/,A,M];function we(e){return e.replace(/[ÀÁÂÃÄÅàáâãäåæÆ]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function ze(e){return Q.test(e)?"right":Z.test(e)?"center":q.test(e)?"left":null}function Le(e,t,n,i){const l=n.inTable;n.inTable=!0;let a=e.trim().split(/( *(?:`[^`]*`|\\\||\|) *)/).reduce((e,l)=>("|"===l.trim()?e.push(i?{type:r.tableSeparator}:{type:r.text,text:l}):""!==l&&e.push.apply(e,t(l,n)),e),[]);n.inTable=l;let o=[[]];return a.forEach(function(e,t){e.type===r.tableSeparator?0!==t&&t!==a.length-1&&o.push([]):(e.type!==r.text||null!=a[t+1]&&a[t+1].type!==r.tableSeparator||(e.text=e.text.trimEnd()),o[o.length-1].push(e))}),o}function Ae(e,t,n){n.inline=!0;const i=e[2]?e[2].replace(W,"").split("|").map(ze):[],l=e[3]?function(e,t,n){return e.trim().split("\n").map(function(e){return Le(e,t,n,!0)})}(e[3],t,n):[],a=Le(e[1],t,n,!!l.length);return n.inline=!1,l.length?{align:i,cells:l,header:a,type:r.table}:{children:a,type:r.paragraph}}function Te(e,t){return null==e.align[t]?{}:{textAlign:e.align[t]}}function Oe(e){return function(t,n){return n.inline?e.exec(t):null}}function Be(e){return function(t,n){return n.inline||n.simple?e.exec(t):null}}function Me(e){return function(t,n){return n.inline||n.simple?null:e.exec(t)}}function Re(e){return function(t){return e.exec(t)}}function Ie(e,t){if(t.inline||t.simple)return null;let n="";e.split("\n").every(e=>!$e.some(t=>t.test(e))&&(n+=e+"\n",e.trim()));const r=n.trimEnd();return""==r?null:[n,r]}function Ue(e){try{if(decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"").match(/^\s*(javascript|vbscript|data(?!:image)):/i))return null}catch(e){return null}return e}function De(e){return e.replace(ie,"$1")}function Ne(e,t,n){const r=n.inline||!1,i=n.simple||!1;n.inline=!0,n.simple=!0;const l=e(t,n);return n.inline=r,n.simple=i,l}function je(e,t,n){const r=n.inline||!1,i=n.simple||!1;n.inline=!1,n.simple=!0;const l=e(t,n);return n.inline=r,n.simple=i,l}function He(e,t,n){const r=n.inline||!1;n.inline=!1;const i=e(t,n);return n.inline=r,i}const Pe=(e,t,n)=>({children:Ne(t,e[1],n)});function Fe(){return{}}function _e(){return null}function Ge(...e){return e.filter(Boolean).join(" ")}function We(e,t,n){let r=e;const i=t.split(".");for(;i.length&&(r=r[i[0]],void 0!==r);)i.shift();return r||n}function Ze(n="",i={}){function d(e,n,...r){const l=We(i.overrides,`${e}.props`,{});return i.createElement(function(e,t){const n=We(t,e);return n?"function"==typeof n||"object"==typeof n&&"render"in n?n:We(t,`${e}.component`,e):e}(e,i.overrides),t({},n,l,{className:Ge(null==n?void 0:n.className,l.className)||void 0}),...r)}function W(e){e=e.replace($,"");let t=!1;i.forceInline?t=!0:i.forceBlock||(t=!1===_.test(e));const n=le(ie(t?e:`${e.trimEnd().replace(ne,"")}\n\n`,{inline:t}));for(;"string"==typeof n[n.length-1]&&!n[n.length-1].trim();)n.pop();if(null===i.wrapper)return n;const r=i.wrapper||(t?"span":"div");let l;if(n.length>1||i.forceWrapper)l=n;else{if(1===n.length)return l=n[0],"string"==typeof l?d("span",{key:"outer"},l):l;l=null}return i.createElement(r,{key:"outer"},l)}function Z(e,t){const n=t.match(c);return n?n.reduce(function(t,n,r){const a=n.indexOf("=");if(-1!==a){const r=function(e){return-1!==e.indexOf("-")&&null===e.match(B)&&(e=e.replace(N,function(e,t){return t.toUpperCase()})),e}(n.slice(0,a)).trim(),o=function(e){const t=e[0];return('"'===t||"'"===t)&&e.length>=2&&e[e.length-1]===t?e.slice(1,-1):e}(n.slice(a+1).trim()),c=l[r]||r;if("ref"===c)return t;const s=t[c]=function(e,t,n,r){return"style"===t?n.split(/;\s?/).reduce(function(e,t){const n=t.slice(0,t.indexOf(":"));return e[n.trim().replace(/(-[a-z])/g,e=>e[1].toUpperCase())]=t.slice(n.length+1).trim(),e},{}):"href"===t||"src"===t?r(n,e,t):(n.match(R)&&(n=n.slice(1,n.length-1)),"true"===n||"false"!==n&&n)}(e,r,o,i.sanitizer);"string"==typeof s&&(A.test(s)||M.test(s))&&(t[c]=W(s.trim()))}else"style"!==n&&(t[l[n]||n]=!0);return t},{}):null}i.overrides=i.overrides||{},i.sanitizer=i.sanitizer||Ue,i.slugify=i.slugify||we,i.namedCodesToUnicode=i.namedCodesToUnicode?t({},a,i.namedCodesToUnicode):a,i.createElement=i.createElement||e.createElement;const q=[],Q={},V={[r.blockQuote]:{match:Me(p),order:1,parse(e,t,n){const[,r,i]=e[0].replace(u,"").match(f);return{alert:r,children:t(i,n)}},render(e,t,n){const l={key:n.key};return e.alert&&(l.className="markdown-alert-"+i.slugify(e.alert.toLowerCase(),we),e.children.unshift({attrs:{},children:[{type:r.text,text:e.alert}],noInnerParse:!0,type:r.htmlBlock,tag:"header"})),d("blockquote",l,t(e.children,n))}},[r.breakLine]:{match:Re(h),order:1,parse:Fe,render:(e,t,n)=>d("br",{key:n.key})},[r.breakThematic]:{match:Me(m),order:1,parse:Fe,render:(e,t,n)=>d("hr",{key:n.key})},[r.codeBlock]:{match:Me(y),order:0,parse:e=>({lang:void 0,text:e[0].replace(/^ {4}/gm,"").replace(/\n+$/,"")}),render:(e,n,r)=>d("pre",{key:r.key},d("code",t({},e.attrs,{className:e.lang?`lang-${e.lang}`:""}),e.text))},[r.codeFenced]:{match:Me(g),order:0,parse:e=>({attrs:Z("code",e[3]||""),lang:e[2]||void 0,text:e[4],type:r.codeBlock})},[r.codeInline]:{match:Be(k),order:3,parse:e=>({text:e[2]}),render:(e,t,n)=>d("code",{key:n.key},e.text)},[r.footnote]:{match:Me(v),order:0,parse:e=>(q.push({footnote:e[2],identifier:e[1]}),{}),render:_e},[r.footnoteReference]:{match:Oe(S),order:1,parse:e=>({target:`#${i.slugify(e[1],we)}`,text:e[1]}),render:(e,t,n)=>d("a",{key:n.key,href:i.sanitizer(e.target,"a","href")},d("sup",{key:n.key},e.text))},[r.gfmTask]:{match:Oe(E),order:1,parse:e=>({completed:"x"===e[1].toLowerCase()}),render:(e,t,n)=>d("input",{checked:e.completed,key:n.key,readOnly:!0,type:"checkbox"})},[r.heading]:{match:Me(i.enforceAtxHeadings?z:w),order:1,parse:(e,t,n)=>({children:Ne(t,e[2],n),id:i.slugify(e[2],we),level:e[1].length}),render:(e,t,n)=>d(`h${e.level}`,{id:e.id,key:n.key},t(e.children,n))},[r.headingSetext]:{match:Me(L),order:0,parse:(e,t,n)=>({children:Ne(t,e[1],n),level:"="===e[2]?1:2,type:r.heading})},[r.htmlBlock]:{match:Re(A),order:1,parse(e,t,n){const[,r]=e[3].match(re),i=new RegExp(`^${r}`,"gm"),l=e[3].replace(i,""),a=(c=l,Ee.some(e=>e.test(c))?He:Ne);var c;const s=e[1].toLowerCase(),d=-1!==o.indexOf(s),p=(d?s:e[1]).trim(),u={attrs:Z(p,e[2]),noInnerParse:d,tag:p};return n.inAnchor=n.inAnchor||"a"===s,d?u.text=e[3]:u.children=a(t,l,n),n.inAnchor=!1,u},render:(e,n,r)=>d(e.tag,t({key:r.key},e.attrs),e.text||(e.children?n(e.children,r):""))},[r.htmlSelfClosing]:{match:Re(M),order:1,parse(e){const t=e[1].trim();return{attrs:Z(t,e[2]||""),tag:t}},render:(e,n,r)=>d(e.tag,t({},e.attrs,{key:r.key}))},[r.htmlComment]:{match:Re(O),order:1,parse:()=>({}),render:_e},[r.image]:{match:Be(Ce),order:1,parse:e=>({alt:e[1],target:De(e[2]),title:e[3]}),render:(e,t,n)=>d("img",{key:n.key,alt:e.alt||void 0,title:e.title||void 0,src:i.sanitizer(e.target,"img","src")})},[r.link]:{match:Oe(Se),order:3,parse:(e,t,n)=>({children:je(t,e[1],n),target:De(e[2]),title:e[3]}),render:(e,t,n)=>d("a",{key:n.key,href:i.sanitizer(e.target,"a","href"),title:e.title},t(e.children,n))},[r.linkAngleBraceStyleDetector]:{match:Oe(D),order:0,parse:e=>({children:[{text:e[1],type:r.text}],target:e[1],type:r.link})},[r.linkBareUrlDetector]:{match:(e,t)=>t.inAnchor||i.disableAutoLink?null:Oe(I)(e,t),order:0,parse:e=>({children:[{text:e[1],type:r.text}],target:e[1],title:void 0,type:r.link})},[r.linkMailtoDetector]:{match:Oe(U),order:0,parse(e){let t=e[1],n=e[1];return s.test(n)||(n="mailto:"+n),{children:[{text:t.replace("mailto:",""),type:r.text}],target:n,type:r.link}}},[r.orderedList]:ve(d,1),[r.unorderedList]:ve(d,2),[r.newlineCoalescer]:{match:Me(x),order:3,parse:Fe,render:()=>"\n"},[r.paragraph]:{match:Ie,order:3,parse:Pe,render:(e,t,n)=>d("p",{key:n.key},t(e.children,n))},[r.ref]:{match:Oe(H),order:0,parse:e=>(Q[e[1]]={target:e[2],title:e[4]},{}),render:_e},[r.refImage]:{match:Be(P),order:0,parse:e=>({alt:e[1]||void 0,ref:e[2]}),render:(e,t,n)=>Q[e.ref]?d("img",{key:n.key,alt:e.alt,src:i.sanitizer(Q[e.ref].target,"img","src"),title:Q[e.ref].title}):null},[r.refLink]:{match:Oe(F),order:0,parse:(e,t,n)=>({children:t(e[1],n),fallbackChildren:e[0],ref:e[2]}),render:(e,t,n)=>Q[e.ref]?d("a",{key:n.key,href:i.sanitizer(Q[e.ref].target,"a","href"),title:Q[e.ref].title},t(e.children,n)):d("span",{key:n.key},e.fallbackChildren)},[r.table]:{match:Me(j),order:1,parse:Ae,render(e,t,n){const r=e;return d("table",{key:n.key},d("thead",null,d("tr",null,r.header.map(function(e,i){return d("th",{key:i,style:Te(r,i)},t(e,n))}))),d("tbody",null,r.cells.map(function(e,i){return d("tr",{key:i},e.map(function(e,i){return d("td",{key:i,style:Te(r,i)},t(e,n))}))})))}},[r.text]:{match:Re(te),order:4,parse:e=>({text:e[0].replace(T,(e,t)=>i.namedCodesToUnicode[t]?i.namedCodesToUnicode[t]:e)}),render:e=>e.text},[r.textBolded]:{match:Be(X),order:2,parse:(e,t,n)=>({children:t(e[2],n)}),render:(e,t,n)=>d("strong",{key:n.key},t(e.children,n))},[r.textEmphasized]:{match:Be(J),order:3,parse:(e,t,n)=>({children:t(e[2],n)}),render:(e,t,n)=>d("em",{key:n.key},t(e.children,n))},[r.textEscaped]:{match:Be(ee),order:1,parse:e=>({text:e[1],type:r.text})},[r.textMarked]:{match:Be(K),order:3,parse:Pe,render:(e,t,n)=>d("mark",{key:n.key},t(e.children,n))},[r.textStrikethroughed]:{match:Be(Y),order:3,parse:Pe,render:(e,t,n)=>d("del",{key:n.key},t(e.children,n))}};!0===i.disableParsingRawHTML&&(delete V[r.htmlBlock],delete V[r.htmlSelfClosing]);const ie=function(e){let t=Object.keys(e);function n(r,i){let l=[];for(i.prevCapture=i.prevCapture||"";r;){let a=0;for(;a<t.length;){const o=t[a],c=e[o],s=c.match(r,i);if(s){const e=s[0];i.prevCapture+=e,r=r.substring(e.length);const t=c.parse(s,n,i);null==t.type&&(t.type=o),l.push(t);break}a++}}return i.prevCapture="",l}return t.sort(function(t,n){let r=e[t].order,i=e[n].order;return r!==i?r-i:t<n?-1:1}),function(e,t){return n(function(e){return e.replace(b,"\n").replace(C,"").replace(G," ")}(e),t)}}(V),le=(ae=function(e,t){return function(n,r,i){const l=e[n.type].render;return t?t(()=>l(n,r,i),n,r,i):l(n,r,i)}}(V,i.renderRule),function e(t,n={}){if(Array.isArray(t)){const r=n.key,i=[];let l=!1;for(let r=0;r<t.length;r++){n.key=r;const a=e(t[r],n),o="string"==typeof a;o&&l?i[i.length-1]+=a:null!==a&&i.push(a),l=o}return n.key=r,i}return ae(t,e,n)});var ae;const oe=W(n);return q.length?d("div",null,oe,d("footer",{key:"footer"},q.map(function(e){return d("div",{id:i.slugify(e.identifier,we),key:e.identifier},e.identifier,le(ie(e.footnote,{inline:!0})))}))):oe}export default t=>{let{children:r="",options:i}=t,l=function(e,t){if(null==e)return{};var n,r,i={},l=Object.keys(e);for(r=0;r<l.length;r++)t.indexOf(n=l[r])>=0||(i[n]=e[n]);return i}(t,n);return e.cloneElement(Ze(r,i),l)};export{r as RuleType,Ze as compiler,Ue as sanitizer,we as slugify};
//# sourceMappingURL=index.modern.js.map

@@ -1,2 +0,2 @@

import*as e from"react";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])}return e},r.apply(this,arguments)}var n,t=["children","options"],i={blockQuote:"0",breakLine:"1",breakThematic:"2",codeBlock:"3",codeFenced:"4",codeInline:"5",footnote:"6",footnoteReference:"7",gfmTask:"8",heading:"9",headingSetext:"10",htmlBlock:"11",htmlComment:"12",htmlSelfClosing:"13",image:"14",link:"15",linkAngleBraceStyleDetector:"16",linkBareUrlDetector:"17",linkMailtoDetector:"18",newlineCoalescer:"19",orderedList:"20",paragraph:"21",ref:"22",refImage:"23",refLink:"24",table:"25",tableSeparator:"26",text:"27",textBolded:"28",textEmphasized:"29",textEscaped:"30",textMarked:"31",textStrikethroughed:"32",unorderedList:"33"};!function(e){e[e.MAX=0]="MAX",e[e.HIGH=1]="HIGH",e[e.MED=2]="MED",e[e.LOW=3]="LOW",e[e.MIN=4]="MIN"}(n||(n={}));var a=["allowFullScreen","allowTransparency","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","charSet","classId","colSpan","contentEditable","contextMenu","crossOrigin","encType","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","hrefLang","inputMode","keyParams","keyType","marginHeight","marginWidth","maxLength","mediaGroup","minLength","noValidate","radioGroup","readOnly","rowSpan","spellCheck","srcDoc","srcLang","srcSet","tabIndex","useMap"].reduce(function(e,r){return e[r.toLowerCase()]=r,e},{class:"className",for:"htmlFor"}),l={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},o=["style","script"],c=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,u=/mailto:/i,s=/\n{2,}$/,d=/^(\s*>[\s\S]*?)(?=\n\n|$)/,f=/^ *> ?/gm,p=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,h=/^ {2,}\n/,m=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,g=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,y=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,k=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,v=/^(?:\n *)*\n/,x=/\r\n?/g,b=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,S=/^\[\^([^\]]+)]/,C=/\f/g,E=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,w=/^\s*?\[(x|\s)\]/,z=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,L=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,A=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,T=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,$=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,O=/^<!--[\s\S]*?(?:-->)/,B=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,M=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,R=/^\{.*\}$/,I=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,U=/^<([^ >]+@[^ >]+)>/,D=/^<([^ >]+:\/[^ >]+)>/,N=/-([a-z])?/gi,j=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,H=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,P=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,F=/^\[([^\]]*)\] ?\[([^\]]*)\]/,_=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,G=/\t/g,W=/(^ *\||\| *$)/g,Z=/^ *:-+: *$/,q=/^ *:-+ *$/,Q=/^ *-+: *$/,V="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~~.*?~~|==.*?==|.|\\n)*?)",X=new RegExp("^([*_])\\1"+V+"\\1\\1(?!\\1)"),J=new RegExp("^([*_])"+V+"\\1(?!\\1|\\w)"),K=new RegExp("^=="+V+"=="),Y=new RegExp("^~~"+V+"~~"),ee=/^\\([^0-9A-Za-z\s])/,re=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&#;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,ne=/^\n+/,te=/^([ \t]*)/,ie=/\\([^\\])/g,ae=/ *\n+$/,le=/(?:^|\n)( *)$/,oe="(?:\\d+\\.)",ce="(?:[*+-])";function ue(e){return"( *)("+(1===e?oe:ce)+") +"}var se=ue(1),de=ue(2);function fe(e){return new RegExp("^"+(1===e?se:de))}var pe=fe(1),he=fe(2);function me(e){return new RegExp("^"+(1===e?se:de)+"[^\\n]*(?:\\n(?!\\1"+(1===e?oe:ce)+" )[^\\n]*)*(\\n|$)","gm")}var ge=me(1),ye=me(2);function ke(e){var r=1===e?oe:ce;return new RegExp("^( *)("+r+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+r+" (?!"+r+" ))\\n*|\\s*\\n*$)")}var ve=ke(1),xe=ke(2);function be(e,r){var n=1===r,t=n?ve:xe,a=n?ge:ye,l=n?pe:he;return{match:function(e,r){var n=le.exec(r.prevCapture);return n&&(r.list||!r.inline&&!r.simple)?t.exec(e=n[1]+e):null},order:1,parse:function(e,r,t){var i=n?+e[2]:void 0,o=e[0].replace(s,"\n").match(a),c=!1;return{items:o.map(function(e,n){var i=l.exec(e)[0].length,a=new RegExp("^ {1,"+i+"}","gm"),u=e.replace(a,"").replace(l,""),s=n===o.length-1,d=-1!==u.indexOf("\n\n")||s&&c;c=d;var f,p=t.inline,h=t.list;t.list=!0,d?(t.inline=!1,f=u.replace(ae,"\n\n")):(t.inline=!0,f=u.replace(ae,""));var m=r(f,t);return t.inline=p,t.list=h,m}),ordered:n,start:i}},render:function(r,n,t){return e(r.ordered?"ol":"ul",{key:t.key,start:r.type===i.orderedList?r.start:void 0},r.items.map(function(r,i){return e("li",{key:i},n(r,t))}))}}}var Se=new RegExp("^\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['\"]([\\s\\S]*?)['\"])?\\s*\\)"),Ce=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,Ee=[d,g,y,z,A,L,O,j,ge,ve,ye,xe],we=[].concat(Ee,[/^[^\n]+(?: \n|\n{2,})/,T,M]);function ze(e){return e.replace(/[ÀÁÂÃÄÅàáâãäåæÆ]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function Le(e){return Q.test(e)?"right":Z.test(e)?"center":q.test(e)?"left":null}function Ae(e,r,n,t){var a=n.inTable;n.inTable=!0;var l=e.trim().split(/( *(?:`[^`]*`|\\\||\|) *)/).reduce(function(e,a){return"|"===a.trim()?e.push(t?{type:i.tableSeparator}:{type:i.text,text:a}):""!==a&&e.push.apply(e,r(a,n)),e},[]);n.inTable=a;var o=[[]];return l.forEach(function(e,r){e.type===i.tableSeparator?0!==r&&r!==l.length-1&&o.push([]):(e.type!==i.text||null!=l[r+1]&&l[r+1].type!==i.tableSeparator||(e.text=e.text.trimEnd()),o[o.length-1].push(e))}),o}function Te(e,r,n){n.inline=!0;var t=e[2]?e[2].replace(W,"").split("|").map(Le):[],a=e[3]?function(e,r,n){return e.trim().split("\n").map(function(e){return Ae(e,r,n,!0)})}(e[3],r,n):[],l=Ae(e[1],r,n,!!a.length);return n.inline=!1,a.length?{align:t,cells:a,header:l,type:i.table}:{children:l,type:i.paragraph}}function $e(e,r){return null==e.align[r]?{}:{textAlign:e.align[r]}}function Oe(e){return function(r,n){return n.inline?e.exec(r):null}}function Be(e){return function(r,n){return n.inline||n.simple?e.exec(r):null}}function Me(e){return function(r,n){return n.inline||n.simple?null:e.exec(r)}}function Re(e){return function(r){return e.exec(r)}}function Ie(e,r){if(r.inline||r.simple)return null;var n="";e.split("\n").every(function(e){return!Ee.some(function(r){return r.test(e)})&&(n+=e+"\n",e.trim())});var t=n.trimEnd();return""==t?null:[n,t]}function Ue(e){try{if(decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"").match(/^\s*(javascript|vbscript|data(?!:image)):/i))return null}catch(e){return null}return e}function De(e){return e.replace(ie,"$1")}function Ne(e,r,n){var t=n.inline||!1,i=n.simple||!1;n.inline=!0,n.simple=!0;var a=e(r,n);return n.inline=t,n.simple=i,a}function je(e,r,n){var t=n.inline||!1,i=n.simple||!1;n.inline=!1,n.simple=!0;var a=e(r,n);return n.inline=t,n.simple=i,a}function He(e,r,n){var t=n.inline||!1;n.inline=!1;var i=e(r,n);return n.inline=t,i}var Pe=function(e,r,n){return{children:Ne(r,e[1],n)}};function Fe(){return{}}function _e(){return null}function Ge(){return[].slice.call(arguments).filter(Boolean).join(" ")}function We(e,r,n){for(var t=e,i=r.split(".");i.length&&void 0!==(t=t[i[0]]);)i.shift();return t||n}function Ze(e,r){var n=We(r,e);return n?"function"==typeof n||"object"==typeof n&&"render"in n?n:We(r,e+".component",e):e}function qe(n,t){var s;function W(e,n){var i,a=We(t.overrides,e+".props",{});return(i=t).createElement.apply(i,[Ze(e,t.overrides),r({},n,a,{className:Ge(null==n?void 0:n.className,a.className)||void 0})].concat([].slice.call(arguments,2)))}function Z(r){r=r.replace(E,"");var n=!1;t.forceInline?n=!0:t.forceBlock||(n=!1===_.test(r));for(var i=oe(le(n?r:r.trimEnd().replace(ne,"")+"\n\n",{inline:n}));"string"==typeof i[i.length-1]&&!i[i.length-1].trim();)i.pop();if(null===t.wrapper)return i;var a,l=t.wrapper||(n?"span":"div");if(i.length>1||t.forceWrapper)a=i;else{if(1===i.length)return"string"==typeof(a=i[0])?W("span",{key:"outer"},a):a;a=null}return e.createElement(l,{key:"outer"},a)}function q(r,n){var i=n.match(c);return i?i.reduce(function(n,i,l){var o=i.indexOf("=");if(-1!==o){var c=function(e){return-1!==e.indexOf("-")&&null===e.match(B)&&(e=e.replace(N,function(e,r){return r.toUpperCase()})),e}(i.slice(0,o)).trim(),u=function(e){var r=e[0];return('"'===r||"'"===r)&&e.length>=2&&e[e.length-1]===r?e.slice(1,-1):e}(i.slice(o+1).trim()),s=a[c]||c;if("ref"===s)return n;var d=n[s]=function(e,r,n,t){return"style"===r?n.split(/;\s?/).reduce(function(e,r){var n=r.slice(0,r.indexOf(":"));return e[n.trim().replace(/(-[a-z])/g,function(e){return e[1].toUpperCase()})]=r.slice(n.length+1).trim(),e},{}):"href"===r||"src"===r?t(n,e,r):(n.match(R)&&(n=n.slice(1,n.length-1)),"true"===n||"false"!==n&&n)}(r,c,u,t.sanitizer);"string"==typeof d&&(T.test(d)||M.test(d))&&(n[s]=e.cloneElement(Z(d.trim()),{key:l}))}else"style"!==i&&(n[a[i]||i]=!0);return n},{}):null}void 0===n&&(n=""),void 0===t&&(t={}),t.overrides=t.overrides||{},t.sanitizer=t.sanitizer||Ue,t.slugify=t.slugify||ze,t.namedCodesToUnicode=t.namedCodesToUnicode?r({},l,t.namedCodesToUnicode):l,t.createElement=t.createElement||e.createElement;var Q=[],V={},ie=((s={})[i.blockQuote]={match:Me(d),order:1,parse:function(e,r,n){var t=e[0].replace(f,"").match(p);return{alert:t[1],children:r(t[2],n)}},render:function(e,r,n){var a={key:n.key};return e.alert&&(a.className="markdown-alert-"+t.slugify(e.alert.toLowerCase(),ze),e.children.unshift({attrs:{},children:[{type:i.text,text:e.alert}],noInnerParse:!0,type:i.htmlBlock,tag:"header"})),W("blockquote",a,r(e.children,n))}},s[i.breakLine]={match:Re(h),order:1,parse:Fe,render:function(e,r,n){return W("br",{key:n.key})}},s[i.breakThematic]={match:Me(m),order:1,parse:Fe,render:function(e,r,n){return W("hr",{key:n.key})}},s[i.codeBlock]={match:Me(y),order:0,parse:function(e){return{lang:void 0,text:e[0].replace(/^ {4}/gm,"").replace(/\n+$/,"")}},render:function(e,n,t){return W("pre",{key:t.key},W("code",r({},e.attrs,{className:e.lang?"lang-"+e.lang:""}),e.text))}},s[i.codeFenced]={match:Me(g),order:0,parse:function(e){return{attrs:q("code",e[3]||""),lang:e[2]||void 0,text:e[4],type:i.codeBlock}}},s[i.codeInline]={match:Be(k),order:3,parse:function(e){return{text:e[2]}},render:function(e,r,n){return W("code",{key:n.key},e.text)}},s[i.footnote]={match:Me(b),order:0,parse:function(e){return Q.push({footnote:e[2],identifier:e[1]}),{}},render:_e},s[i.footnoteReference]={match:Oe(S),order:1,parse:function(e){return{target:"#"+t.slugify(e[1],ze),text:e[1]}},render:function(e,r,n){return W("a",{key:n.key,href:t.sanitizer(e.target,"a","href")},W("sup",{key:n.key},e.text))}},s[i.gfmTask]={match:Oe(w),order:1,parse:function(e){return{completed:"x"===e[1].toLowerCase()}},render:function(e,r,n){return W("input",{checked:e.completed,key:n.key,readOnly:!0,type:"checkbox"})}},s[i.heading]={match:Me(t.enforceAtxHeadings?L:z),order:1,parse:function(e,r,n){return{children:Ne(r,e[2],n),id:t.slugify(e[2],ze),level:e[1].length}},render:function(e,r,n){return W("h"+e.level,{id:e.id,key:n.key},r(e.children,n))}},s[i.headingSetext]={match:Me(A),order:0,parse:function(e,r,n){return{children:Ne(r,e[1],n),level:"="===e[2]?1:2,type:i.heading}}},s[i.htmlBlock]={match:Re(T),order:1,parse:function(e,r,n){var t,i=e[3].match(te),a=new RegExp("^"+i[1],"gm"),l=e[3].replace(a,""),c=(t=l,we.some(function(e){return e.test(t)})?He:Ne),u=e[1].toLowerCase(),s=-1!==o.indexOf(u),d=(s?u:e[1]).trim(),f={attrs:q(d,e[2]),noInnerParse:s,tag:d};return n.inAnchor=n.inAnchor||"a"===u,s?f.text=e[3]:f.children=c(r,l,n),n.inAnchor=!1,f},render:function(e,n,t){return W(e.tag,r({key:t.key},e.attrs),e.text||(e.children?n(e.children,t):""))}},s[i.htmlSelfClosing]={match:Re(M),order:1,parse:function(e){var r=e[1].trim();return{attrs:q(r,e[2]||""),tag:r}},render:function(e,n,t){return W(e.tag,r({},e.attrs,{key:t.key}))}},s[i.htmlComment]={match:Re(O),order:1,parse:function(){return{}},render:_e},s[i.image]={match:Be(Ce),order:1,parse:function(e){return{alt:e[1],target:De(e[2]),title:e[3]}},render:function(e,r,n){return W("img",{key:n.key,alt:e.alt||void 0,title:e.title||void 0,src:t.sanitizer(e.target,"img","src")})}},s[i.link]={match:Oe(Se),order:3,parse:function(e,r,n){return{children:je(r,e[1],n),target:De(e[2]),title:e[3]}},render:function(e,r,n){return W("a",{key:n.key,href:t.sanitizer(e.target,"a","href"),title:e.title},r(e.children,n))}},s[i.linkAngleBraceStyleDetector]={match:Oe(D),order:0,parse:function(e){return{children:[{text:e[1],type:i.text}],target:e[1],type:i.link}}},s[i.linkBareUrlDetector]={match:function(e,r){return r.inAnchor||t.disableAutoLink?null:Oe(I)(e,r)},order:0,parse:function(e){return{children:[{text:e[1],type:i.text}],target:e[1],title:void 0,type:i.link}}},s[i.linkMailtoDetector]={match:Oe(U),order:0,parse:function(e){var r=e[1],n=e[1];return u.test(n)||(n="mailto:"+n),{children:[{text:r.replace("mailto:",""),type:i.text}],target:n,type:i.link}}},s[i.orderedList]=be(W,1),s[i.unorderedList]=be(W,2),s[i.newlineCoalescer]={match:Me(v),order:3,parse:Fe,render:function(){return"\n"}},s[i.paragraph]={match:Ie,order:3,parse:Pe,render:function(e,r,n){return W("p",{key:n.key},r(e.children,n))}},s[i.ref]={match:Oe(H),order:0,parse:function(e){return V[e[1]]={target:e[2],title:e[4]},{}},render:_e},s[i.refImage]={match:Be(P),order:0,parse:function(e){return{alt:e[1]||void 0,ref:e[2]}},render:function(e,r,n){return V[e.ref]?W("img",{key:n.key,alt:e.alt,src:t.sanitizer(V[e.ref].target,"img","src"),title:V[e.ref].title}):null}},s[i.refLink]={match:Oe(F),order:0,parse:function(e,r,n){return{children:r(e[1],n),fallbackChildren:e[0],ref:e[2]}},render:function(e,r,n){return V[e.ref]?W("a",{key:n.key,href:t.sanitizer(V[e.ref].target,"a","href"),title:V[e.ref].title},r(e.children,n)):W("span",{key:n.key},e.fallbackChildren)}},s[i.table]={match:Me(j),order:1,parse:Te,render:function(e,r,n){var t=e;return W("table",{key:n.key},W("thead",null,W("tr",null,t.header.map(function(e,i){return W("th",{key:i,style:$e(t,i)},r(e,n))}))),W("tbody",null,t.cells.map(function(e,i){return W("tr",{key:i},e.map(function(e,i){return W("td",{key:i,style:$e(t,i)},r(e,n))}))})))}},s[i.text]={match:Re(re),order:4,parse:function(e){return{text:e[0].replace($,function(e,r){return t.namedCodesToUnicode[r]?t.namedCodesToUnicode[r]:e})}},render:function(e){return e.text}},s[i.textBolded]={match:Be(X),order:2,parse:function(e,r,n){return{children:r(e[2],n)}},render:function(e,r,n){return W("strong",{key:n.key},r(e.children,n))}},s[i.textEmphasized]={match:Be(J),order:3,parse:function(e,r,n){return{children:r(e[2],n)}},render:function(e,r,n){return W("em",{key:n.key},r(e.children,n))}},s[i.textEscaped]={match:Be(ee),order:1,parse:function(e){return{text:e[1],type:i.text}}},s[i.textMarked]={match:Be(K),order:3,parse:Pe,render:function(e,r,n){return W("mark",{key:n.key},r(e.children,n))}},s[i.textStrikethroughed]={match:Be(Y),order:3,parse:Pe,render:function(e,r,n){return W("del",{key:n.key},r(e.children,n))}},s);!0===t.disableParsingRawHTML&&(delete ie[i.htmlBlock],delete ie[i.htmlSelfClosing]);var ae,le=function(e){var r=Object.keys(e);function n(t,i){var a=[];for(i.prevCapture=i.prevCapture||"";t;)for(var l=0;l<r.length;){var o=r[l],c=e[o],u=c.match(t,i);if(u){var s=u[0];i.prevCapture+=s,t=t.substring(s.length);var d=c.parse(u,n,i);null==d.type&&(d.type=o),a.push(d);break}l++}return i.prevCapture="",a}return r.sort(function(r,n){var t=e[r].order,i=e[n].order;return t!==i?t-i:r<n?-1:1}),function(e,r){return n(function(e){return e.replace(x,"\n").replace(C,"").replace(G," ")}(e),r)}}(ie),oe=(ae=function(e,r){return function(n,t,i){var a=e[n.type].render;return r?r(function(){return a(n,t,i)},n,t,i):a(n,t,i)}}(ie,t.renderRule),function e(r,n){if(void 0===n&&(n={}),Array.isArray(r)){for(var t=n.key,i=[],a=!1,l=0;l<r.length;l++){n.key=l;var o=e(r[l],n),c="string"==typeof o;c&&a?i[i.length-1]+=o:null!==o&&i.push(o),a=c}return n.key=t,i}return ae(r,e,n)}),ce=Z(n);return Q.length?W("div",null,ce,W("footer",{key:"footer"},Q.map(function(e){return W("div",{id:t.slugify(e.identifier,ze),key:e.identifier},e.identifier,oe(le(e.footnote,{inline:!0})))}))):ce}export default function(r){var n=r.children,i=void 0===n?"":n,a=r.options,l=function(e,r){if(null==e)return{};var n,t,i={},a=Object.keys(e);for(t=0;t<a.length;t++)r.indexOf(n=a[t])>=0||(i[n]=e[n]);return i}(r,t);return e.cloneElement(qe(i,a),l)}export{i as RuleType,qe as compiler,Ue as sanitizer,ze as slugify};
import*as e from"react";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])}return e},r.apply(this,arguments)}var n,t=["children","options"],i={blockQuote:"0",breakLine:"1",breakThematic:"2",codeBlock:"3",codeFenced:"4",codeInline:"5",footnote:"6",footnoteReference:"7",gfmTask:"8",heading:"9",headingSetext:"10",htmlBlock:"11",htmlComment:"12",htmlSelfClosing:"13",image:"14",link:"15",linkAngleBraceStyleDetector:"16",linkBareUrlDetector:"17",linkMailtoDetector:"18",newlineCoalescer:"19",orderedList:"20",paragraph:"21",ref:"22",refImage:"23",refLink:"24",table:"25",tableSeparator:"26",text:"27",textBolded:"28",textEmphasized:"29",textEscaped:"30",textMarked:"31",textStrikethroughed:"32",unorderedList:"33"};!function(e){e[e.MAX=0]="MAX",e[e.HIGH=1]="HIGH",e[e.MED=2]="MED",e[e.LOW=3]="LOW",e[e.MIN=4]="MIN"}(n||(n={}));var a=["allowFullScreen","allowTransparency","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","charSet","classId","colSpan","contentEditable","contextMenu","crossOrigin","encType","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","hrefLang","inputMode","keyParams","keyType","marginHeight","marginWidth","maxLength","mediaGroup","minLength","noValidate","radioGroup","readOnly","rowSpan","spellCheck","srcDoc","srcLang","srcSet","tabIndex","useMap"].reduce(function(e,r){return e[r.toLowerCase()]=r,e},{class:"className",for:"htmlFor"}),l={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},o=["style","script"],c=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,u=/mailto:/i,s=/\n{2,}$/,d=/^(\s*>[\s\S]*?)(?=\n\n|$)/,f=/^ *> ?/gm,p=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,h=/^ {2,}\n/,m=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,g=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,y=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,k=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,v=/^(?:\n *)*\n/,x=/\r\n?/g,b=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,S=/^\[\^([^\]]+)]/,C=/\f/g,E=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,w=/^\s*?\[(x|\s)\]/,z=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,L=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,A=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,T=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,$=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,O=/^<!--[\s\S]*?(?:-->)/,B=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,M=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,R=/^\{.*\}$/,I=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,U=/^<([^ >]+@[^ >]+)>/,D=/^<([^ >]+:\/[^ >]+)>/,N=/-([a-z])?/gi,j=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,H=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,P=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,F=/^\[([^\]]*)\] ?\[([^\]]*)\]/,_=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,G=/\t/g,W=/(^ *\||\| *$)/g,Z=/^ *:-+: *$/,q=/^ *:-+ *$/,Q=/^ *-+: *$/,V="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~~.*?~~|==.*?==|.|\\n)*?)",X=new RegExp("^([*_])\\1"+V+"\\1\\1(?!\\1)"),J=new RegExp("^([*_])"+V+"\\1(?!\\1|\\w)"),K=new RegExp("^=="+V+"=="),Y=new RegExp("^~~"+V+"~~"),ee=/^\\([^0-9A-Za-z\s])/,re=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&#;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,ne=/^\n+/,te=/^([ \t]*)/,ie=/\\([^\\])/g,ae=/ *\n+$/,le=/(?:^|\n)( *)$/,oe="(?:\\d+\\.)",ce="(?:[*+-])";function ue(e){return"( *)("+(1===e?oe:ce)+") +"}var se=ue(1),de=ue(2);function fe(e){return new RegExp("^"+(1===e?se:de))}var pe=fe(1),he=fe(2);function me(e){return new RegExp("^"+(1===e?se:de)+"[^\\n]*(?:\\n(?!\\1"+(1===e?oe:ce)+" )[^\\n]*)*(\\n|$)","gm")}var ge=me(1),ye=me(2);function ke(e){var r=1===e?oe:ce;return new RegExp("^( *)("+r+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+r+" (?!"+r+" ))\\n*|\\s*\\n*$)")}var ve=ke(1),xe=ke(2);function be(e,r){var n=1===r,t=n?ve:xe,a=n?ge:ye,l=n?pe:he;return{match:function(e,r){var n=le.exec(r.prevCapture);return n&&(r.list||!r.inline&&!r.simple)?t.exec(e=n[1]+e):null},order:1,parse:function(e,r,t){var i=n?+e[2]:void 0,o=e[0].replace(s,"\n").match(a),c=!1;return{items:o.map(function(e,n){var i=l.exec(e)[0].length,a=new RegExp("^ {1,"+i+"}","gm"),u=e.replace(a,"").replace(l,""),s=n===o.length-1,d=-1!==u.indexOf("\n\n")||s&&c;c=d;var f,p=t.inline,h=t.list;t.list=!0,d?(t.inline=!1,f=u.replace(ae,"\n\n")):(t.inline=!0,f=u.replace(ae,""));var m=r(f,t);return t.inline=p,t.list=h,m}),ordered:n,start:i}},render:function(r,n,t){return e(r.ordered?"ol":"ul",{key:t.key,start:r.type===i.orderedList?r.start:void 0},r.items.map(function(r,i){return e("li",{key:i},n(r,t))}))}}}var Se=new RegExp("^\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['\"]([\\s\\S]*?)['\"])?\\s*\\)"),Ce=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,Ee=[d,g,y,z,A,L,O,j,ge,ve,ye,xe],we=[].concat(Ee,[/^[^\n]+(?: \n|\n{2,})/,T,M]);function ze(e){return e.replace(/[ÀÁÂÃÄÅàáâãäåæÆ]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function Le(e){return Q.test(e)?"right":Z.test(e)?"center":q.test(e)?"left":null}function Ae(e,r,n,t){var a=n.inTable;n.inTable=!0;var l=e.trim().split(/( *(?:`[^`]*`|\\\||\|) *)/).reduce(function(e,a){return"|"===a.trim()?e.push(t?{type:i.tableSeparator}:{type:i.text,text:a}):""!==a&&e.push.apply(e,r(a,n)),e},[]);n.inTable=a;var o=[[]];return l.forEach(function(e,r){e.type===i.tableSeparator?0!==r&&r!==l.length-1&&o.push([]):(e.type!==i.text||null!=l[r+1]&&l[r+1].type!==i.tableSeparator||(e.text=e.text.trimEnd()),o[o.length-1].push(e))}),o}function Te(e,r,n){n.inline=!0;var t=e[2]?e[2].replace(W,"").split("|").map(Le):[],a=e[3]?function(e,r,n){return e.trim().split("\n").map(function(e){return Ae(e,r,n,!0)})}(e[3],r,n):[],l=Ae(e[1],r,n,!!a.length);return n.inline=!1,a.length?{align:t,cells:a,header:l,type:i.table}:{children:l,type:i.paragraph}}function $e(e,r){return null==e.align[r]?{}:{textAlign:e.align[r]}}function Oe(e){return function(r,n){return n.inline?e.exec(r):null}}function Be(e){return function(r,n){return n.inline||n.simple?e.exec(r):null}}function Me(e){return function(r,n){return n.inline||n.simple?null:e.exec(r)}}function Re(e){return function(r){return e.exec(r)}}function Ie(e,r){if(r.inline||r.simple)return null;var n="";e.split("\n").every(function(e){return!Ee.some(function(r){return r.test(e)})&&(n+=e+"\n",e.trim())});var t=n.trimEnd();return""==t?null:[n,t]}function Ue(e){try{if(decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"").match(/^\s*(javascript|vbscript|data(?!:image)):/i))return null}catch(e){return null}return e}function De(e){return e.replace(ie,"$1")}function Ne(e,r,n){var t=n.inline||!1,i=n.simple||!1;n.inline=!0,n.simple=!0;var a=e(r,n);return n.inline=t,n.simple=i,a}function je(e,r,n){var t=n.inline||!1,i=n.simple||!1;n.inline=!1,n.simple=!0;var a=e(r,n);return n.inline=t,n.simple=i,a}function He(e,r,n){var t=n.inline||!1;n.inline=!1;var i=e(r,n);return n.inline=t,i}var Pe=function(e,r,n){return{children:Ne(r,e[1],n)}};function Fe(){return{}}function _e(){return null}function Ge(){return[].slice.call(arguments).filter(Boolean).join(" ")}function We(e,r,n){for(var t=e,i=r.split(".");i.length&&void 0!==(t=t[i[0]]);)i.shift();return t||n}function Ze(e,r){var n=We(r,e);return n?"function"==typeof n||"object"==typeof n&&"render"in n?n:We(r,e+".component",e):e}function qe(n,t){var s;function W(e,n){var i,a=We(t.overrides,e+".props",{});return(i=t).createElement.apply(i,[Ze(e,t.overrides),r({},n,a,{className:Ge(null==n?void 0:n.className,a.className)||void 0})].concat([].slice.call(arguments,2)))}function Z(e){e=e.replace(E,"");var r=!1;t.forceInline?r=!0:t.forceBlock||(r=!1===_.test(e));for(var n=oe(le(r?e:e.trimEnd().replace(ne,"")+"\n\n",{inline:r}));"string"==typeof n[n.length-1]&&!n[n.length-1].trim();)n.pop();if(null===t.wrapper)return n;var i,a=t.wrapper||(r?"span":"div");if(n.length>1||t.forceWrapper)i=n;else{if(1===n.length)return"string"==typeof(i=n[0])?W("span",{key:"outer"},i):i;i=null}return t.createElement(a,{key:"outer"},i)}function q(e,r){var n=r.match(c);return n?n.reduce(function(r,n,i){var l=n.indexOf("=");if(-1!==l){var o=function(e){return-1!==e.indexOf("-")&&null===e.match(B)&&(e=e.replace(N,function(e,r){return r.toUpperCase()})),e}(n.slice(0,l)).trim(),c=function(e){var r=e[0];return('"'===r||"'"===r)&&e.length>=2&&e[e.length-1]===r?e.slice(1,-1):e}(n.slice(l+1).trim()),u=a[o]||o;if("ref"===u)return r;var s=r[u]=function(e,r,n,t){return"style"===r?n.split(/;\s?/).reduce(function(e,r){var n=r.slice(0,r.indexOf(":"));return e[n.trim().replace(/(-[a-z])/g,function(e){return e[1].toUpperCase()})]=r.slice(n.length+1).trim(),e},{}):"href"===r||"src"===r?t(n,e,r):(n.match(R)&&(n=n.slice(1,n.length-1)),"true"===n||"false"!==n&&n)}(e,o,c,t.sanitizer);"string"==typeof s&&(T.test(s)||M.test(s))&&(r[u]=Z(s.trim()))}else"style"!==n&&(r[a[n]||n]=!0);return r},{}):null}void 0===n&&(n=""),void 0===t&&(t={}),t.overrides=t.overrides||{},t.sanitizer=t.sanitizer||Ue,t.slugify=t.slugify||ze,t.namedCodesToUnicode=t.namedCodesToUnicode?r({},l,t.namedCodesToUnicode):l,t.createElement=t.createElement||e.createElement;var Q=[],V={},ie=((s={})[i.blockQuote]={match:Me(d),order:1,parse:function(e,r,n){var t=e[0].replace(f,"").match(p);return{alert:t[1],children:r(t[2],n)}},render:function(e,r,n){var a={key:n.key};return e.alert&&(a.className="markdown-alert-"+t.slugify(e.alert.toLowerCase(),ze),e.children.unshift({attrs:{},children:[{type:i.text,text:e.alert}],noInnerParse:!0,type:i.htmlBlock,tag:"header"})),W("blockquote",a,r(e.children,n))}},s[i.breakLine]={match:Re(h),order:1,parse:Fe,render:function(e,r,n){return W("br",{key:n.key})}},s[i.breakThematic]={match:Me(m),order:1,parse:Fe,render:function(e,r,n){return W("hr",{key:n.key})}},s[i.codeBlock]={match:Me(y),order:0,parse:function(e){return{lang:void 0,text:e[0].replace(/^ {4}/gm,"").replace(/\n+$/,"")}},render:function(e,n,t){return W("pre",{key:t.key},W("code",r({},e.attrs,{className:e.lang?"lang-"+e.lang:""}),e.text))}},s[i.codeFenced]={match:Me(g),order:0,parse:function(e){return{attrs:q("code",e[3]||""),lang:e[2]||void 0,text:e[4],type:i.codeBlock}}},s[i.codeInline]={match:Be(k),order:3,parse:function(e){return{text:e[2]}},render:function(e,r,n){return W("code",{key:n.key},e.text)}},s[i.footnote]={match:Me(b),order:0,parse:function(e){return Q.push({footnote:e[2],identifier:e[1]}),{}},render:_e},s[i.footnoteReference]={match:Oe(S),order:1,parse:function(e){return{target:"#"+t.slugify(e[1],ze),text:e[1]}},render:function(e,r,n){return W("a",{key:n.key,href:t.sanitizer(e.target,"a","href")},W("sup",{key:n.key},e.text))}},s[i.gfmTask]={match:Oe(w),order:1,parse:function(e){return{completed:"x"===e[1].toLowerCase()}},render:function(e,r,n){return W("input",{checked:e.completed,key:n.key,readOnly:!0,type:"checkbox"})}},s[i.heading]={match:Me(t.enforceAtxHeadings?L:z),order:1,parse:function(e,r,n){return{children:Ne(r,e[2],n),id:t.slugify(e[2],ze),level:e[1].length}},render:function(e,r,n){return W("h"+e.level,{id:e.id,key:n.key},r(e.children,n))}},s[i.headingSetext]={match:Me(A),order:0,parse:function(e,r,n){return{children:Ne(r,e[1],n),level:"="===e[2]?1:2,type:i.heading}}},s[i.htmlBlock]={match:Re(T),order:1,parse:function(e,r,n){var t,i=e[3].match(te),a=new RegExp("^"+i[1],"gm"),l=e[3].replace(a,""),c=(t=l,we.some(function(e){return e.test(t)})?He:Ne),u=e[1].toLowerCase(),s=-1!==o.indexOf(u),d=(s?u:e[1]).trim(),f={attrs:q(d,e[2]),noInnerParse:s,tag:d};return n.inAnchor=n.inAnchor||"a"===u,s?f.text=e[3]:f.children=c(r,l,n),n.inAnchor=!1,f},render:function(e,n,t){return W(e.tag,r({key:t.key},e.attrs),e.text||(e.children?n(e.children,t):""))}},s[i.htmlSelfClosing]={match:Re(M),order:1,parse:function(e){var r=e[1].trim();return{attrs:q(r,e[2]||""),tag:r}},render:function(e,n,t){return W(e.tag,r({},e.attrs,{key:t.key}))}},s[i.htmlComment]={match:Re(O),order:1,parse:function(){return{}},render:_e},s[i.image]={match:Be(Ce),order:1,parse:function(e){return{alt:e[1],target:De(e[2]),title:e[3]}},render:function(e,r,n){return W("img",{key:n.key,alt:e.alt||void 0,title:e.title||void 0,src:t.sanitizer(e.target,"img","src")})}},s[i.link]={match:Oe(Se),order:3,parse:function(e,r,n){return{children:je(r,e[1],n),target:De(e[2]),title:e[3]}},render:function(e,r,n){return W("a",{key:n.key,href:t.sanitizer(e.target,"a","href"),title:e.title},r(e.children,n))}},s[i.linkAngleBraceStyleDetector]={match:Oe(D),order:0,parse:function(e){return{children:[{text:e[1],type:i.text}],target:e[1],type:i.link}}},s[i.linkBareUrlDetector]={match:function(e,r){return r.inAnchor||t.disableAutoLink?null:Oe(I)(e,r)},order:0,parse:function(e){return{children:[{text:e[1],type:i.text}],target:e[1],title:void 0,type:i.link}}},s[i.linkMailtoDetector]={match:Oe(U),order:0,parse:function(e){var r=e[1],n=e[1];return u.test(n)||(n="mailto:"+n),{children:[{text:r.replace("mailto:",""),type:i.text}],target:n,type:i.link}}},s[i.orderedList]=be(W,1),s[i.unorderedList]=be(W,2),s[i.newlineCoalescer]={match:Me(v),order:3,parse:Fe,render:function(){return"\n"}},s[i.paragraph]={match:Ie,order:3,parse:Pe,render:function(e,r,n){return W("p",{key:n.key},r(e.children,n))}},s[i.ref]={match:Oe(H),order:0,parse:function(e){return V[e[1]]={target:e[2],title:e[4]},{}},render:_e},s[i.refImage]={match:Be(P),order:0,parse:function(e){return{alt:e[1]||void 0,ref:e[2]}},render:function(e,r,n){return V[e.ref]?W("img",{key:n.key,alt:e.alt,src:t.sanitizer(V[e.ref].target,"img","src"),title:V[e.ref].title}):null}},s[i.refLink]={match:Oe(F),order:0,parse:function(e,r,n){return{children:r(e[1],n),fallbackChildren:e[0],ref:e[2]}},render:function(e,r,n){return V[e.ref]?W("a",{key:n.key,href:t.sanitizer(V[e.ref].target,"a","href"),title:V[e.ref].title},r(e.children,n)):W("span",{key:n.key},e.fallbackChildren)}},s[i.table]={match:Me(j),order:1,parse:Te,render:function(e,r,n){var t=e;return W("table",{key:n.key},W("thead",null,W("tr",null,t.header.map(function(e,i){return W("th",{key:i,style:$e(t,i)},r(e,n))}))),W("tbody",null,t.cells.map(function(e,i){return W("tr",{key:i},e.map(function(e,i){return W("td",{key:i,style:$e(t,i)},r(e,n))}))})))}},s[i.text]={match:Re(re),order:4,parse:function(e){return{text:e[0].replace($,function(e,r){return t.namedCodesToUnicode[r]?t.namedCodesToUnicode[r]:e})}},render:function(e){return e.text}},s[i.textBolded]={match:Be(X),order:2,parse:function(e,r,n){return{children:r(e[2],n)}},render:function(e,r,n){return W("strong",{key:n.key},r(e.children,n))}},s[i.textEmphasized]={match:Be(J),order:3,parse:function(e,r,n){return{children:r(e[2],n)}},render:function(e,r,n){return W("em",{key:n.key},r(e.children,n))}},s[i.textEscaped]={match:Be(ee),order:1,parse:function(e){return{text:e[1],type:i.text}}},s[i.textMarked]={match:Be(K),order:3,parse:Pe,render:function(e,r,n){return W("mark",{key:n.key},r(e.children,n))}},s[i.textStrikethroughed]={match:Be(Y),order:3,parse:Pe,render:function(e,r,n){return W("del",{key:n.key},r(e.children,n))}},s);!0===t.disableParsingRawHTML&&(delete ie[i.htmlBlock],delete ie[i.htmlSelfClosing]);var ae,le=function(e){var r=Object.keys(e);function n(t,i){var a=[];for(i.prevCapture=i.prevCapture||"";t;)for(var l=0;l<r.length;){var o=r[l],c=e[o],u=c.match(t,i);if(u){var s=u[0];i.prevCapture+=s,t=t.substring(s.length);var d=c.parse(u,n,i);null==d.type&&(d.type=o),a.push(d);break}l++}return i.prevCapture="",a}return r.sort(function(r,n){var t=e[r].order,i=e[n].order;return t!==i?t-i:r<n?-1:1}),function(e,r){return n(function(e){return e.replace(x,"\n").replace(C,"").replace(G," ")}(e),r)}}(ie),oe=(ae=function(e,r){return function(n,t,i){var a=e[n.type].render;return r?r(function(){return a(n,t,i)},n,t,i):a(n,t,i)}}(ie,t.renderRule),function e(r,n){if(void 0===n&&(n={}),Array.isArray(r)){for(var t=n.key,i=[],a=!1,l=0;l<r.length;l++){n.key=l;var o=e(r[l],n),c="string"==typeof o;c&&a?i[i.length-1]+=o:null!==o&&i.push(o),a=c}return n.key=t,i}return ae(r,e,n)}),ce=Z(n);return Q.length?W("div",null,ce,W("footer",{key:"footer"},Q.map(function(e){return W("div",{id:t.slugify(e.identifier,ze),key:e.identifier},e.identifier,oe(le(e.footnote,{inline:!0})))}))):ce}export default function(r){var n=r.children,i=void 0===n?"":n,a=r.options,l=function(e,r){if(null==e)return{};var n,t,i={},a=Object.keys(e);for(t=0;t<a.length;t++)r.indexOf(n=a[t])>=0||(i[n]=e[n]);return i}(r,t);return e.cloneElement(qe(i,a),l)}export{i as RuleType,qe as compiler,Ue as sanitizer,ze as slugify};
//# sourceMappingURL=index.module.js.map

@@ -1,2 +0,2 @@

!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r(require("react")):"function"==typeof define&&define.amd?define(["react"],r):(e||self).MarkdownToJSX=r(e.React)}(this,function(e){function r(e){if(e&&e.__esModule)return e;var r=Object.create(null);return e&&Object.keys(e).forEach(function(n){if("default"!==n){var t=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,t.get?t:{enumerable:!0,get:function(){return e[n]}})}}),r.default=e,r}var n=/*#__PURE__*/r(e);function t(){return t=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])}return e},t.apply(this,arguments)}var i,a=["children","options"],o={blockQuote:"0",breakLine:"1",breakThematic:"2",codeBlock:"3",codeFenced:"4",codeInline:"5",footnote:"6",footnoteReference:"7",gfmTask:"8",heading:"9",headingSetext:"10",htmlBlock:"11",htmlComment:"12",htmlSelfClosing:"13",image:"14",link:"15",linkAngleBraceStyleDetector:"16",linkBareUrlDetector:"17",linkMailtoDetector:"18",newlineCoalescer:"19",orderedList:"20",paragraph:"21",ref:"22",refImage:"23",refLink:"24",table:"25",tableSeparator:"26",text:"27",textBolded:"28",textEmphasized:"29",textEscaped:"30",textMarked:"31",textStrikethroughed:"32",unorderedList:"33"};!function(e){e[e.MAX=0]="MAX",e[e.HIGH=1]="HIGH",e[e.MED=2]="MED",e[e.LOW=3]="LOW",e[e.MIN=4]="MIN"}(i||(i={}));var l=["allowFullScreen","allowTransparency","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","charSet","classId","colSpan","contentEditable","contextMenu","crossOrigin","encType","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","hrefLang","inputMode","keyParams","keyType","marginHeight","marginWidth","maxLength","mediaGroup","minLength","noValidate","radioGroup","readOnly","rowSpan","spellCheck","srcDoc","srcLang","srcSet","tabIndex","useMap"].reduce(function(e,r){return e[r.toLowerCase()]=r,e},{class:"className",for:"htmlFor"}),c={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},u=["style","script"],s=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,d=/mailto:/i,f=/\n{2,}$/,p=/^(\s*>[\s\S]*?)(?=\n\n|$)/,h=/^ *> ?/gm,m=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,g=/^ {2,}\n/,y=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,k=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,v=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,x=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,b=/^(?:\n *)*\n/,S=/\r\n?/g,E=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,w=/^\[\^([^\]]+)]/,C=/\f/g,O=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,z=/^\s*?\[(x|\s)\]/,L=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,T=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,A=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,$=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,M=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,R=/^<!--[\s\S]*?(?:-->)/,B=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,j=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,I=/^\{.*\}$/,D=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,U=/^<([^ >]+@[^ >]+)>/,N=/^<([^ >]+:\/[^ >]+)>/,P=/-([a-z])?/gi,_=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,H=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,F=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,G=/^\[([^\]]*)\] ?\[([^\]]*)\]/,W=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,Z=/\t/g,q=/(^ *\||\| *$)/g,X=/^ *:-+: *$/,Q=/^ *:-+ *$/,V=/^ *-+: *$/,J="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~~.*?~~|==.*?==|.|\\n)*?)",K=new RegExp("^([*_])\\1"+J+"\\1\\1(?!\\1)"),Y=new RegExp("^([*_])"+J+"\\1(?!\\1|\\w)"),ee=new RegExp("^=="+J+"=="),re=new RegExp("^~~"+J+"~~"),ne=/^\\([^0-9A-Za-z\s])/,te=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&#;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,ie=/^\n+/,ae=/^([ \t]*)/,oe=/\\([^\\])/g,le=/ *\n+$/,ce=/(?:^|\n)( *)$/,ue="(?:\\d+\\.)",se="(?:[*+-])";function de(e){return"( *)("+(1===e?ue:se)+") +"}var fe=de(1),pe=de(2);function he(e){return new RegExp("^"+(1===e?fe:pe))}var me=he(1),ge=he(2);function ye(e){return new RegExp("^"+(1===e?fe:pe)+"[^\\n]*(?:\\n(?!\\1"+(1===e?ue:se)+" )[^\\n]*)*(\\n|$)","gm")}var ke=ye(1),ve=ye(2);function xe(e){var r=1===e?ue:se;return new RegExp("^( *)("+r+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+r+" (?!"+r+" ))\\n*|\\s*\\n*$)")}var be=xe(1),Se=xe(2);function Ee(e,r){var n=1===r,t=n?be:Se,i=n?ke:ve,a=n?me:ge;return{match:function(e,r){var n=ce.exec(r.prevCapture);return n&&(r.list||!r.inline&&!r.simple)?t.exec(e=n[1]+e):null},order:1,parse:function(e,r,t){var o=n?+e[2]:void 0,l=e[0].replace(f,"\n").match(i),c=!1;return{items:l.map(function(e,n){var i=a.exec(e)[0].length,o=new RegExp("^ {1,"+i+"}","gm"),u=e.replace(o,"").replace(a,""),s=n===l.length-1,d=-1!==u.indexOf("\n\n")||s&&c;c=d;var f,p=t.inline,h=t.list;t.list=!0,d?(t.inline=!1,f=u.replace(le,"\n\n")):(t.inline=!0,f=u.replace(le,""));var m=r(f,t);return t.inline=p,t.list=h,m}),ordered:n,start:o}},render:function(r,n,t){return e(r.ordered?"ol":"ul",{key:t.key,start:r.type===o.orderedList?r.start:void 0},r.items.map(function(r,i){return e("li",{key:i},n(r,t))}))}}}var we=new RegExp("^\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['\"]([\\s\\S]*?)['\"])?\\s*\\)"),Ce=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,Oe=[p,k,v,L,A,T,R,_,ke,be,ve,Se],ze=[].concat(Oe,[/^[^\n]+(?: \n|\n{2,})/,$,j]);function Le(e){return e.replace(/[ÀÁÂÃÄÅàáâãäåæÆ]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function Te(e){return V.test(e)?"right":X.test(e)?"center":Q.test(e)?"left":null}function Ae(e,r,n,t){var i=n.inTable;n.inTable=!0;var a=e.trim().split(/( *(?:`[^`]*`|\\\||\|) *)/).reduce(function(e,i){return"|"===i.trim()?e.push(t?{type:o.tableSeparator}:{type:o.text,text:i}):""!==i&&e.push.apply(e,r(i,n)),e},[]);n.inTable=i;var l=[[]];return a.forEach(function(e,r){e.type===o.tableSeparator?0!==r&&r!==a.length-1&&l.push([]):(e.type!==o.text||null!=a[r+1]&&a[r+1].type!==o.tableSeparator||(e.text=e.text.trimEnd()),l[l.length-1].push(e))}),l}function $e(e,r,n){n.inline=!0;var t=e[2]?e[2].replace(q,"").split("|").map(Te):[],i=e[3]?function(e,r,n){return e.trim().split("\n").map(function(e){return Ae(e,r,n,!0)})}(e[3],r,n):[],a=Ae(e[1],r,n,!!i.length);return n.inline=!1,i.length?{align:t,cells:i,header:a,type:o.table}:{children:a,type:o.paragraph}}function Me(e,r){return null==e.align[r]?{}:{textAlign:e.align[r]}}function Re(e){return function(r,n){return n.inline?e.exec(r):null}}function Be(e){return function(r,n){return n.inline||n.simple?e.exec(r):null}}function je(e){return function(r,n){return n.inline||n.simple?null:e.exec(r)}}function Ie(e){return function(r){return e.exec(r)}}function De(e,r){if(r.inline||r.simple)return null;var n="";e.split("\n").every(function(e){return!Oe.some(function(r){return r.test(e)})&&(n+=e+"\n",e.trim())});var t=n.trimEnd();return""==t?null:[n,t]}function Ue(e){try{if(decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"").match(/^\s*(javascript|vbscript|data(?!:image)):/i))return null}catch(e){return null}return e}function Ne(e){return e.replace(oe,"$1")}function Pe(e,r,n){var t=n.inline||!1,i=n.simple||!1;n.inline=!0,n.simple=!0;var a=e(r,n);return n.inline=t,n.simple=i,a}function _e(e,r,n){var t=n.inline||!1,i=n.simple||!1;n.inline=!1,n.simple=!0;var a=e(r,n);return n.inline=t,n.simple=i,a}function He(e,r,n){var t=n.inline||!1;n.inline=!1;var i=e(r,n);return n.inline=t,i}var Fe=function(e,r,n){return{children:Pe(r,e[1],n)}};function Ge(){return{}}function We(){return null}function Ze(){return[].slice.call(arguments).filter(Boolean).join(" ")}function qe(e,r,n){for(var t=e,i=r.split(".");i.length&&void 0!==(t=t[i[0]]);)i.shift();return t||n}function Xe(e,r){var n=qe(r,e);return n?"function"==typeof n||"object"==typeof n&&"render"in n?n:qe(r,e+".component",e):e}function Qe(e,r){var i;function a(e,n){var i,a=qe(r.overrides,e+".props",{});return(i=r).createElement.apply(i,[Xe(e,r.overrides),t({},n,a,{className:Ze(null==n?void 0:n.className,a.className)||void 0})].concat([].slice.call(arguments,2)))}function f(e){e=e.replace(O,"");var t=!1;r.forceInline?t=!0:r.forceBlock||(t=!1===W.test(e));for(var i=le(oe(t?e:e.trimEnd().replace(ie,"")+"\n\n",{inline:t}));"string"==typeof i[i.length-1]&&!i[i.length-1].trim();)i.pop();if(null===r.wrapper)return i;var o,l=r.wrapper||(t?"span":"div");if(i.length>1||r.forceWrapper)o=i;else{if(1===i.length)return"string"==typeof(o=i[0])?a("span",{key:"outer"},o):o;o=null}return n.createElement(l,{key:"outer"},o)}function q(e,t){var i=t.match(s);return i?i.reduce(function(t,i,a){var o=i.indexOf("=");if(-1!==o){var c=function(e){return-1!==e.indexOf("-")&&null===e.match(B)&&(e=e.replace(P,function(e,r){return r.toUpperCase()})),e}(i.slice(0,o)).trim(),u=function(e){var r=e[0];return('"'===r||"'"===r)&&e.length>=2&&e[e.length-1]===r?e.slice(1,-1):e}(i.slice(o+1).trim()),s=l[c]||c;if("ref"===s)return t;var d=t[s]=function(e,r,n,t){return"style"===r?n.split(/;\s?/).reduce(function(e,r){var n=r.slice(0,r.indexOf(":"));return e[n.trim().replace(/(-[a-z])/g,function(e){return e[1].toUpperCase()})]=r.slice(n.length+1).trim(),e},{}):"href"===r||"src"===r?t(n,e,r):(n.match(I)&&(n=n.slice(1,n.length-1)),"true"===n||"false"!==n&&n)}(e,c,u,r.sanitizer);"string"==typeof d&&($.test(d)||j.test(d))&&(t[s]=n.cloneElement(f(d.trim()),{key:a}))}else"style"!==i&&(t[l[i]||i]=!0);return t},{}):null}void 0===e&&(e=""),void 0===r&&(r={}),r.overrides=r.overrides||{},r.sanitizer=r.sanitizer||Ue,r.slugify=r.slugify||Le,r.namedCodesToUnicode=r.namedCodesToUnicode?t({},c,r.namedCodesToUnicode):c,r.createElement=r.createElement||n.createElement;var X=[],Q={},V=((i={})[o.blockQuote]={match:je(p),order:1,parse:function(e,r,n){var t=e[0].replace(h,"").match(m);return{alert:t[1],children:r(t[2],n)}},render:function(e,n,t){var i={key:t.key};return e.alert&&(i.className="markdown-alert-"+r.slugify(e.alert.toLowerCase(),Le),e.children.unshift({attrs:{},children:[{type:o.text,text:e.alert}],noInnerParse:!0,type:o.htmlBlock,tag:"header"})),a("blockquote",i,n(e.children,t))}},i[o.breakLine]={match:Ie(g),order:1,parse:Ge,render:function(e,r,n){return a("br",{key:n.key})}},i[o.breakThematic]={match:je(y),order:1,parse:Ge,render:function(e,r,n){return a("hr",{key:n.key})}},i[o.codeBlock]={match:je(v),order:0,parse:function(e){return{lang:void 0,text:e[0].replace(/^ {4}/gm,"").replace(/\n+$/,"")}},render:function(e,r,n){return a("pre",{key:n.key},a("code",t({},e.attrs,{className:e.lang?"lang-"+e.lang:""}),e.text))}},i[o.codeFenced]={match:je(k),order:0,parse:function(e){return{attrs:q("code",e[3]||""),lang:e[2]||void 0,text:e[4],type:o.codeBlock}}},i[o.codeInline]={match:Be(x),order:3,parse:function(e){return{text:e[2]}},render:function(e,r,n){return a("code",{key:n.key},e.text)}},i[o.footnote]={match:je(E),order:0,parse:function(e){return X.push({footnote:e[2],identifier:e[1]}),{}},render:We},i[o.footnoteReference]={match:Re(w),order:1,parse:function(e){return{target:"#"+r.slugify(e[1],Le),text:e[1]}},render:function(e,n,t){return a("a",{key:t.key,href:r.sanitizer(e.target,"a","href")},a("sup",{key:t.key},e.text))}},i[o.gfmTask]={match:Re(z),order:1,parse:function(e){return{completed:"x"===e[1].toLowerCase()}},render:function(e,r,n){return a("input",{checked:e.completed,key:n.key,readOnly:!0,type:"checkbox"})}},i[o.heading]={match:je(r.enforceAtxHeadings?T:L),order:1,parse:function(e,n,t){return{children:Pe(n,e[2],t),id:r.slugify(e[2],Le),level:e[1].length}},render:function(e,r,n){return a("h"+e.level,{id:e.id,key:n.key},r(e.children,n))}},i[o.headingSetext]={match:je(A),order:0,parse:function(e,r,n){return{children:Pe(r,e[1],n),level:"="===e[2]?1:2,type:o.heading}}},i[o.htmlBlock]={match:Ie($),order:1,parse:function(e,r,n){var t,i=e[3].match(ae),a=new RegExp("^"+i[1],"gm"),o=e[3].replace(a,""),l=(t=o,ze.some(function(e){return e.test(t)})?He:Pe),c=e[1].toLowerCase(),s=-1!==u.indexOf(c),d=(s?c:e[1]).trim(),f={attrs:q(d,e[2]),noInnerParse:s,tag:d};return n.inAnchor=n.inAnchor||"a"===c,s?f.text=e[3]:f.children=l(r,o,n),n.inAnchor=!1,f},render:function(e,r,n){return a(e.tag,t({key:n.key},e.attrs),e.text||(e.children?r(e.children,n):""))}},i[o.htmlSelfClosing]={match:Ie(j),order:1,parse:function(e){var r=e[1].trim();return{attrs:q(r,e[2]||""),tag:r}},render:function(e,r,n){return a(e.tag,t({},e.attrs,{key:n.key}))}},i[o.htmlComment]={match:Ie(R),order:1,parse:function(){return{}},render:We},i[o.image]={match:Be(Ce),order:1,parse:function(e){return{alt:e[1],target:Ne(e[2]),title:e[3]}},render:function(e,n,t){return a("img",{key:t.key,alt:e.alt||void 0,title:e.title||void 0,src:r.sanitizer(e.target,"img","src")})}},i[o.link]={match:Re(we),order:3,parse:function(e,r,n){return{children:_e(r,e[1],n),target:Ne(e[2]),title:e[3]}},render:function(e,n,t){return a("a",{key:t.key,href:r.sanitizer(e.target,"a","href"),title:e.title},n(e.children,t))}},i[o.linkAngleBraceStyleDetector]={match:Re(N),order:0,parse:function(e){return{children:[{text:e[1],type:o.text}],target:e[1],type:o.link}}},i[o.linkBareUrlDetector]={match:function(e,n){return n.inAnchor||r.disableAutoLink?null:Re(D)(e,n)},order:0,parse:function(e){return{children:[{text:e[1],type:o.text}],target:e[1],title:void 0,type:o.link}}},i[o.linkMailtoDetector]={match:Re(U),order:0,parse:function(e){var r=e[1],n=e[1];return d.test(n)||(n="mailto:"+n),{children:[{text:r.replace("mailto:",""),type:o.text}],target:n,type:o.link}}},i[o.orderedList]=Ee(a,1),i[o.unorderedList]=Ee(a,2),i[o.newlineCoalescer]={match:je(b),order:3,parse:Ge,render:function(){return"\n"}},i[o.paragraph]={match:De,order:3,parse:Fe,render:function(e,r,n){return a("p",{key:n.key},r(e.children,n))}},i[o.ref]={match:Re(H),order:0,parse:function(e){return Q[e[1]]={target:e[2],title:e[4]},{}},render:We},i[o.refImage]={match:Be(F),order:0,parse:function(e){return{alt:e[1]||void 0,ref:e[2]}},render:function(e,n,t){return Q[e.ref]?a("img",{key:t.key,alt:e.alt,src:r.sanitizer(Q[e.ref].target,"img","src"),title:Q[e.ref].title}):null}},i[o.refLink]={match:Re(G),order:0,parse:function(e,r,n){return{children:r(e[1],n),fallbackChildren:e[0],ref:e[2]}},render:function(e,n,t){return Q[e.ref]?a("a",{key:t.key,href:r.sanitizer(Q[e.ref].target,"a","href"),title:Q[e.ref].title},n(e.children,t)):a("span",{key:t.key},e.fallbackChildren)}},i[o.table]={match:je(_),order:1,parse:$e,render:function(e,r,n){var t=e;return a("table",{key:n.key},a("thead",null,a("tr",null,t.header.map(function(e,i){return a("th",{key:i,style:Me(t,i)},r(e,n))}))),a("tbody",null,t.cells.map(function(e,i){return a("tr",{key:i},e.map(function(e,i){return a("td",{key:i,style:Me(t,i)},r(e,n))}))})))}},i[o.text]={match:Ie(te),order:4,parse:function(e){return{text:e[0].replace(M,function(e,n){return r.namedCodesToUnicode[n]?r.namedCodesToUnicode[n]:e})}},render:function(e){return e.text}},i[o.textBolded]={match:Be(K),order:2,parse:function(e,r,n){return{children:r(e[2],n)}},render:function(e,r,n){return a("strong",{key:n.key},r(e.children,n))}},i[o.textEmphasized]={match:Be(Y),order:3,parse:function(e,r,n){return{children:r(e[2],n)}},render:function(e,r,n){return a("em",{key:n.key},r(e.children,n))}},i[o.textEscaped]={match:Be(ne),order:1,parse:function(e){return{text:e[1],type:o.text}}},i[o.textMarked]={match:Be(ee),order:3,parse:Fe,render:function(e,r,n){return a("mark",{key:n.key},r(e.children,n))}},i[o.textStrikethroughed]={match:Be(re),order:3,parse:Fe,render:function(e,r,n){return a("del",{key:n.key},r(e.children,n))}},i);!0===r.disableParsingRawHTML&&(delete V[o.htmlBlock],delete V[o.htmlSelfClosing]);var J,oe=function(e){var r=Object.keys(e);function n(t,i){var a=[];for(i.prevCapture=i.prevCapture||"";t;)for(var o=0;o<r.length;){var l=r[o],c=e[l],u=c.match(t,i);if(u){var s=u[0];i.prevCapture+=s,t=t.substring(s.length);var d=c.parse(u,n,i);null==d.type&&(d.type=l),a.push(d);break}o++}return i.prevCapture="",a}return r.sort(function(r,n){var t=e[r].order,i=e[n].order;return t!==i?t-i:r<n?-1:1}),function(e,r){return n(function(e){return e.replace(S,"\n").replace(C,"").replace(Z," ")}(e),r)}}(V),le=(J=function(e,r){return function(n,t,i){var a=e[n.type].render;return r?r(function(){return a(n,t,i)},n,t,i):a(n,t,i)}}(V,r.renderRule),function e(r,n){if(void 0===n&&(n={}),Array.isArray(r)){for(var t=n.key,i=[],a=!1,o=0;o<r.length;o++){n.key=o;var l=e(r[o],n),c="string"==typeof l;c&&a?i[i.length-1]+=l:null!==l&&i.push(l),a=c}return n.key=t,i}return J(r,e,n)}),ce=f(e);return X.length?a("div",null,ce,a("footer",{key:"footer"},X.map(function(e){return a("div",{id:r.slugify(e.identifier,Le),key:e.identifier},e.identifier,le(oe(e.footnote,{inline:!0})))}))):ce}var Ve=function(e){var r=e.children,t=void 0===r?"":r,i=e.options,o=function(e,r){if(null==e)return{};var n,t,i={},a=Object.keys(e);for(t=0;t<a.length;t++)r.indexOf(n=a[t])>=0||(i[n]=e[n]);return i}(e,a);return n.cloneElement(Qe(t,i),o)};return Object.assign(Ve,{compiler:Qe,RuleType:o}),Ve});
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r(require("react")):"function"==typeof define&&define.amd?define(["react"],r):(e||self).MarkdownToJSX=r(e.React)}(this,function(e){function r(e){if(e&&e.__esModule)return e;var r=Object.create(null);return e&&Object.keys(e).forEach(function(n){if("default"!==n){var t=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,t.get?t:{enumerable:!0,get:function(){return e[n]}})}}),r.default=e,r}var n=/*#__PURE__*/r(e);function t(){return t=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])}return e},t.apply(this,arguments)}var i,a=["children","options"],o={blockQuote:"0",breakLine:"1",breakThematic:"2",codeBlock:"3",codeFenced:"4",codeInline:"5",footnote:"6",footnoteReference:"7",gfmTask:"8",heading:"9",headingSetext:"10",htmlBlock:"11",htmlComment:"12",htmlSelfClosing:"13",image:"14",link:"15",linkAngleBraceStyleDetector:"16",linkBareUrlDetector:"17",linkMailtoDetector:"18",newlineCoalescer:"19",orderedList:"20",paragraph:"21",ref:"22",refImage:"23",refLink:"24",table:"25",tableSeparator:"26",text:"27",textBolded:"28",textEmphasized:"29",textEscaped:"30",textMarked:"31",textStrikethroughed:"32",unorderedList:"33"};!function(e){e[e.MAX=0]="MAX",e[e.HIGH=1]="HIGH",e[e.MED=2]="MED",e[e.LOW=3]="LOW",e[e.MIN=4]="MIN"}(i||(i={}));var l=["allowFullScreen","allowTransparency","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","charSet","classId","colSpan","contentEditable","contextMenu","crossOrigin","encType","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","hrefLang","inputMode","keyParams","keyType","marginHeight","marginWidth","maxLength","mediaGroup","minLength","noValidate","radioGroup","readOnly","rowSpan","spellCheck","srcDoc","srcLang","srcSet","tabIndex","useMap"].reduce(function(e,r){return e[r.toLowerCase()]=r,e},{class:"className",for:"htmlFor"}),c={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},u=["style","script"],s=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,d=/mailto:/i,f=/\n{2,}$/,p=/^(\s*>[\s\S]*?)(?=\n\n|$)/,h=/^ *> ?/gm,m=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,g=/^ {2,}\n/,y=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,k=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,v=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,x=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,b=/^(?:\n *)*\n/,S=/\r\n?/g,w=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,C=/^\[\^([^\]]+)]/,E=/\f/g,O=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,z=/^\s*?\[(x|\s)\]/,L=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,T=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,A=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,$=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,M=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,R=/^<!--[\s\S]*?(?:-->)/,B=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,j=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,I=/^\{.*\}$/,D=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,U=/^<([^ >]+@[^ >]+)>/,N=/^<([^ >]+:\/[^ >]+)>/,P=/-([a-z])?/gi,_=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,H=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,F=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,G=/^\[([^\]]*)\] ?\[([^\]]*)\]/,W=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,Z=/\t/g,q=/(^ *\||\| *$)/g,X=/^ *:-+: *$/,Q=/^ *:-+ *$/,V=/^ *-+: *$/,J="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~~.*?~~|==.*?==|.|\\n)*?)",K=new RegExp("^([*_])\\1"+J+"\\1\\1(?!\\1)"),Y=new RegExp("^([*_])"+J+"\\1(?!\\1|\\w)"),ee=new RegExp("^=="+J+"=="),re=new RegExp("^~~"+J+"~~"),ne=/^\\([^0-9A-Za-z\s])/,te=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&#;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,ie=/^\n+/,ae=/^([ \t]*)/,oe=/\\([^\\])/g,le=/ *\n+$/,ce=/(?:^|\n)( *)$/,ue="(?:\\d+\\.)",se="(?:[*+-])";function de(e){return"( *)("+(1===e?ue:se)+") +"}var fe=de(1),pe=de(2);function he(e){return new RegExp("^"+(1===e?fe:pe))}var me=he(1),ge=he(2);function ye(e){return new RegExp("^"+(1===e?fe:pe)+"[^\\n]*(?:\\n(?!\\1"+(1===e?ue:se)+" )[^\\n]*)*(\\n|$)","gm")}var ke=ye(1),ve=ye(2);function xe(e){var r=1===e?ue:se;return new RegExp("^( *)("+r+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+r+" (?!"+r+" ))\\n*|\\s*\\n*$)")}var be=xe(1),Se=xe(2);function we(e,r){var n=1===r,t=n?be:Se,i=n?ke:ve,a=n?me:ge;return{match:function(e,r){var n=ce.exec(r.prevCapture);return n&&(r.list||!r.inline&&!r.simple)?t.exec(e=n[1]+e):null},order:1,parse:function(e,r,t){var o=n?+e[2]:void 0,l=e[0].replace(f,"\n").match(i),c=!1;return{items:l.map(function(e,n){var i=a.exec(e)[0].length,o=new RegExp("^ {1,"+i+"}","gm"),u=e.replace(o,"").replace(a,""),s=n===l.length-1,d=-1!==u.indexOf("\n\n")||s&&c;c=d;var f,p=t.inline,h=t.list;t.list=!0,d?(t.inline=!1,f=u.replace(le,"\n\n")):(t.inline=!0,f=u.replace(le,""));var m=r(f,t);return t.inline=p,t.list=h,m}),ordered:n,start:o}},render:function(r,n,t){return e(r.ordered?"ol":"ul",{key:t.key,start:r.type===o.orderedList?r.start:void 0},r.items.map(function(r,i){return e("li",{key:i},n(r,t))}))}}}var Ce=new RegExp("^\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['\"]([\\s\\S]*?)['\"])?\\s*\\)"),Ee=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,Oe=[p,k,v,L,A,T,R,_,ke,be,ve,Se],ze=[].concat(Oe,[/^[^\n]+(?: \n|\n{2,})/,$,j]);function Le(e){return e.replace(/[ÀÁÂÃÄÅàáâãäåæÆ]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function Te(e){return V.test(e)?"right":X.test(e)?"center":Q.test(e)?"left":null}function Ae(e,r,n,t){var i=n.inTable;n.inTable=!0;var a=e.trim().split(/( *(?:`[^`]*`|\\\||\|) *)/).reduce(function(e,i){return"|"===i.trim()?e.push(t?{type:o.tableSeparator}:{type:o.text,text:i}):""!==i&&e.push.apply(e,r(i,n)),e},[]);n.inTable=i;var l=[[]];return a.forEach(function(e,r){e.type===o.tableSeparator?0!==r&&r!==a.length-1&&l.push([]):(e.type!==o.text||null!=a[r+1]&&a[r+1].type!==o.tableSeparator||(e.text=e.text.trimEnd()),l[l.length-1].push(e))}),l}function $e(e,r,n){n.inline=!0;var t=e[2]?e[2].replace(q,"").split("|").map(Te):[],i=e[3]?function(e,r,n){return e.trim().split("\n").map(function(e){return Ae(e,r,n,!0)})}(e[3],r,n):[],a=Ae(e[1],r,n,!!i.length);return n.inline=!1,i.length?{align:t,cells:i,header:a,type:o.table}:{children:a,type:o.paragraph}}function Me(e,r){return null==e.align[r]?{}:{textAlign:e.align[r]}}function Re(e){return function(r,n){return n.inline?e.exec(r):null}}function Be(e){return function(r,n){return n.inline||n.simple?e.exec(r):null}}function je(e){return function(r,n){return n.inline||n.simple?null:e.exec(r)}}function Ie(e){return function(r){return e.exec(r)}}function De(e,r){if(r.inline||r.simple)return null;var n="";e.split("\n").every(function(e){return!Oe.some(function(r){return r.test(e)})&&(n+=e+"\n",e.trim())});var t=n.trimEnd();return""==t?null:[n,t]}function Ue(e){try{if(decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"").match(/^\s*(javascript|vbscript|data(?!:image)):/i))return null}catch(e){return null}return e}function Ne(e){return e.replace(oe,"$1")}function Pe(e,r,n){var t=n.inline||!1,i=n.simple||!1;n.inline=!0,n.simple=!0;var a=e(r,n);return n.inline=t,n.simple=i,a}function _e(e,r,n){var t=n.inline||!1,i=n.simple||!1;n.inline=!1,n.simple=!0;var a=e(r,n);return n.inline=t,n.simple=i,a}function He(e,r,n){var t=n.inline||!1;n.inline=!1;var i=e(r,n);return n.inline=t,i}var Fe=function(e,r,n){return{children:Pe(r,e[1],n)}};function Ge(){return{}}function We(){return null}function Ze(){return[].slice.call(arguments).filter(Boolean).join(" ")}function qe(e,r,n){for(var t=e,i=r.split(".");i.length&&void 0!==(t=t[i[0]]);)i.shift();return t||n}function Xe(e,r){var n=qe(r,e);return n?"function"==typeof n||"object"==typeof n&&"render"in n?n:qe(r,e+".component",e):e}function Qe(e,r){var i;function a(e,n){var i,a=qe(r.overrides,e+".props",{});return(i=r).createElement.apply(i,[Xe(e,r.overrides),t({},n,a,{className:Ze(null==n?void 0:n.className,a.className)||void 0})].concat([].slice.call(arguments,2)))}function f(e){e=e.replace(O,"");var n=!1;r.forceInline?n=!0:r.forceBlock||(n=!1===W.test(e));for(var t=le(oe(n?e:e.trimEnd().replace(ie,"")+"\n\n",{inline:n}));"string"==typeof t[t.length-1]&&!t[t.length-1].trim();)t.pop();if(null===r.wrapper)return t;var i,o=r.wrapper||(n?"span":"div");if(t.length>1||r.forceWrapper)i=t;else{if(1===t.length)return"string"==typeof(i=t[0])?a("span",{key:"outer"},i):i;i=null}return r.createElement(o,{key:"outer"},i)}function q(e,n){var t=n.match(s);return t?t.reduce(function(n,t,i){var a=t.indexOf("=");if(-1!==a){var o=function(e){return-1!==e.indexOf("-")&&null===e.match(B)&&(e=e.replace(P,function(e,r){return r.toUpperCase()})),e}(t.slice(0,a)).trim(),c=function(e){var r=e[0];return('"'===r||"'"===r)&&e.length>=2&&e[e.length-1]===r?e.slice(1,-1):e}(t.slice(a+1).trim()),u=l[o]||o;if("ref"===u)return n;var s=n[u]=function(e,r,n,t){return"style"===r?n.split(/;\s?/).reduce(function(e,r){var n=r.slice(0,r.indexOf(":"));return e[n.trim().replace(/(-[a-z])/g,function(e){return e[1].toUpperCase()})]=r.slice(n.length+1).trim(),e},{}):"href"===r||"src"===r?t(n,e,r):(n.match(I)&&(n=n.slice(1,n.length-1)),"true"===n||"false"!==n&&n)}(e,o,c,r.sanitizer);"string"==typeof s&&($.test(s)||j.test(s))&&(n[u]=f(s.trim()))}else"style"!==t&&(n[l[t]||t]=!0);return n},{}):null}void 0===e&&(e=""),void 0===r&&(r={}),r.overrides=r.overrides||{},r.sanitizer=r.sanitizer||Ue,r.slugify=r.slugify||Le,r.namedCodesToUnicode=r.namedCodesToUnicode?t({},c,r.namedCodesToUnicode):c,r.createElement=r.createElement||n.createElement;var X=[],Q={},V=((i={})[o.blockQuote]={match:je(p),order:1,parse:function(e,r,n){var t=e[0].replace(h,"").match(m);return{alert:t[1],children:r(t[2],n)}},render:function(e,n,t){var i={key:t.key};return e.alert&&(i.className="markdown-alert-"+r.slugify(e.alert.toLowerCase(),Le),e.children.unshift({attrs:{},children:[{type:o.text,text:e.alert}],noInnerParse:!0,type:o.htmlBlock,tag:"header"})),a("blockquote",i,n(e.children,t))}},i[o.breakLine]={match:Ie(g),order:1,parse:Ge,render:function(e,r,n){return a("br",{key:n.key})}},i[o.breakThematic]={match:je(y),order:1,parse:Ge,render:function(e,r,n){return a("hr",{key:n.key})}},i[o.codeBlock]={match:je(v),order:0,parse:function(e){return{lang:void 0,text:e[0].replace(/^ {4}/gm,"").replace(/\n+$/,"")}},render:function(e,r,n){return a("pre",{key:n.key},a("code",t({},e.attrs,{className:e.lang?"lang-"+e.lang:""}),e.text))}},i[o.codeFenced]={match:je(k),order:0,parse:function(e){return{attrs:q("code",e[3]||""),lang:e[2]||void 0,text:e[4],type:o.codeBlock}}},i[o.codeInline]={match:Be(x),order:3,parse:function(e){return{text:e[2]}},render:function(e,r,n){return a("code",{key:n.key},e.text)}},i[o.footnote]={match:je(w),order:0,parse:function(e){return X.push({footnote:e[2],identifier:e[1]}),{}},render:We},i[o.footnoteReference]={match:Re(C),order:1,parse:function(e){return{target:"#"+r.slugify(e[1],Le),text:e[1]}},render:function(e,n,t){return a("a",{key:t.key,href:r.sanitizer(e.target,"a","href")},a("sup",{key:t.key},e.text))}},i[o.gfmTask]={match:Re(z),order:1,parse:function(e){return{completed:"x"===e[1].toLowerCase()}},render:function(e,r,n){return a("input",{checked:e.completed,key:n.key,readOnly:!0,type:"checkbox"})}},i[o.heading]={match:je(r.enforceAtxHeadings?T:L),order:1,parse:function(e,n,t){return{children:Pe(n,e[2],t),id:r.slugify(e[2],Le),level:e[1].length}},render:function(e,r,n){return a("h"+e.level,{id:e.id,key:n.key},r(e.children,n))}},i[o.headingSetext]={match:je(A),order:0,parse:function(e,r,n){return{children:Pe(r,e[1],n),level:"="===e[2]?1:2,type:o.heading}}},i[o.htmlBlock]={match:Ie($),order:1,parse:function(e,r,n){var t,i=e[3].match(ae),a=new RegExp("^"+i[1],"gm"),o=e[3].replace(a,""),l=(t=o,ze.some(function(e){return e.test(t)})?He:Pe),c=e[1].toLowerCase(),s=-1!==u.indexOf(c),d=(s?c:e[1]).trim(),f={attrs:q(d,e[2]),noInnerParse:s,tag:d};return n.inAnchor=n.inAnchor||"a"===c,s?f.text=e[3]:f.children=l(r,o,n),n.inAnchor=!1,f},render:function(e,r,n){return a(e.tag,t({key:n.key},e.attrs),e.text||(e.children?r(e.children,n):""))}},i[o.htmlSelfClosing]={match:Ie(j),order:1,parse:function(e){var r=e[1].trim();return{attrs:q(r,e[2]||""),tag:r}},render:function(e,r,n){return a(e.tag,t({},e.attrs,{key:n.key}))}},i[o.htmlComment]={match:Ie(R),order:1,parse:function(){return{}},render:We},i[o.image]={match:Be(Ee),order:1,parse:function(e){return{alt:e[1],target:Ne(e[2]),title:e[3]}},render:function(e,n,t){return a("img",{key:t.key,alt:e.alt||void 0,title:e.title||void 0,src:r.sanitizer(e.target,"img","src")})}},i[o.link]={match:Re(Ce),order:3,parse:function(e,r,n){return{children:_e(r,e[1],n),target:Ne(e[2]),title:e[3]}},render:function(e,n,t){return a("a",{key:t.key,href:r.sanitizer(e.target,"a","href"),title:e.title},n(e.children,t))}},i[o.linkAngleBraceStyleDetector]={match:Re(N),order:0,parse:function(e){return{children:[{text:e[1],type:o.text}],target:e[1],type:o.link}}},i[o.linkBareUrlDetector]={match:function(e,n){return n.inAnchor||r.disableAutoLink?null:Re(D)(e,n)},order:0,parse:function(e){return{children:[{text:e[1],type:o.text}],target:e[1],title:void 0,type:o.link}}},i[o.linkMailtoDetector]={match:Re(U),order:0,parse:function(e){var r=e[1],n=e[1];return d.test(n)||(n="mailto:"+n),{children:[{text:r.replace("mailto:",""),type:o.text}],target:n,type:o.link}}},i[o.orderedList]=we(a,1),i[o.unorderedList]=we(a,2),i[o.newlineCoalescer]={match:je(b),order:3,parse:Ge,render:function(){return"\n"}},i[o.paragraph]={match:De,order:3,parse:Fe,render:function(e,r,n){return a("p",{key:n.key},r(e.children,n))}},i[o.ref]={match:Re(H),order:0,parse:function(e){return Q[e[1]]={target:e[2],title:e[4]},{}},render:We},i[o.refImage]={match:Be(F),order:0,parse:function(e){return{alt:e[1]||void 0,ref:e[2]}},render:function(e,n,t){return Q[e.ref]?a("img",{key:t.key,alt:e.alt,src:r.sanitizer(Q[e.ref].target,"img","src"),title:Q[e.ref].title}):null}},i[o.refLink]={match:Re(G),order:0,parse:function(e,r,n){return{children:r(e[1],n),fallbackChildren:e[0],ref:e[2]}},render:function(e,n,t){return Q[e.ref]?a("a",{key:t.key,href:r.sanitizer(Q[e.ref].target,"a","href"),title:Q[e.ref].title},n(e.children,t)):a("span",{key:t.key},e.fallbackChildren)}},i[o.table]={match:je(_),order:1,parse:$e,render:function(e,r,n){var t=e;return a("table",{key:n.key},a("thead",null,a("tr",null,t.header.map(function(e,i){return a("th",{key:i,style:Me(t,i)},r(e,n))}))),a("tbody",null,t.cells.map(function(e,i){return a("tr",{key:i},e.map(function(e,i){return a("td",{key:i,style:Me(t,i)},r(e,n))}))})))}},i[o.text]={match:Ie(te),order:4,parse:function(e){return{text:e[0].replace(M,function(e,n){return r.namedCodesToUnicode[n]?r.namedCodesToUnicode[n]:e})}},render:function(e){return e.text}},i[o.textBolded]={match:Be(K),order:2,parse:function(e,r,n){return{children:r(e[2],n)}},render:function(e,r,n){return a("strong",{key:n.key},r(e.children,n))}},i[o.textEmphasized]={match:Be(Y),order:3,parse:function(e,r,n){return{children:r(e[2],n)}},render:function(e,r,n){return a("em",{key:n.key},r(e.children,n))}},i[o.textEscaped]={match:Be(ne),order:1,parse:function(e){return{text:e[1],type:o.text}}},i[o.textMarked]={match:Be(ee),order:3,parse:Fe,render:function(e,r,n){return a("mark",{key:n.key},r(e.children,n))}},i[o.textStrikethroughed]={match:Be(re),order:3,parse:Fe,render:function(e,r,n){return a("del",{key:n.key},r(e.children,n))}},i);!0===r.disableParsingRawHTML&&(delete V[o.htmlBlock],delete V[o.htmlSelfClosing]);var J,oe=function(e){var r=Object.keys(e);function n(t,i){var a=[];for(i.prevCapture=i.prevCapture||"";t;)for(var o=0;o<r.length;){var l=r[o],c=e[l],u=c.match(t,i);if(u){var s=u[0];i.prevCapture+=s,t=t.substring(s.length);var d=c.parse(u,n,i);null==d.type&&(d.type=l),a.push(d);break}o++}return i.prevCapture="",a}return r.sort(function(r,n){var t=e[r].order,i=e[n].order;return t!==i?t-i:r<n?-1:1}),function(e,r){return n(function(e){return e.replace(S,"\n").replace(E,"").replace(Z," ")}(e),r)}}(V),le=(J=function(e,r){return function(n,t,i){var a=e[n.type].render;return r?r(function(){return a(n,t,i)},n,t,i):a(n,t,i)}}(V,r.renderRule),function e(r,n){if(void 0===n&&(n={}),Array.isArray(r)){for(var t=n.key,i=[],a=!1,o=0;o<r.length;o++){n.key=o;var l=e(r[o],n),c="string"==typeof l;c&&a?i[i.length-1]+=l:null!==l&&i.push(l),a=c}return n.key=t,i}return J(r,e,n)}),ce=f(e);return X.length?a("div",null,ce,a("footer",{key:"footer"},X.map(function(e){return a("div",{id:r.slugify(e.identifier,Le),key:e.identifier},e.identifier,le(oe(e.footnote,{inline:!0})))}))):ce}var Ve=function(e){var r=e.children,t=void 0===r?"":r,i=e.options,o=function(e,r){if(null==e)return{};var n,t,i={},a=Object.keys(e);for(t=0;t<a.length;t++)r.indexOf(n=a[t])>=0||(i[n]=e[n]);return i}(e,a);return n.cloneElement(Qe(t,i),o)};return Object.assign(Ve,{compiler:Qe,RuleType:o}),Ve});
//# sourceMappingURL=index.umd.js.map

@@ -6,3 +6,3 @@ {

"license": "MIT",
"version": "7.7.0",
"version": "7.7.1",
"publishConfig": {

@@ -93,3 +93,3 @@ "access": "public"

"build": "microbundle --tsconfig tsconfig.json -f cjs,umd index.cjs.tsx --name MarkdownToJSX --define process.env.NODE_ENV=production --globals react=React && microbundle --tsconfig tsconfig.json -f es,modern --name MarkdownToJSX --define process.env.NODE_ENV=production",
"release": "microbundle site.tsx -o docs -f iife --tsconfig tsconfig.site.json --define process.env.NODE_ENV=production --jsx React.createElement --external react,react-dom,styled-components,katex --globals react=React,react-dom=ReactDOM,styled-components=styled --no-pkg-main",
"build-site": "microbundle site.tsx -o docs -f iife --tsconfig tsconfig.site.json --define process.env.NODE_ENV=production --jsx React.createElement --external react,react-dom,styled-components,katex --globals react=React,react-dom=ReactDOM,styled-components=styled --no-pkg-main",
"dev": "microbundle watch site.tsx -o docs -f iife --tsconfig tsconfig.site.json --define process.env.NODE_ENV=development --jsx React.createElement --external react,react-dom,styled-components,katex --globals react=React,react-dom=ReactDOM,styled-components=styled --no-pkg-main",

@@ -99,3 +99,3 @@ "test": "jest --verbose",

"benchmark": "node benchmark.js",
"changeset-publish": "yarn build && yarn release && changeset publish"
"changeset-publish": "yarn build && changeset publish"
},

@@ -102,0 +102,0 @@ "size-limit": [

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc