/*! showdown v 1.8.3 - 28-11-2017 */
(function(){function g(g){"use strict";var A={omitExtraWLInCodeBlocks:{defaultValue:!1,describe:"Omit the default extra whiteline added to code blocks",type:"boolean"},noHeaderId:{defaultValue:!1,describe:"Turn on/off generated header id",type:"boolean"},prefixHeaderId:{defaultValue:!1,describe:"Add a prefix to the generated header ids. Passing a string will prefix that string to the header id. Setting to true will add a generic 'section-' prefix",type:"string"},rawPrefixHeaderId:{defaultValue:!1,describe:'Setting this option to true will prevent showdown from modifying the prefix. This might result in malformed IDs (if, for instance, the " char is used in the prefix)',type:"boolean"},ghCompatibleHeaderId:{defaultValue:!1,describe:"Generate header ids compatible with github style (spaces are replaced with dashes, a bunch of non alphanumeric chars are removed)",type:"boolean"},rawHeaderId:{defaultValue:!1,describe:"Remove only spaces, ' and \" from generated header ids (including prefixes), replacing them with dashes (-). WARNING: This might result in malformed ids",type:"boolean"},headerLevelStart:{defaultValue:!1,describe:"The header blocks level start",type:"integer"},parseImgDimensions:{defaultValue:!1,describe:"Turn on/off image dimension parsing",type:"boolean"},simplifiedAutoLink:{defaultValue:!1,describe:"Turn on/off GFM autolink style",type:"boolean"},excludeTrailingPunctuationFromURLs:{defaultValue:!1,describe:"Excludes trailing punctuation from links generated with autoLinking",type:"boolean"},literalMidWordUnderscores:{defaultValue:!1,describe:"Parse midword underscores as literal underscores",type:"boolean"},literalMidWordAsterisks:{defaultValue:!1,describe:"Parse midword asterisks as literal asterisks",type:"boolean"},strikethrough:{defaultValue:!1,describe:"Turn on/off strikethrough support",type:"boolean"},tables:{defaultValue:!1,describe:"Turn on/off tables support",type:"boolean"},tablesHeaderId:{defaultValue:!1,describe:"Add an id to table headers",type:"boolean"},ghCodeBlocks:{defaultValue:!0,describe:"Turn on/off GFM fenced code blocks support",type:"boolean"},tasklists:{defaultValue:!1,describe:"Turn on/off GFM tasklist support",type:"boolean"},smoothLivePreview:{defaultValue:!1,describe:"Prevents weird effects in live previews due to incomplete input",type:"boolean"},smartIndentationFix:{defaultValue:!1,description:"Tries to smartly fix indentation in es6 strings",type:"boolean"},disableForced4SpacesIndentedSublists:{defaultValue:!1,description:"Disables the requirement of indenting nested sublists by 4 spaces",type:"boolean"},simpleLineBreaks:{defaultValue:!1,description:"Parses simple line breaks as
(GFM Style)",type:"boolean"},requireSpaceBeforeHeadingText:{defaultValue:!1,description:"Makes adding a space between `#` and the header text mandatory (GFM Style)",type:"boolean"},ghMentions:{defaultValue:!1,description:"Enables github @mentions",type:"boolean"},ghMentionsLink:{defaultValue:"https://github.com/{u}",description:"Changes the link generated by @mentions. Only applies if ghMentions option is enabled.",type:"string"},encodeEmails:{defaultValue:!0,description:"Encode e-mail addresses through the use of Character Entities, transforming ASCII e-mail addresses into its equivalent decimal entities",type:"boolean"},openLinksInNewWindow:{defaultValue:!1,description:"Open all links in new windows",type:"boolean"},backslashEscapesHTMLTags:{defaultValue:!1,description:"Support for HTML Tag escaping. ex:
[^\r]+?<\/pre>)/gm,function(g,A){var C=A;return C=C.replace(/^ /gm,"ยจ0"),C=C.replace(/ยจ0/g,"")}),r.subParser("hashBlock")("","gim"),g=C.converter._dispatch("hashPreCodeTags.after",g,A,C)}),r.subParser("headers",function(g,A,C){"use strict";function I(g){var I,e;if(A.customizedHeaderId){var t=g.match(/\{([^{]+?)}\s*$/);t&&t[1]&&(g=t[1])}return I=g,e=r.helper.isString(A.prefixHeaderId)?A.prefixHeaderId:!0===A.prefixHeaderId?"section-":"",A.rawPrefixHeaderId||(I=e+I),I=A.ghCompatibleHeaderId?I.replace(/ /g,"-").replace(/&/g,"").replace(/ยจT/g,"").replace(/ยจD/g,"").replace(/[&+$,\/:;=?@"#{}|^ยจ~\[\]`\\*)(%.!'<>]/g,"").toLowerCase():A.rawHeaderId?I.replace(/ /g,"-").replace(/&/g,"&").replace(/ยจT/g,"ยจ").replace(/ยจD/g,"$").replace(/["']/g,"-").toLowerCase():I.replace(/[^\w]/g,"").toLowerCase(),A.rawPrefixHeaderId&&(I=e+I),C.hashLinkCounts[I]?I=I+"-"+C.hashLinkCounts[I]++:C.hashLinkCounts[I]=1,I}g=C.converter._dispatch("headers.before",g,A,C);var e=isNaN(parseInt(A.headerLevelStart))?1:parseInt(A.headerLevelStart),t=A.smoothLivePreview?/^(.+)[ \t]*\n={2,}[ \t]*\n+/gm:/^(.+)[ \t]*\n=+[ \t]*\n+/gm,a=A.smoothLivePreview?/^(.+)[ \t]*\n-{2,}[ \t]*\n+/gm:/^(.+)[ \t]*\n-+[ \t]*\n+/gm;g=(g=g.replace(t,function(g,t){var a=r.subParser("spanGamut")(t,A,C),n=A.noHeaderId?"":' id="'+I(t)+'"',o=e,i="\n"+e+"\n",A,C)}),g=C.converter._dispatch("blockQuotes.after",g,A,C)}),r.subParser("codeBlocks",function(g,A,C){"use strict";g=C.converter._dispatch("codeBlocks.before",g,A,C);var I=/(?:\n\n|^)((?:(?:[ ]{4}|\t).*\n+)+)(\n*[ ]{0,3}[^ \t\n]|(?=ยจ0))/g;return g=(g+="ยจ0").replace(I,function(g,I,e){var t=I,a=e,n="\n";return t=r.subParser("outdent")(t,A,C),t=r.subParser("encodeCode")(t,A,C),t=r.subParser("detab")(t,A,C),t=t.replace(/^\n+/g,""),t=t.replace(/\n+$/g,""),A.omitExtraWLInCodeBlocks&&(n=""),t="",r.subParser("hashBlock")(t,A,C)+a}),g=g.replace(/ยจ0/,""),g=C.converter._dispatch("codeBlocks.after",g,A,C)}),r.subParser("codeSpans",function(g,A,C){"use strict";return void 0===(g=C.converter._dispatch("codeSpans.before",g,A,C))&&(g=""),g=g.replace(/(^|[^\\])(`+)([^\r]*?[^`])\2(?!`)/gm,function(g,I,e,t){var a=t;return a=a.replace(/^([ \t]*)/g,""),a=a.replace(/[ \t]*$/g,""),a=r.subParser("encodeCode")(a,A,C),a=I+""+t+n+"
"+a+"
",a=r.subParser("hashHTMLSpans")(a,A,C)}),g=C.converter._dispatch("codeSpans.after",g,A,C)}),r.subParser("detab",function(g,A,C){"use strict";return g=C.converter._dispatch("detab.before",g,A,C),g=g.replace(/\t(?=\t)/g," "),g=g.replace(/\t/g,"ยจAยจB"),g=g.replace(/ยจB(.+?)ยจA/g,function(g,A){for(var C=A,I=4-C.length%4,e=0;e/g,">"),g=C.converter._dispatch("encodeAmpsAndAngles.after",g,A,C)}),r.subParser("encodeBackslashEscapes",function(g,A,C){"use strict";return g=C.converter._dispatch("encodeBackslashEscapes.before",g,A,C),g=g.replace(/\\(\\)/g,r.helper.escapeCharactersCallback),g=g.replace(/\\([`*_{}\[\]()>#+.!~=|-])/g,r.helper.escapeCharactersCallback),g=C.converter._dispatch("encodeBackslashEscapes.after",g,A,C)}),r.subParser("encodeCode",function(g,A,C){"use strict";return g=C.converter._dispatch("encodeCode.before",g,A,C),g=g.replace(/&/g,"&").replace(//g,">").replace(/([*_{}\[\]\\=~-])/g,r.helper.escapeCharactersCallback),g=C.converter._dispatch("encodeCode.after",g,A,C)}),r.subParser("escapeSpecialCharsWithinTagAttributes",function(g,A,C){"use strict";var I=/<\/?[a-z\d_:-]+(?:[\s]+[\s\S]+?)?>/gi,e=/-]|-[^>])(?:[^-]|-[^-])*)--)>/gi;return g=(g=C.converter._dispatch("escapeSpecialCharsWithinTagAttributes.before",g,A,C)).replace(I,function(g){return g.replace(/(.)<\/?code>(?=.)/g,"$1`").replace(/([\\`*_~=|])/g,r.helper.escapeCharactersCallback)}),g=g.replace(e,function(g){return g.replace(/([\\`*_~=|])/g,r.helper.escapeCharactersCallback)}),g=C.converter._dispatch("escapeSpecialCharsWithinTagAttributes.after",g,A,C)}),r.subParser("githubCodeBlocks",function(g,A,C){"use strict";return A.ghCodeBlocks?(g=C.converter._dispatch("githubCodeBlocks.before",g,A,C),g+="ยจ0",g=g.replace(/(?:^|\n)(```+|~~~+)([^\s`~]*)\n([\s\S]*?)\n\1/g,function(g,I,e,t){var a=A.omitExtraWLInCodeBlocks?"":"\n";return t=r.subParser("encodeCode")(t,A,C),t=r.subParser("detab")(t,A,C),t=t.replace(/^\n+/g,""),t=t.replace(/\n+$/g,""),t="",t=r.subParser("hashBlock")(t,A,C),"\n\nยจG"+(C.ghCodeBlocks.push({text:g,codeblock:t})-1)+"G\n\n"}),g=g.replace(/ยจ0/,""),C.converter._dispatch("githubCodeBlocks.after",g,A,C)):g}),r.subParser("hashBlock",function(g,A,C){"use strict";return g=C.converter._dispatch("hashBlock.before",g,A,C),g=g.replace(/(^\n+|\n+$)/g,""),g="\n\nยจK"+(C.gHtmlBlocks.push(g)-1)+"K\n\n",g=C.converter._dispatch("hashBlock.after",g,A,C)}),r.subParser("hashCodeTags",function(g,A,C){"use strict";g=C.converter._dispatch("hashCodeTags.before",g,A,C);return g=r.helper.replaceRecursiveRegExp(g,function(g,I,e,t){var a=e+r.subParser("encodeCode")(I,A,C)+t;return"ยจC"+(C.gHtmlSpans.push(a)-1)+"C"},""+t+a+"
]*>","
","gim"),g=C.converter._dispatch("hashCodeTags.after",g,A,C)}),r.subParser("hashElement",function(g,A,C){"use strict";return function(g,A){var I=A;return I=I.replace(/\n\n/g,"\n"),I=I.replace(/^\n/,""),I=I.replace(/\n+$/g,""),I="\n\nยจK"+(C.gHtmlBlocks.push(I)-1)+"K\n\n"}}),r.subParser("hashHTMLBlocks",function(g,A,C){"use strict";g=C.converter._dispatch("hashHTMLBlocks.before",g,A,C);var I=["pre","div","h1","h2","h3","h4","h5","h6","blockquote","table","dl","ol","ul","script","noscript","form","fieldset","iframe","math","style","section","header","footer","nav","article","aside","address","audio","canvas","figure","hgroup","output","video","p"];A.backslashEscapesHTMLTags&&(g=g.replace(/\\<(\/?[^>]+?)>/g,function(g,A){return"<"+A+">"}));for(var e=0;e]*>)","im"),n="<"+I[e]+"\\b[^>]*>",o=""+I[e]+">";-1!==(t=r.helper.regexIndexOf(g,a));){var i=r.helper.splitAtIndex(g,t),s=r.helper.replaceRecursiveRegExp(i[1],function(g,A,I,e){var r=g;return-1!==I.search(/\bmarkdown\b/)&&(r=I+C.converter.makeHtml(A)+e),"\n\nยจK"+(C.gHtmlBlocks.push(r)-1)+"K\n\n"},n,o,"im");if(s===i[1])break;g=i[0].concat(s)}return g=g.replace(/(\n {0,3}(<(hr)\b([^<>])*?\/?>)[ \t]*(?=\n{2,}))/g,r.subParser("hashElement")(g,A,C)),g=r.helper.replaceRecursiveRegExp(g,function(g){return"\n\nยจK"+(C.gHtmlBlocks.push(g)-1)+"K\n\n"},"^ {0,3}\x3c!--","--\x3e","gm"),g=g.replace(/(?:\n\n)( {0,3}(?:<([?%])[^\r]*?\2>)[ \t]*(?=\n{2,}))/g,r.subParser("hashElement")(g,A,C)),g=C.converter._dispatch("hashHTMLBlocks.after",g,A,C)}),r.subParser("hashHTMLSpans",function(g,A,C){"use strict";function I(g){return"ยจC"+(C.gHtmlSpans.push(g)-1)+"C"}return g=C.converter._dispatch("hashHTMLSpans.before",g,A,C),g=g.replace(/<[^>]+?\/>/gi,function(g){return I(g)}),g=g.replace(/<([^>]+?)>[\s\S]*?<\/\1>/g,function(g){return I(g)}),g=g.replace(/<([^>]+?)\s[^>]+?>[\s\S]*?<\/\1>/g,function(g){return I(g)}),g=g.replace(/<[^>]+?>/gi,function(g){return I(g)}),g=C.converter._dispatch("hashHTMLSpans.after",g,A,C)}),r.subParser("unhashHTMLSpans",function(g,A,C){"use strict";g=C.converter._dispatch("unhashHTMLSpans.before",g,A,C);for(var I=0;I ]*>\\s* ]*>","^ {0,3}
\\s*
"),n+="
",e.push(n))}for(t=e.length,a=0;a]*>/.test(i)&&(s=!0)}e[a]=i}return g=e.join("\n"),g=g.replace(/^\n+/g,""),g=g.replace(/\n+$/g,""),C.converter._dispatch("paragraphs.after",g,A,C)}),r.subParser("runExtension",function(g,A,C,I){"use strict";if(g.filter)A=g.filter(A,I.converter,C);else if(g.regex){var e=g.regex;e instanceof RegExp||(e=new RegExp(e,"g")),A=A.replace(e,g.replace)}return A}),r.subParser("spanGamut",function(g,A,C){"use strict";return g=C.converter._dispatch("spanGamut.before",g,A,C),g=r.subParser("codeSpans")(g,A,C),g=r.subParser("escapeSpecialCharsWithinTagAttributes")(g,A,C),g=r.subParser("encodeBackslashEscapes")(g,A,C),g=r.subParser("images")(g,A,C),g=r.subParser("anchors")(g,A,C),g=r.subParser("autoLinks")(g,A,C),g=r.subParser("simplifiedAutoLinks")(g,A,C),g=r.subParser("emoji")(g,A,C),g=r.subParser("underline")(g,A,C),g=r.subParser("italicsAndBold")(g,A,C),g=r.subParser("strikethrough")(g,A,C),g=r.subParser("ellipsis")(g,A,C),g=r.subParser("hashHTMLSpans")(g,A,C),g=r.subParser("encodeAmpsAndAngles")(g,A,C),A.simpleLineBreaks?/\n\nยจK/.test(g)||(g=g.replace(/\n+/g,"
\n")):g=g.replace(/ +\n/g,"
\n"),g=C.converter._dispatch("spanGamut.after",g,A,C)}),r.subParser("strikethrough",function(g,A,C){"use strict";function I(g){return A.simplifiedAutoLink&&(g=r.subParser("simplifiedAutoLinks")(g,A,C)),""+g+""}return A.strikethrough&&(g=(g=C.converter._dispatch("strikethrough.before",g,A,C)).replace(/(?:~){2}([\s\S]+?)(?:~){2}/g,function(g,A){return I(A)}),g=C.converter._dispatch("strikethrough.after",g,A,C)),g}),r.subParser("stripLinkDefinitions",function(g,A,C){"use strict";var I=/^ {0,3}\[(.+)]:[ \t]*\n?[ \t]*([^>\s]+)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n+|(?=ยจ0))/gm,e=/^ {0,3}\[(.+)]:[ \t]*\n?[ \t]*(data:.+?\/.+?;base64,[A-Za-z0-9+/=\n]+?)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n\n|(?=ยจ0)|(?=\n\[))/gm,t=function(g,I,e,t,a,n,o){return I=I.toLowerCase(),e.match(/^data:.+?\/.+?;base64,/)?C.gUrls[I]=e.replace(/\s/g,""):C.gUrls[I]=r.subParser("encodeAmpsAndAngles")(e,A,C),n?n+o:(o&&(C.gTitles[I]=o.replace(/"|'/g,""")),A.parseImgDimensions&&t&&a&&(C.gDimensions[I]={width:t,height:a}),"")};return g=(g+="ยจ0").replace(e,t),g=g.replace(I,t),g=g.replace(/ยจ0/,"")}),r.subParser("tables",function(g,A,C){"use strict";function I(g){return/^:[ \t]*--*$/.test(g)?' style="text-align:left;"':/^--*[ \t]*:[ \t]*$/.test(g)?' style="text-align:right;"':/^:[ \t]*--*[ \t]*:$/.test(g)?' style="text-align:center;"':""}function e(g,I){var e="";return g=g.trim(),(A.tablesHeaderId||A.tableHeaderId)&&(e=' id="'+g.replace(/ /g,"_").toLowerCase()+'"'),g=r.subParser("spanGamut")(g,A,C),""+g+" \n"}function t(g,I){return""+r.subParser("spanGamut")(g,A,C)+" \n"}function a(g,A){for(var C="\n\n\n",I=g.length,e=0;e\n \n\n",e=0;e\n";for(var r=0;r\n"}return C+=" \n
\n"}function n(g){var n,o=g.split("\n");for(n=0;n"+A+""}):g.replace(/_?__(\S[\s\S]*?)___?/g,function(g,A){return/\S$/.test(A)?""+A+"":g}),g=g.replace(/(_)/g,r.helper.escapeCharactersCallback),g=C.converter._dispatch("underline.after",g,A,C)):g}),r.subParser("unescapeSpecialChars",function(g,A,C){"use strict";return g=C.converter._dispatch("unescapeSpecialChars.before",g,A,C),g=g.replace(/ยจE(\d+)E/g,function(g,A){var C=parseInt(A);return String.fromCharCode(C)}),g=C.converter._dispatch("unescapeSpecialChars.after",g,A,C)});var _=this;"function"==typeof define&&define.amd?define(function(){"use strict";return r}):"undefined"!=typeof module&&module.exports?module.exports=r:_.showdown=r}).call(this);
//# sourceMappingURL=showdown.min.js.map