!function(e){if("object"==typeofexports&&"undefined"!=typeofmodule)module.exports=e();elseif("function"==typeofdefine&&define.amd)define([],e);else{("undefined"!=typeofwindow?window:"undefined"!=typeofglobal?global:"undefined"!=typeofself?self:this).toMarkdown=e()}}(function(){returnfunctioni(a,c,l){functionu(n,e){if(!c[n]){if(!a[n]){vart="function"==typeofrequire&&require;if(!e&&t)returnt(n,!0);if(f)returnf(n,!0);varr=newError("Cannot find module '"+n+"'");throwr.code="MODULE_NOT_FOUND",r}varo=c[n]={exports:{}};a[n][0].call(o.exports,function(e){vart=a[n][1][e];returnu(t||e)},o,o.exports,i,a,c,l)}returnc[n].exports}for(varf="function"==typeofrequire&&require,e=0;e<l.length;e++)u(l[e]);returnu}({1:[function(e,t,n){"use strict";vara,c,l=e("./lib/md-converters"),u=e("./lib/gfm-converters"),f=e("./lib/html-parser"),d=e("collapse-whitespace"),r=["address","article","aside","audio","blockquote","body","canvas","center","dd","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frameset","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","isindex","li","main","menu","nav","noframes","noscript","ol","output","p","pre","section","table","tbody","td","tfoot","th","thead","tr","ul"];functions(e){return-1!==r.indexOf(e.nodeName.toLowerCase())}varo=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"];functionp(e){return-1!==o.indexOf(e.nodeName.toLowerCase())}functionm(e){for(vart="",n=0;n<e.childNodes.length;n++)if(1===e.childNodes[n].nodeType)t+=e.childNodes[n]._replacement;else{if(3!==e.childNodes[n].nodeType)continue;t+=e.childNodes[n].data}returnt}functionh(e,t){if("string"==typeoft)returnt===e.nodeName.toLowerCase();if(Array.isArray(t))return-1!==t.indexOf(e.nodeName.toLowerCase());if("function"==typeoft)returnt.call(a,e);thrownewTypeError("`filter` needs to be a string, array, or function")}functiong(e,t){varn,r,o;return"left"===e?(n=t.previousSibling,r=/ $/):(n=t.nextSibling,r=/^ /),n&&(3===n.nodeType?o=r.test(n.nodeValue):1!==n.nodeType||s(n)||(o=r.test(n.textContent))),o}functionv(e,t){varn="",r="";if(!s(e)){varo=/^[ \r\n\t]/.test(t),i=/[ \r\n\t]$/.test(t);o&&!g("left",e)&&(n=" "),i&&!g("right",e)&&(r=" ")}return{leading:n,trailing:r}}functionN(e){vart,n=m(e);if(p(e)||/A|TH|TD/.test(e.nodeName)||!/^\s*$/i.test(n)){for(varr=0;r<c.length;r++){varo=c[r];if(h(e,o.filter)){if("function"!=typeofo.replacement)thrownewTypeError("`replacement` needs to be a function that returns a string");vari=v(e,n);(i.leading||i.trailing)&&(n=n.trim()),t=i.leading+o.replacement.call(a,n,e)+i.trailing;break}}e._replacement=t}elsee._replacement=""}(a=function(e,t){if(t=t||{},"string"!=typeofe)thrownewTypeError(e+" is not a string");if(""===e)return"";e=e.replace(/(\d+)\. /g,"$1\\. ");varn,r,o=(n=e,r=(newf).parseFromString(n,"text/html"),d(r.documentElement,s),r).body,i=function(e){for(vart,n,r,o=[e],i=[];0<o.length;)for(t=o.shift(),i.push(t),n=t.childNodes,r=0;r<n.length;r++)1===n[r].nodeType&&o.push(n[r]);returni.shift(),i}(o);c=l.slice(0),t.gfm&&(c=u.concat(c)),t.converters&&(c=t.converters.concat(c));for(vara=i.length-1;0<=a;a--)N(i[a]);returnm(o).replace(/^[\t\r\n]+|[\t\r\n\s]+$/g,"").replace(/\n\s+\n/g,"\n\n").replace(/\n{3,}/g,"\n\n")}).isBlock=s,a.isVoid=p,a.outer=function(e,t){returne.cloneNode(!1).outerHTML.replace("><",">"+t+"<")},t.exports=a},{"./lib/gfm-converters":2,"./lib/html-parser":3,"./lib/md-converters":4,"collapse-whitespace":7}],2:[function(e,t,n){"use strict";functionc(e,t){varn=" ";return0===Array.prototype.indexOf.call(t.parentNode.childNodes,t)&&(n="| "),n+e+" |"}varr=/highlight highlight-(\S+)/;t.exports=[{filter:"br",replacement:function(){return"\n"}},{filter:["del","s","strike"],replacement:function(e){return"~~"+e+"~~"}},{filter:function(e){return"checkbox"===e.type&&"LI"===e.parentNode.nodeName},replacement:function(e,t){return(t.checked?"[x]":"[ ]")+" "}},{filter:["th","td"],replacement:function(e,t){returnc(e,t)}},{filter:"tr",replacement:function(e,t){varn