From 4ba45b65cea71493ab0f6208be33cace719fcd06 Mon Sep 17 00:00:00 2001 From: Peyman Borhani Date: Sun, 4 Aug 2024 10:47:28 +0330 Subject: [PATCH] Create md-page.js ~Testing: To see => if improves the MD format view? --- site/md-page.js | 1 + 1 file changed, 1 insertion(+) create mode 100644 site/md-page.js diff --git a/site/md-page.js b/site/md-page.js new file mode 100644 index 0000000..60ca5be --- /dev/null +++ b/site/md-page.js @@ -0,0 +1 @@ +!function(){function I(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:
foo
",type:"boolean"},emoji:{defaultValue:!1,description:"Enable emoji support. Ex: `this is a :smile: emoji`",type:"boolean"},underline:{defaultValue:!1,description:"Enable support for underline. Syntax is double or triple underscores: `__underline word__`. With this option enabled, underscores no longer parses into `` and ``",type:"boolean"},completeHTMLDocument:{defaultValue:!1,description:"Outputs a complete html document, including ``, `` and `` tags",type:"boolean"},metadata:{defaultValue:!1,description:"Enable support for document metadata (defined at the top of the document between `\xab\xab\xab` and `\xbb\xbb\xbb` or between `---` and `---`).",type:"boolean"},splitAdjacentBlockquotes:{defaultValue:!1,description:"Split adjacent blockquote blocks",type:"boolean"}};if(!1===g)return JSON.parse(JSON.stringify(A));var C,I={};for(C in A)A.hasOwnProperty(C)&&(I[C]=A[C].defaultValue);return I}var v={},C={},i={},l=I(!0),c="vanilla",u={github:{omitExtraWLInCodeBlocks:!0,simplifiedAutoLink:!0,excludeTrailingPunctuationFromURLs:!0,literalMidWordUnderscores:!0,strikethrough:!0,tables:!0,tablesHeaderId:!0,ghCodeBlocks:!0,tasklists:!0,disableForced4SpacesIndentedSublists:!0,simpleLineBreaks:!0,requireSpaceBeforeHeadingText:!0,ghCompatibleHeaderId:!0,ghMentions:!0,backslashEscapesHTMLTags:!0,emoji:!0,splitAdjacentBlockquotes:!0},original:{noHeaderId:!0,ghCodeBlocks:!1},ghost:{omitExtraWLInCodeBlocks:!0,parseImgDimensions:!0,simplifiedAutoLink:!0,excludeTrailingPunctuationFromURLs:!0,literalMidWordUnderscores:!0,strikethrough:!0,tables:!0,tablesHeaderId:!0,ghCodeBlocks:!0,tasklists:!0,smoothLivePreview:!0,simpleLineBreaks:!0,requireSpaceBeforeHeadingText:!0,ghMentions:!1,encodeEmails:!0},vanilla:I(!0),allOn:function(){"use strict";var g,A=I(!0),C={};for(g in A)A.hasOwnProperty(g)&&(C[g]=!0);return C}()};function d(g,A){"use strict";var C=A?"Error in "+A+" extension->":"Error in unnamed extension",I={valid:!0,error:""};v.helper.isArray(g)||(g=[g]);for(var e=0;e"+a+""+n+t}}function t(e,r){"use strict";return function(g,A,C){var I="mailto:";return A=A||"",C=v.subParser("unescapeSpecialChars")(C,e,r),e.encodeEmails?(I=v.helper.encodeEmailAddress(I+C),C=v.helper.encodeEmailAddress(C)):I+=C,A+''+C+""}}v.helper.matchRecursiveRegExp=function(g,A,C,I){"use strict";for(var e=s(g,A,C,I),r=[],t=0;t',showdown:''},v.Converter=function(g){"use strict";var A,C,e={},a=[],n=[],t={},I=c,r={parsed:{},raw:"",format:""};for(A in g=g||{},l)l.hasOwnProperty(A)&&(e[A]=l[A]);if("object"!=typeof g)throw Error("Converter expects the passed parameter to be an object, but "+typeof g+" was passed instead.");for(C in g)g.hasOwnProperty(C)&&(e[C]=g[C]);function o(g,A){if(A=A||null,v.helper.isString(g)){if(A=g=v.helper.stdExtName(g),v.extensions[g]){console.warn("DEPRECATION WARNING: "+g+" is an old extension that uses a deprecated loading method.Please inform the developer that the extension should be updated!");var C=v.extensions[g],I=g;if("function"==typeof C&&(C=C(new v.Converter)),v.helper.isArray(C)||(C=[C]),!(I=d(C,I)).valid)throw Error(I.error);for(var e=0;e? ?(['"].*['"])?\)$/m))I="";else if(!I){if(I="#"+(C=C||A.toLowerCase().replace(/ ?\n/g," ")),v.helper.isUndefined(n.gUrls[C]))return g;I=n.gUrls[C],v.helper.isUndefined(n.gTitles[C])||(t=n.gTitles[C])}return g='"}return g=(g=(g=(g=(g=n.converter._dispatch("anchors.before",g,a,n)).replace(/\[((?:\[[^\]]*]|[^\[\]])*)] ?(?:\n *)?\[(.*?)]()()()()/g,A)).replace(/\[((?:\[[^\]]*]|[^\[\]])*)]()[ \t]*\([ \t]?<([^>]*)>(?:[ \t]*((["'])([^"]*?)\5))?[ \t]?\)/g,A)).replace(/\[((?:\[[^\]]*]|[^\[\]])*)]()[ \t]*\([ \t]??(?:[ \t]*((["'])([^"]*?)\5))?[ \t]?\)/g,A)).replace(/\[([^\[\]]+)]()()()()()/g,A),a.ghMentions&&(g=g.replace(/(^|\s)(\\)?(@([a-z\d\-]+))(?=[.!?;,[\]()]|\s|$)/gim,function(g,A,C,I,e){if("\\"===C)return A+I;if(v.helper.isString(a.ghMentionsLink))return C="",A+'"+I+"";throw new Error("ghMentionsLink option must be a string")})),g=n.converter._dispatch("anchors.after",g,a,n)});var a=/([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+?\.[^'">\s]+?)()(\1)?(?=\s|$)(?!["<>])/gi,n=/([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+\.[^'">\s]+?)([.!?,()\[\]])?(\1)?(?=\s|$)(?!["<>])/gi,o=/()<(((https?|ftp|dict):\/\/|www\.)[^'">\s]+)()>()/gi,p=/(^|\s)(?:mailto:)?([A-Za-z0-9!#$%&'*+-/=?^_`{|}~.]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)(?=$|\s)/gim,h=/<()(?:mailto:)?([-.\w]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)>/gi;v.subParser("autoLinks",function(g,A,C){"use strict";return g=(g=(g=C.converter._dispatch("autoLinks.before",g,A,C)).replace(o,r(A))).replace(h,t(A,C)),g=C.converter._dispatch("autoLinks.after",g,A,C)}),v.subParser("simplifiedAutoLinks",function(g,A,C){"use strict";return A.simplifiedAutoLink&&(g=C.converter._dispatch("simplifiedAutoLinks.before",g,A,C),g=(g=A.excludeTrailingPunctuationFromURLs?g.replace(n,r(A)):g.replace(a,r(A))).replace(p,t(A,C)),g=C.converter._dispatch("simplifiedAutoLinks.after",g,A,C)),g}),v.subParser("blockGamut",function(g,A,C){"use strict";return g=C.converter._dispatch("blockGamut.before",g,A,C),g=v.subParser("blockQuotes")(g,A,C),g=v.subParser("headers")(g,A,C),g=v.subParser("horizontalRule")(g,A,C),g=v.subParser("lists")(g,A,C),g=v.subParser("codeBlocks")(g,A,C),g=v.subParser("tables")(g,A,C),g=v.subParser("hashHTMLBlocks")(g,A,C),g=v.subParser("paragraphs")(g,A,C),g=C.converter._dispatch("blockGamut.after",g,A,C)}),v.subParser("blockQuotes",function(g,A,C){"use strict";g=C.converter._dispatch("blockQuotes.before",g,A,C);var I=/(^ {0,3}>[ \t]?.+\n(.+\n)*\n*)+/gm;return A.splitAdjacentBlockquotes&&(I=/^ {0,3}>[\s\S]*?(?:\n\n)/gm),g=(g+="\n\n").replace(I,function(g){return g=(g=(g=g.replace(/^[ \t]*>[ \t]?/gm,"")).replace(/\xa80/g,"")).replace(/^[ \t]+$/gm,""),g=v.subParser("githubCodeBlocks")(g,A,C),g=(g=(g=v.subParser("blockGamut")(g,A,C)).replace(/(^|\n)/g,"$1 ")).replace(/(\s*
[^\r]+?<\/pre>)/gm,function(g,A){return A.replace(/^  /gm,"\xa80").replace(/\xa80/g,"")}),v.subParser("hashBlock")("
\n"+g+"\n
",A,C)}),g=C.converter._dispatch("blockQuotes.after",g,A,C)}),v.subParser("codeBlocks",function(g,e,r){"use strict";g=r.converter._dispatch("codeBlocks.before",g,e,r);return g=(g=(g+="\xa80").replace(/(?:\n\n|^)((?:(?:[ ]{4}|\t).*\n+)+)(\n*[ ]{0,3}[^ \t\n]|(?=\xa80))/g,function(g,A,C){var I="\n",A=v.subParser("outdent")(A,e,r);return A=v.subParser("encodeCode")(A,e,r),A="
"+(A=(A=(A=v.subParser("detab")(A,e,r)).replace(/^\n+/g,"")).replace(/\n+$/g,""))+(I=e.omitExtraWLInCodeBlocks?"":I)+"
",v.subParser("hashBlock")(A,e,r)+C})).replace(/\xa80/,""),g=r.converter._dispatch("codeBlocks.after",g,e,r)}),v.subParser("codeSpans",function(g,e,r){"use strict";return g=(g=void 0===(g=r.converter._dispatch("codeSpans.before",g,e,r))?"":g).replace(/(^|[^\\])(`+)([^\r]*?[^`])\2(?!`)/gm,function(g,A,C,I){return I=(I=I.replace(/^([ \t]*)/g,"")).replace(/[ \t]*$/g,""),I=A+""+(I=v.subParser("encodeCode")(I,e,r))+"",I=v.subParser("hashHTMLSpans")(I,e,r)}),g=r.converter._dispatch("codeSpans.after",g,e,r)}),v.subParser("completeHTMLDocument",function(g,A,C){"use strict";if(A.completeHTMLDocument){g=C.converter._dispatch("completeHTMLDocument.before",g,A,C);var I,e="html",r="\n",t="",a='\n',n="",o="";for(I in void 0!==C.metadata.parsed.doctype&&(r="\n","html"!==(e=C.metadata.parsed.doctype.toString().toLowerCase())&&"html5"!==e||(a='')),C.metadata.parsed)if(C.metadata.parsed.hasOwnProperty(I))switch(I.toLowerCase()){case"doctype":break;case"title":t=""+C.metadata.parsed.title+"\n";break;case"charset":a="html"===e||"html5"===e?'\n':'\n';break;case"language":case"lang":n=' lang="'+C.metadata.parsed[I]+'"',o+='\n';break;default:o+='\n'}g=r+"\n\n"+t+a+o+"\n\n"+g.trim()+"\n\n",g=C.converter._dispatch("completeHTMLDocument.after",g,A,C)}return g}),v.subParser("detab",function(g,A,C){"use strict";return g=(g=(g=(g=(g=(g=C.converter._dispatch("detab.before",g,A,C)).replace(/\t(?=\t)/g," ")).replace(/\t/g,"\xa8A\xa8B")).replace(/\xa8B(.+?)\xa8A/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)}),v.subParser("encodeBackslashEscapes",function(g,A,C){"use strict";return g=(g=(g=C.converter._dispatch("encodeBackslashEscapes.before",g,A,C)).replace(/\\(\\)/g,v.helper.escapeCharactersCallback)).replace(/\\([`*_{}\[\]()>#+.!~=|-])/g,v.helper.escapeCharactersCallback),g=C.converter._dispatch("encodeBackslashEscapes.after",g,A,C)}),v.subParser("encodeCode",function(g,A,C){"use strict";return g=(g=C.converter._dispatch("encodeCode.before",g,A,C)).replace(/&/g,"&").replace(//g,">").replace(/([*_{}\[\]\\=~-])/g,v.helper.escapeCharactersCallback),g=C.converter._dispatch("encodeCode.after",g,A,C)}),v.subParser("escapeSpecialCharsWithinTagAttributes",function(g,A,C){"use strict";return g=(g=(g=C.converter._dispatch("escapeSpecialCharsWithinTagAttributes.before",g,A,C)).replace(/<\/?[a-z\d_:-]+(?:[\s]+[\s\S]+?)?>/gi,function(g){return g.replace(/(.)<\/?code>(?=.)/g,"$1`").replace(/([\\`*_~=|])/g,v.helper.escapeCharactersCallback)})).replace(/-]|-[^>])(?:[^-]|-[^-])*)--)>/gi,function(g){return g.replace(/([\\`*_~=|])/g,v.helper.escapeCharactersCallback)}),g=C.converter._dispatch("escapeSpecialCharsWithinTagAttributes.after",g,A,C)}),v.subParser("githubCodeBlocks",function(g,r,t){"use strict";return r.ghCodeBlocks?(g=t.converter._dispatch("githubCodeBlocks.before",g,r,t),g=(g=(g+="\xa80").replace(/(?:^|\n)(```+|~~~+)([^\s`~]*)\n([\s\S]*?)\n\1/g,function(g,A,C,I){var e=r.omitExtraWLInCodeBlocks?"":"\n";return I=v.subParser("encodeCode")(I,r,t),I="
"+(I=(I=(I=v.subParser("detab")(I,r,t)).replace(/^\n+/g,"")).replace(/\n+$/g,""))+e+"
",I=v.subParser("hashBlock")(I,r,t),"\n\n\xa8G"+(t.ghCodeBlocks.push({text:g,codeblock:I})-1)+"G\n\n"})).replace(/\xa80/,""),t.converter._dispatch("githubCodeBlocks.after",g,r,t)):g}),v.subParser("hashBlock",function(g,A,C){"use strict";return g=(g=C.converter._dispatch("hashBlock.before",g,A,C)).replace(/(^\n+|\n+$)/g,""),g="\n\n\xa8K"+(C.gHtmlBlocks.push(g)-1)+"K\n\n",g=C.converter._dispatch("hashBlock.after",g,A,C)}),v.subParser("hashCodeTags",function(g,e,r){"use strict";g=r.converter._dispatch("hashCodeTags.before",g,e,r);return g=v.helper.replaceRecursiveRegExp(g,function(g,A,C,I){C=C+v.subParser("encodeCode")(A,e,r)+I;return"\xa8C"+(r.gHtmlSpans.push(C)-1)+"C"},"]*>","","gim"),g=r.converter._dispatch("hashCodeTags.after",g,e,r)}),v.subParser("hashElement",function(g,A,C){"use strict";return function(g,A){return A=(A=(A=A.replace(/\n\n/g,"\n")).replace(/^\n/,"")).replace(/\n+$/g,""),A="\n\n\xa8K"+(C.gHtmlBlocks.push(A)-1)+"K\n\n"}}),v.subParser("hashHTMLBlocks",function(g,A,e){"use strict";g=e.converter._dispatch("hashHTMLBlocks.before",g,A,e);function C(g,A,C,I){return-1!==C.search(/\bmarkdown\b/)&&(g=C+e.converter.makeHtml(A)+I),"\n\n\xa8K"+(e.gHtmlBlocks.push(g)-1)+"K\n\n"}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 r=0;r]*>)","im"),a="<"+I[r]+"\\b[^>]*>",n="";-1!==(o=v.helper.regexIndexOf(g,t));){var o=v.helper.splitAtIndex(g,o),s=v.helper.replaceRecursiveRegExp(o[1],C,a,n,"im");if(s===o[1])break;g=o[0].concat(s)}return g=g.replace(/(\n {0,3}(<(hr)\b([^<>])*?\/?>)[ \t]*(?=\n{2,}))/g,v.subParser("hashElement")(g,A,e)),g=(g=v.helper.replaceRecursiveRegExp(g,function(g){return"\n\n\xa8K"+(e.gHtmlBlocks.push(g)-1)+"K\n\n"},"^ {0,3}\x3c!--","--\x3e","gm")).replace(/(?:\n\n)( {0,3}(?:<([?%])[^\r]*?\2>)[ \t]*(?=\n{2,}))/g,v.subParser("hashElement")(g,A,e)),g=e.converter._dispatch("hashHTMLBlocks.after",g,A,e)}),v.subParser("hashHTMLSpans",function(g,A,C){"use strict";function I(g){return"\xa8C"+(C.gHtmlSpans.push(g)-1)+"C"}return g=(g=(g=(g=(g=C.converter._dispatch("hashHTMLSpans.before",g,A,C)).replace(/<[^>]+?\/>/gi,I)).replace(/<([^>]+?)>[\s\S]*?<\/\1>/g,I)).replace(/<([^>]+?)\s[^>]+?>[\s\S]*?<\/\1>/g,I)).replace(/<[^>]+?>/gi,I),g=C.converter._dispatch("hashHTMLSpans.after",g,A,C)}),v.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*
","gim"),g=r.converter._dispatch("hashPreCodeTags.after",g,e,r)}),v.subParser("headers",function(g,e,r){"use strict";g=r.converter._dispatch("headers.before",g,e,r);var t=isNaN(parseInt(e.headerLevelStart))?1:parseInt(e.headerLevelStart),A=e.smoothLivePreview?/^(.+)[ \t]*\n={2,}[ \t]*\n+/gm:/^(.+)[ \t]*\n=+[ \t]*\n+/gm,C=e.smoothLivePreview?/^(.+)[ \t]*\n-{2,}[ \t]*\n+/gm:/^(.+)[ \t]*\n-+[ \t]*\n+/gm,A=(g=(g=g.replace(A,function(g,A){var C=v.subParser("spanGamut")(A,e,r),A=e.noHeaderId?"":' id="'+a(A)+'"',A=""+C+"";return v.subParser("hashBlock")(A,e,r)})).replace(C,function(g,A){var C=v.subParser("spanGamut")(A,e,r),A=e.noHeaderId?"":' id="'+a(A)+'"',I=t+1,A=""+C+"";return v.subParser("hashBlock")(A,e,r)}),e.requireSpaceBeforeHeadingText?/^(#{1,6})[ \t]+(.+?)[ \t]*#*\n+/gm:/^(#{1,6})[ \t]*(.+?)[ \t]*#*\n+/gm);function a(g){var A=g=e.customizedHeaderId&&(A=g.match(/\{([^{]+?)}\s*$/))&&A[1]?A[1]:g,g=v.helper.isString(e.prefixHeaderId)?e.prefixHeaderId:!0===e.prefixHeaderId?"section-":"";return e.rawPrefixHeaderId||(A=g+A),A=(e.ghCompatibleHeaderId?A.replace(/ /g,"-").replace(/&/g,"").replace(/\xa8T/g,"").replace(/\xa8D/g,"").replace(/[&+$,\/:;=?@"#{}|^\xa8~\[\]`\\*)(%.!'<>]/g,""):e.rawHeaderId?A.replace(/ /g,"-").replace(/&/g,"&").replace(/\xa8T/g,"\xa8").replace(/\xa8D/g,"$").replace(/["']/g,"-"):A.replace(/[^\w]/g,"")).toLowerCase(),e.rawPrefixHeaderId&&(A=g+A),r.hashLinkCounts[A]?A=A+"-"+r.hashLinkCounts[A]++:r.hashLinkCounts[A]=1,A}return g=g.replace(A,function(g,A,C){var I=C,I=(e.customizedHeaderId&&(I=C.replace(/\s?\{([^{]+?)}\s*$/,"")),v.subParser("spanGamut")(I,e,r)),C=e.noHeaderId?"":' id="'+a(C)+'"',A=t-1+A.length,C=""+I+"";return v.subParser("hashBlock")(C,e,r)}),g=r.converter._dispatch("headers.after",g,e,r)}),v.subParser("horizontalRule",function(g,A,C){"use strict";g=C.converter._dispatch("horizontalRule.before",g,A,C);var I=v.subParser("hashBlock")("
",A,C);return g=(g=(g=g.replace(/^ {0,2}( ?-){3,}[ \t]*$/gm,I)).replace(/^ {0,2}( ?\*){3,}[ \t]*$/gm,I)).replace(/^ {0,2}( ?_){3,}[ \t]*$/gm,I),g=C.converter._dispatch("horizontalRule.after",g,A,C)}),v.subParser("images",function(g,A,i){"use strict";function n(g,A,C,I,e,r,t,a){var n=i.gUrls,o=i.gTitles,s=i.gDimensions;if(C=C.toLowerCase(),a=a||"",-1? ?(['"].*['"])?\)$/m))I="";else if(""===I||null===I){if(I="#"+(C=""!==C&&null!==C?C:A.toLowerCase().replace(/ ?\n/g," ")),v.helper.isUndefined(n[C]))return g;I=n[C],v.helper.isUndefined(o[C])||(a=o[C]),v.helper.isUndefined(s[C])||(e=s[C].width,r=s[C].height)}A=A.replace(/"/g,""").replace(v.helper.regexes.asteriskDashAndColon,v.helper.escapeCharactersCallback);g=''+A+'"}return g=(g=(g=(g=(g=(g=i.converter._dispatch("images.before",g,A,i)).replace(/!\[([^\]]*?)] ?(?:\n *)?\[([\s\S]*?)]()()()()()/g,n)).replace(/!\[([^\]]*?)][ \t]*()\([ \t]??(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(["'])([^"]*?)\6)?[ \t]?\)/g,function(g,A,C,I,e,r,t,a){return n(g,A,C,I=I.replace(/\s/g,""),e,r,0,a)})).replace(/!\[([^\]]*?)][ \t]*()\([ \t]?<([^>]*)>(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(?:(["'])([^"]*?)\6))?[ \t]?\)/g,n)).replace(/!\[([^\]]*?)][ \t]*()\([ \t]??(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(["'])([^"]*?)\6)?[ \t]?\)/g,n)).replace(/!\[([^\[\]]+)]()()()()()/g,n),g=i.converter._dispatch("images.after",g,A,i)}),v.subParser("italicsAndBold",function(g,A,C){"use strict";return g=C.converter._dispatch("italicsAndBold.before",g,A,C),g=A.literalMidWordUnderscores?(g=(g=g.replace(/\b___(\S[\s\S]*)___\b/g,function(g,A){return""+A+""})).replace(/\b__(\S[\s\S]*)__\b/g,function(g,A){return""+A+""})).replace(/\b_(\S[\s\S]*?)_\b/g,function(g,A){return""+A+""}):(g=(g=g.replace(/___(\S[\s\S]*?)___/g,function(g,A){return/\S$/.test(A)?""+A+"":g})).replace(/__(\S[\s\S]*?)__/g,function(g,A){return/\S$/.test(A)?""+A+"":g})).replace(/_([^\s_][\s\S]*?)_/g,function(g,A){return/\S$/.test(A)?""+A+"":g}),g=A.literalMidWordAsterisks?(g=(g=g.replace(/([^*]|^)\B\*\*\*(\S[\s\S]+?)\*\*\*\B(?!\*)/g,function(g,A,C){return A+""+C+""})).replace(/([^*]|^)\B\*\*(\S[\s\S]+?)\*\*\B(?!\*)/g,function(g,A,C){return A+""+C+""})).replace(/([^*]|^)\B\*(\S[\s\S]+?)\*\B(?!\*)/g,function(g,A,C){return A+""+C+""}):(g=(g=g.replace(/\*\*\*(\S[\s\S]*?)\*\*\*/g,function(g,A){return/\S$/.test(A)?""+A+"":g})).replace(/\*\*(\S[\s\S]*?)\*\*/g,function(g,A){return/\S$/.test(A)?""+A+"":g})).replace(/\*([^\s*][\s\S]*?)\*/g,function(g,A){return/\S$/.test(A)?""+A+"":g}),g=C.converter._dispatch("italicsAndBold.after",g,A,C)}),v.subParser("lists",function(g,i,o){"use strict";function l(g,A){o.gListLevel++,g=g.replace(/\n{2,}$/,"\n");var C=/(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(\xa80| {0,3}([*+-]|\d+[.])[ \t]+))/gm,n=/\n[ \t]*\n(?!\xa80)/.test(g+="\xa80");return i.disableForced4SpacesIndentedSublists&&(C=/(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(\xa80|\2([*+-]|\d+[.])[ \t]+))/gm),g=(g=g.replace(C,function(g,A,C,I,e,r,t){t=t&&""!==t.trim();var e=v.subParser("outdent")(e,i,o),a="";return r&&i.tasklists&&(a=' class="task-list-item" style="list-style-type: none;"',e=e.replace(/^[ \t]*\[(x|X| )?]/m,function(){var g='"+(e=(e=(A||-1\n"})).replace(/\xa80/g,""),o.gListLevel--,g=A?g.replace(/\s+$/,""):g}function c(g,A){if("ol"===A){A=g.match(/^ *(\d+)\./);if(A&&"1"!==A[1])return' start="'+A[1]+'"'}return""}function e(e,r,t){var g,a=i.disableForced4SpacesIndentedSublists?/^ ?\d+\.[ \t]/gm:/^ {0,3}\d+\.[ \t]/gm,n=i.disableForced4SpacesIndentedSublists?/^ ?[*+-][ \t]/gm:/^ {0,3}[*+-][ \t]/gm,o="ul"===r?a:n,s="";return-1!==e.search(o)?function g(A){var C=A.search(o),I=c(e,r);-1!==C?(s+="\n\n<"+r+I+">\n"+l(A.slice(0,C),!!t)+"\n",o="ul"===(r="ul"===r?"ol":"ul")?a:n,g(A.slice(C))):s+="\n\n<"+r+I+">\n"+l(A,!!t)+"\n"}(e):(g=c(e,r),s="\n\n<"+r+g+">\n"+l(e,!!t)+"\n"),s}return g=o.converter._dispatch("lists.before",g,i,o),g+="\xa80",g=(g=o.gListLevel?g.replace(/^(( {0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(\xa80|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm,function(g,A,C){return e(A,-1"),e.push(a+="

"))}for(r=e.length,t=0;t]*>\s*]*>/.test(o)&&(s=!0)}e[t]=o}return g=(g=(g=e.join("\n")).replace(/^\n+/g,"")).replace(/\n+$/g,""),C.converter._dispatch("paragraphs.after",g,A,C)}),v.subParser("runExtension",function(g,A,C,I){"use strict";return g.filter?A=g.filter(A,I.converter,C):g.regex&&((I=g.regex)instanceof RegExp||(I=new RegExp(I,"g")),A=A.replace(I,g.replace)),A}),v.subParser("spanGamut",function(g,A,C){"use strict";return g=C.converter._dispatch("spanGamut.before",g,A,C),g=v.subParser("codeSpans")(g,A,C),g=v.subParser("escapeSpecialCharsWithinTagAttributes")(g,A,C),g=v.subParser("encodeBackslashEscapes")(g,A,C),g=v.subParser("images")(g,A,C),g=v.subParser("anchors")(g,A,C),g=v.subParser("autoLinks")(g,A,C),g=v.subParser("simplifiedAutoLinks")(g,A,C),g=v.subParser("emoji")(g,A,C),g=v.subParser("underline")(g,A,C),g=v.subParser("italicsAndBold")(g,A,C),g=v.subParser("strikethrough")(g,A,C),g=v.subParser("ellipsis")(g,A,C),g=v.subParser("hashHTMLSpans")(g,A,C),g=v.subParser("encodeAmpsAndAngles")(g,A,C),A.simpleLineBreaks?/\n\n\xa8K/.test(g)||(g=g.replace(/\n+/g,"
\n")):g=g.replace(/ +\n/g,"
\n"),g=C.converter._dispatch("spanGamut.after",g,A,C)}),v.subParser("strikethrough",function(g,C,I){"use strict";return C.strikethrough&&(g=(g=I.converter._dispatch("strikethrough.before",g,C,I)).replace(/(?:~){2}([\s\S]+?)(?:~){2}/g,function(g,A){return A=A,""+(A=C.simplifiedAutoLink?v.subParser("simplifiedAutoLinks")(A,C,I):A)+""}),g=I.converter._dispatch("strikethrough.after",g,C,I)),g}),v.subParser("stripLinkDefinitions",function(g,a,n){"use strict";function A(g,A,C,I,e,r,t){return A=A.toLowerCase(),C.match(/^data:.+?\/.+?;base64,/)?n.gUrls[A]=C.replace(/\s/g,""):n.gUrls[A]=v.subParser("encodeAmpsAndAngles")(C,a,n),r?r+t:(t&&(n.gTitles[A]=t.replace(/"|'/g,""")),a.parseImgDimensions&&I&&e&&(n.gDimensions[A]={width:I,height:e}),"")}return g=(g=(g=(g+="\xa80").replace(/^ {0,3}\[(.+)]:[ \t]*\n?[ \t]*?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n\n|(?=\xa80)|(?=\n\[))/gm,A)).replace(/^ {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+|(?=\xa80))/gm,A)).replace(/\xa80/,"")}),v.subParser("tables",function(g,w,k){"use strict";return w.tables&&(g=(g=(g=(g=k.converter._dispatch("tables.before",g,w,k)).replace(/\\(\|)/g,v.helper.escapeCharactersCallback)).replace(/^ {0,3}\|?.+\|.+\n {0,3}\|?[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*:?[ \t]*(?:[-=]){2,}[\s\S]+?(?:\n\n|\xa80)/gm,A)).replace(/^ {0,3}\|.+\|[ \t]*\n {0,3}\|[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*\n( {0,3}\|.+\|[ \t]*\n)*(?:\n|\xa80)/gm,A),g=k.converter._dispatch("tables.after",g,w,k)),g;function A(g){for(var A=g.split("\n"),C=0;C"+(e=v.subParser("spanGamut")(e,w,k))+"\n"));for(C=0;C"+v.subParser("spanGamut")(a,w,k)+"\n"));c.push(u)}for(var p=i,h=c,m="\n\n\n",_=p.length,b=0;b<_;++b)m+=p[b];for(m+="\n\n\n",b=0;b\n";for(var f=0;f<_;++f)m+=h[b][f];m+="\n"}return m+="\n
\n"}}),v.subParser("underline",function(g,A,C){"use strict";return A.underline&&(g=C.converter._dispatch("underline.before",g,A,C),g=(g=A.literalMidWordUnderscores?g.replace(/\b_?__(\S[\s\S]*)___?\b/g,function(g,A){return""+A+""}):g.replace(/_?__(\S[\s\S]*?)___?/g,function(g,A){return/\S$/.test(A)?""+A+"":g})).replace(/(_)/g,v.helper.escapeCharactersCallback),g=C.converter._dispatch("underline.after",g,A,C)),g}),v.subParser("unescapeSpecialChars",function(g,A,C){"use strict";return g=(g=C.converter._dispatch("unescapeSpecialChars.before",g,A,C)).replace(/\xa8E(\d+)E/g,function(g,A){A=parseInt(A);return String.fromCharCode(A)}),g=C.converter._dispatch("unescapeSpecialChars.after",g,A,C)});"function"==typeof define&&define.amd?define(function(){"use strict";return v}):"undefined"!=typeof module&&module.exports?module.exports=v:this.showdown=v}.call(this),String.prototype.includes||(String.prototype.includes=function(g,A){"use strict";if(g instanceof RegExp)throw TypeError("first argument must not be a RegExp");return-1!==this.indexOf(g,A=void 0===A?0:A)}),[Element.prototype,Document.prototype,DocumentFragment.prototype].forEach(function(g){g.hasOwnProperty("prepend")||Object.defineProperty(g,"prepend",{configurable:!0,enumerable:!0,writable:!0,value:function(){var g=Array.prototype.slice.call(arguments),C=document.createDocumentFragment();g.forEach(function(g){var A=g instanceof Node;C.appendChild(A?g:document.createTextNode(String(g)))}),this.insertBefore(C,this.firstChild)}})}),document.addEventListener("DOMContentLoaded",function(){var g=document.createElement("style"),A='body { padding: 20px; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;} ',A=(A+"blockquote { padding: 0 1em; color: #6a737d; border-left: 0.25em solid #dfe2e5;} "+"code { padding: 0.2em 0.4em; background: rgba(27,31,35,0.05); border-radius: 3px;} "+"pre > code { background: none } "+"pre { padding: 16px; overflow: auto; line-height: 1.45; background-color: #f6f8fa; border-radius: 3px; } "+"table { border-collapse: collapse; } "+"td, th { border: 1px solid #ddd; padding: 10px 13px; } ",g.innerHTML='body { padding: 20px; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;} blockquote { padding: 0 1em; color: #6a737d; border-left: 0.25em solid #dfe2e5;} code { padding: 0.2em 0.4em; background: rgba(27,31,35,0.05); border-radius: 3px;} pre > code { background: none } pre { padding: 16px; overflow: auto; line-height: 1.45; background-color: #f6f8fa; border-radius: 3px; } table { border-collapse: collapse; } td, th { border: 1px solid #ddd; padding: 10px 13px; } ',document.head.prepend(g),document.createElement("meta")),g=(A.setAttribute("name","viewport"),A.setAttribute("content","width=device-width, initial-scale=1, shrink-to-fit=no"),document.head.appendChild(A),document.createElement("meta"));g.setAttribute("charset","UTF-8"),document.head.appendChild(g);window.navigator.userAgent.indexOf("MSIE ")?(A=document.querySelector("noscript"),(g=document.createElement("pre")).appendChild(A),C=g.textContent||g.innerText,delete A,delete g):C=document.querySelector("noscript").innerText;var C,A=new showdown.Converter({emoji:!0,underline:!0}),g=(A.setFlavor("github"),A.addExtension(function(){return[{type:"output",regex:/]+>/g,replace:function(g){var A=g.match(/"(.*?)"/)[1];return A.includes(window.location.hostname)||"/"==A[0]||"."==A[0]||"#"==A[0]?g:''}}]},"externalLink"),A.makeHtml(C));document.body.innerHTML=g,document.title=document.title||document.body.firstElementChild.innerText.trim(),setTimeout(function(){var g=window.location.hash;window.location.hash="",window.location.hash=g},100)});