diff --git a/index.html b/index.html index 684bcc5..cc6ee0a 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -
['.concat(e[0],"]
").concat(e[1],": ").concat(e[2],"").concat(e.join("\n"),"
")},this.buildAddition=function(){return"\n \n "},this.setOptions=function(e){o.opts=c(o.opts,e)},this.hasFootnotes=function(){return 0!==n.length},this.getRenderer=function(e){n=[],i=0,a=o.buildTheme(o.opts.theme);var t=new p.a.Renderer;return t.heading=function(e,t){switch(t){case 1:return"")),"
").concat(e,"")},t.code=function(e,t){e=e.replace(//g,">");var o=e.split("\n").map((function(e){return'
'.concat(e||" ","
")})),r="github";return'\n \n ').concat(o.join(""),"\n\n
").concat(e,"
")},t.listitem=function(e){return"<%s/>').concat(e,"")},t.list=function(e,t,o){e=e.replace(/<\/*p.*?>/g,"");var r=e.split("<%s/>");if(!t)return e=r.join("•"),"").concat(e,"
");e=r[0];for(var n=1;n[${x[0]}]
: ${x[1]}[${x[0]}]
${x[1]}: ${x[2]}${footnoteArray.join(\"\\n\")}
`;\n };\n\n this.buildAddition = () => {\n return `\n \n `;\n };\n\n this.setOptions = (newOpts) => {\n this.opts = merge(this.opts, newOpts);\n };\n\n this.hasFootnotes = () => footnotes.length !== 0;\n\n this.getRenderer = (status) => {\n footnotes = [];\n footnoteIndex = 0;\n\n styleMapping = this.buildTheme(this.opts.theme);\n let renderer = new marked.Renderer();\n\n renderer.heading = (text, level) => {\n switch (level) {\n case 1:\n return ``);\n return `
${text}`;\n };\n renderer.code = (text, lang) => {\n text = text.replace(//g, \">\");\n const codeLines = text\n .split(\"\\n\")\n .map(\n (line) =>\n `
${\n line || \" \"\n }
`\n );\n const codeTheme = \"github\";\n return `\n \n ${codeLines.join(\"\")}\n\n
${text}
`;\n renderer.listitem = (text) =>\n `<%s/>${text}`;\n\n renderer.list = (text, ordered, start) => {\n text = text.replace(/<\\/*p.*?>/g, \"\");\n let segments = text.split(`<%s/>`);\n if (!ordered) {\n text = segments.join(\"•\");\n return `${text}
`;\n }\n text = segments[0];\n for (let i = 1; i < segments.length; i++) {\n text = text + i + \".\" + segments[i];\n }\n return `${text}
`;\n };\n renderer.image = (href, title, text) => {\n let subText = \"\";\n if (text) {\n subText = `扫码关注我的公众号,原创技术文章第一时间推送!
\n \n\n | \n
['.concat(e[0],"]
").concat(e[1],": ").concat(e[2],"").concat(e.join("\n"),"
")},this.buildAddition=function(){return"\n \n "},this.setOptions=function(e){o.opts=c(o.opts,e)},this.hasFootnotes=function(){return 0!==r.length},this.getRenderer=function(e){r=[],i=0,a=o.buildTheme(o.opts.theme);var t=new p.a.Renderer;return t.heading=function(e,t){switch(t){case 1:return"")),"
").concat(e,"")},t.code=function(e,t){e=e.replace(//g,">");var o=e.split("\n").map((function(e){return'
'.concat(e||" ","
")})),n="github";return'\n \n ').concat(o.join(""),"\n\n
").concat(e,"
")},t.listitem=function(e){return"<%s/>').concat(e,"")},t.list=function(e,t,o){e=e.replace(/<\/*p.*?>/g,"");var n=e.split("<%s/>");if(!t)return e=n.join("•"),"").concat(e,"
");e=n[0];for(var r=1;r[${x[0]}]
: ${x[1]}[${x[0]}]
${x[1]}: ${x[2]}${footnoteArray.join(\"\\n\")}
`;\n };\n\n this.buildAddition = () => {\n return `\n \n `;\n };\n\n this.setOptions = (newOpts) => {\n this.opts = merge(this.opts, newOpts);\n };\n\n this.hasFootnotes = () => footnotes.length !== 0;\n\n this.getRenderer = (status) => {\n footnotes = [];\n footnoteIndex = 0;\n\n styleMapping = this.buildTheme(this.opts.theme);\n let renderer = new marked.Renderer();\n\n renderer.heading = (text, level) => {\n switch (level) {\n case 1:\n return ``);\n return `
${text}`;\n };\n renderer.code = (text, lang) => {\n text = text.replace(//g, \">\");\n const codeLines = text\n .split(\"\\n\")\n .map(\n (line) =>\n `
${\n line || \" \"\n }
`\n );\n const codeTheme = \"github\";\n return `\n \n ${codeLines.join(\"\")}\n\n
${text}
`;\n renderer.listitem = (text) =>\n `<%s/>${text}`;\n\n renderer.list = (text, ordered, start) => {\n text = text.replace(/<\\/*p.*?>/g, \"\");\n let segments = text.split(`<%s/>`);\n if (!ordered) {\n text = segments.join(\"•\");\n return `${text}
`;\n }\n text = segments[0];\n for (let i = 1; i < segments.length; i++) {\n text = text + i + \".\" + segments[i];\n }\n return `${text}
`;\n };\n renderer.image = (href, title, text) => {\n let subText = \"\";\n if (text) {\n subText = `扫码关注我的公众号,原创技术文章第一时间推送!
\n \n\n | \n