diff --git a/themes/yilia/layout/_partial/article.ejs b/themes/yilia/layout/_partial/article.ejs index 2b83670..1d082fb 100644 --- a/themes/yilia/layout/_partial/article.ejs +++ b/themes/yilia/layout/_partial/article.ejs @@ -101,6 +101,6 @@ <% } if(theme.gitalk.enable || theme.valine.enable){ %> -
+ <% } %> <% } %> \ No newline at end of file diff --git a/themes/yilia/layout/_partial/script.ejs b/themes/yilia/layout/_partial/script.ejs index 933c2b2..19b232d 100644 --- a/themes/yilia/layout/_partial/script.ejs +++ b/themes/yilia/layout/_partial/script.ejs @@ -1,4 +1,4 @@ <%- js('js/main.47daecb9041cfca058ea.js') %> <%- js('js/slider.ef2aa12e396cdf8555f9.js') %> <%- js('js/mobile.97141e5b049f95a96735.js') %> -<%- js('js/comment.62251492e636f41e00f2.js') %> \ No newline at end of file +<%- js('js/comment.8959a0e1c58f06787797.js') %> \ No newline at end of file diff --git a/themes/yilia/source-src/css/article-main.scss b/themes/yilia/source-src/css/article-main.scss index a592a5d..7231a36 100644 --- a/themes/yilia/source-src/css/article-main.scss +++ b/themes/yilia/source-src/css/article-main.scss @@ -75,7 +75,10 @@ max-width: 100%; } } - +#comments { + margin:0 30px; + background-color:#fff; +} .article-inner h1.article-title, .article-title { color: #696969; margin-left: 0px; diff --git a/themes/yilia/source-src/css/article.scss b/themes/yilia/source-src/css/article.scss deleted file mode 100644 index 0da8127..0000000 --- a/themes/yilia/source-src/css/article.scss +++ /dev/null @@ -1,330 +0,0 @@ -.body-wrap{ - margin-bottom: 80px; -} -.article { - margin: 30px; - position: relative; - background: #fff; - -webkit-transition: all 0.2s ease-in; - &.show{ - visibility: visible; - -webkit-animation: cd-bounce-1 0.6s; - -moz-animation: cd-bounce-1 0.6s; - animation: cd-bounce-1 0.6s; - } - &.hidden{ - visibility: hidden; - } - img{ - max-width: 100%; - } -} -@-webkit-keyframes cd-bounce-1 { - 0% { - opacity: 0; - -webkit-transform: scale(1); - } - 60% { - opacity: 1; - -webkit-transform: scale(1.01); - } - 100% { - -webkit-transform: scale(1); - } -} -@-moz-keyframes cd-bounce-1 { - 0% { - opacity: 0; - -moz-transform: scale(1); - } - 60% { - opacity: 1; - -moz-transform: scale(1.01); - } - 100% { - -moz-transform: scale(1); - } -} -@keyframes cd-bounce-1 { - 0% { - opacity: 0; - -webkit-transform: scale(1); - -moz-transform: scale(1); - -ms-transform: scale(1); - -o-transform: scale(1); - transform: scale(1); - } - 60% { - opacity: 1; - -webkit-transform: scale(1.01); - -moz-transform: scale(1.01); - -ms-transform: scale(1.01); - -o-transform: scale(1.01); - transform: scale(1.01); - } - 100% { - -webkit-transform: scale(1); - -moz-transform: scale(1); - -ms-transform: scale(1); - -o-transform: scale(1); - transform: scale(1); - } -} -.article-index{ - margin-left: 200px; - padding: 15px 0; - margin-right: 75px; - .brief{ - display: block; - color: #a8a8a8; - font-size: 12px; - line-height: 14px; - height: 7px; - padding-left: 2px; - &:before{ - display: inline-block; - content: "“"; - font-family: serif; - font-size: 30px; - float: left; - margin: 4px 4px 0 -12px; - color: #c8c8c8; - } - } -} - -.article-title { - color: #696969; - margin-left: 0px; - font-weight: 300; - line-height: 35px; - margin-bottom: 20px; - font-size: 26px; - -webkit-transition: color 0.3s; - -moz-transition: color 0.3s; - -o-transition: color 0.3s; - transition: color 0.3s; - &:hover{ - color: #B0A0AA; - } -} - -.article-inner{ - position: relative; - margin-bottom: 20px; -} -.article-header{ - border-left: 5px solid #4d4d4d; - padding: 15px 0px 15px 25px; -} - -.article-info.info-on-right{ - margin: 10px 0 0 0; - float: right; -} -.article-info-index.article-info{ - padding-top: 20px; - margin: 30px 30px 0 30px; - border-top: 1px solid #ddd; -} -.article-info-post.article-info{ - padding: 0; - border: none; - margin: -30px 0 20px 30px; -} -.article-entry{ - line-height: 1.8em; - padding-right: 30px; - padding-left: 30px; - p{ - margin-top: 10px; - } - p code,li code{ - padding: 1px 3px; - margin: 0 3px; - background: #ddd; - border: 1px solid #ccc; - font-family: Menlo,Monaco,"Andale Mono","lucida console","Courier New",monospace; - word-wrap: break-word; - font-size: 14px; - } - blockquote { - background: #ddd; - border-left: 5px solid #ccc; - padding: 15px 20px; - margin-top: 10px; - border-left: 5px solid #657b83; - background: #f6f6f6; - p{ - margin-top: 0; - } - } - em { - font-style: italic; - } - ul{ - li:before{ - content: ""; - width: 6px; - height: 6px; - border: 1px solid #999; - border-radius: 10px; - background: #aaa; - display: inline-block; - margin-right: 10px; - float: left; - margin-top: 12px; - } - } - ul,ol{ - font-size: 14px; - margin: 10px 0px; - } - li{ - ul,ol{ - margin-left: 30px; - li:before{ - content: ""; - background: #dedede; - } - } - } - h1{ - margin-top: 30px; - } - h2{ - margin-top: 20px; - font-weight: 300; - color: #574C4C; - padding-bottom: 5px; - border-bottom: 1px solid #ddd; - } - h3,h4,h5,h6{ - margin-top: 20px; - font-weight: 300; - color: #574C4C; - padding-bottom: 5px; - border-bottom: 1px solid #ddd; - } - video{ - max-width: 100%; - } - strong { - font-weight: bold; - } - .caption{ - display: block; - font-size: 0.8em; - color: #aaa; - } - hr{ - height: 0; - margin-top: 20px; - margin-bottom: 20px; - border-left: 0; - border-right: 0; - border-top: 1px solid #DDD; - border-bottom: 1px solid #FFF; - } - pre { - font-size: 1 / 0.9em; - line-height: 1.5; - margin-top: 10px; - padding: 5px 15px; - overflow-x: auto; - color: #657b83; - font-size: 10px; - border: 1px solid #ccc; - text-shadow: 0 1px #444; - font-family: Menlo,Monaco,"Andale Mono","lucida console","Courier New",monospace; - code{ - font-size: 14px; - } - } - table{ - width:100%; - border: 1px solid #dedede; - margin: 15px 0; - border-collapse:collapse; - tr,td{ - height:35px; - } - thead{ - tr { - background: #f8f8f8; - } - } - tbody{ - tr:hover{ - background: #efefef; - } - } - td,th{ - border: 1px solid #dedede; - padding: 0 10px; - } - } - figure{ - table { - border: none; - width: auto; - margin: 0; - tbody{ - tr:hover{ - background: none; - } - } - } - } -} - -.article-meta{ - width: 150px; - font-size: 14; - text-align: right; - position: absolute; - right: 0; - top: 23px; - text-align: center; - z-index: 1; - time{ - color: #aaa; - } -} - -#article-nav{ - margin: 80px 0 30px 0; - padding-bottom: 10px; - .article-nav-link-wrap{ - margin: 0px 30px 0px 30px; - font-size: 14px; - color: #333; - .article-nav-title{ - display: inline-block; - font-size: 12px; - color: #aaa; - transition: color 0.3s; - } - strong{ - background: #ddd; - color: #fff; - border-radius: 100%; - width: 15px; - height: 15px; - display: inline-block; - text-align: center; - transition: background 0.3s; - } - &:hover{ - strong{ - background: #4d4d4d; - } - .article-nav-title{ - color: #4d4d4d; - } - } - } - #article-nav-older{ - float: right; - } -} diff --git a/themes/yilia/source-src/css/mobile.scss b/themes/yilia/source-src/css/mobile.scss index 3b4a4ac..da6026e 100644 --- a/themes/yilia/source-src/css/mobile.scss +++ b/themes/yilia/source-src/css/mobile.scss @@ -220,6 +220,9 @@ html, body, #container { display: block; } } +#comments { + margin: 0; +} .share{ padding: 3px 10px; } diff --git a/themes/yilia/source-src/lib/Valine.min.js b/themes/yilia/source-src/lib/Valine.min.js index 5de06b8..65d0ba6 100644 --- a/themes/yilia/source-src/lib/Valine.min.js +++ b/themes/yilia/source-src/lib/Valine.min.js @@ -3,4 +3,4 @@ * (c) 2017-2018 xCss * Released under the GPL-2.0 License. */ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Valine=t():e.Valine=t()}(this,function(){return function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=14)}([function(e,t,n){"use strict";function r(e){var t=this;return!!e&&t.init(e),t}function i(e){return new r(e)}var o=n(3),a=n(5),s=n(6),l=n(4),c=n(2),u=n(1);s.setOptions({renderer:new s.Renderer,gfm:!0,tables:!0,breaks:!0,pedantic:!0,sanitize:!0,smartLists:!0,smartypants:!0});var d={comment:"",nick:"Anonymous",mail:"",link:"",ua:navigator.userAgent,url:""},p={"zh-cn":{head:{nick:"昵称",mail:"邮箱",link:"网址(http://)"},tips:{comments:"评论",sofa:"还没有评论哦,快来抢沙发吧~",busy:"还在提交中,请稍候...",again:"这么简单也能错,也是没谁了."},ctrl:{reply:"回复",ok:"好的",sure:"确认",cancel:"取消",confirm:"确认",continue:"继续",more:"查看更多...",try:"再试试?"},error:{99:"初始化失败,请检查init中的`el`元素.",100:"初始化失败,请检查你的AppId和AppKey.",401:"未经授权的操作,请检查你的AppId和AppKey.",403:"访问被api域名白名单拒绝,请检查你的安全域名设置."},timeago:{seconds:"秒前",minutes:"分钟前",hours:"小时前",days:"天前",now:"刚刚"}},en:{head:{nick:"NickName",mail:"E-Mail",link:"Website(http://)"},tips:{comments:"Comments",sofa:"No comments yet.",busy:"Submit is busy, please wait...",again:"Sorry, this is a wrong calculation."},ctrl:{reply:"Reply",ok:"Ok",sure:"Sure",cancel:"Cancel",confirm:"Confirm",continue:"Continue",more:"Load More...",try:"Once More?"},error:{99:"Initialization failed, Please check the `el` element in the init method.",100:"Initialization failed, Please check your appId and appKey.",401:"Unauthorized operation, Please check your appId and appKey.",403:"Access denied by api domain white list, Please check your security domain."},timeago:{seconds:"seconds ago",minutes:"minutes ago",hours:"hours ago",days:"days ago",now:"just now"}}},h={cdn:"https://gravatar.loli.net/avatar/",ds:["mm","identicon","monsterid","wavatar","retro",""],params:"",hide:!1},f=["nick","mail","link"],v=Storage&&localStorage&&localStorage instanceof Storage&&localStorage,g=location.pathname.replace(/index\.(html|htm)$/,"");r.prototype.init=function(e){var t=this;try{var n=e.lang||"",r=e.langMode||"",i=h.ds,a=e.avatar||"mm",s=e.avatar_cdn||"";n&&r&&t.installLocale(n,r),t.locale=t.locale||p[e.lang||"zh-cn"],t.notify=e.notify||!1,t.verify=e.verify||!1,h.params="?d="+(i.indexOf(a)>-1?a:"mm"),h.hide="hide"===a,h.cdn=!!s&&s||h.cdn,g=e.path||g,e.guest_info=(e.guest_info||f).filter(function(e){return f.indexOf(e)>-1});var l=Number(e.pageSize||10);if(e.pageSize=isNaN(l)?10:l<1?10:l,!AV)return void setTimeout(function(){t.init(e)},20);var c=e.app_id||e.appId,u=e.app_key||e.appKey,d=(e.region||"cn").toLowerCase(),v=["cn","us"];if(d=v.indexOf(d)>-1?d:v[0],!c||!u)throw 99;AV.applicationId=null,AV.init({appId:c,appKey:u,region:d});for(var m=document.querySelectorAll(".valine-comment-count"),b=0,x=m.length;b'+n+""),console)},r.prototype.installLocale=function(e,t){var n=this;return t=t||{},p[e]=JSON.stringify(Object.keys(p["zh-cn"]))==JSON.stringify(Object.keys(t))?t:void 0,n.locale=p[e]||p["zh-cn"],n},r.prototype.setPath=function(e){return g=e||g,this},r.prototype.bind=function(e){var t=this,n=t.el.querySelector(".vemojis"),r=t.el.querySelector(".vemoji-btn"),i=t.el.querySelector(".vpreview"),p=function(e){var t=e.value||"";t=u.parse(t),e.value=t;var n=s(t);d.comment=n,i.innerHTML=n},f=u.data;for(var b in f)f.hasOwnProperty(b)&&function(e,t){var r=document.createElement("i");r.setAttribute("name",e),r.setAttribute("title",e),r.innerHTML=t,n.appendChild(r),o.Event.on("click",r,function(e){var n=document.querySelector(".veditor");A(n,t),p(n)})}(b,f[b]);o.Event.on("click",r,function(e){r.getAttribute("v")?(r.removeAttribute("v"),n.setAttribute("style","display:none")):(r.setAttribute("v",1),O.removeAttribute("v"),i.setAttribute("style","display:none"),n.setAttribute("style","display:block"))});for(var x=e.guest_info,y={},k={veditor:"comment"},w=0,S=x.length;w
"+s(e.message+"",!0)+"";throw e}}var f={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:d,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *#* *(?:\n+|$)/,nptable:d,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( *)(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:/^ *(?:comment *(?:\n|\s*$)|closed *(?:\n{2,}|\s*$)|closing *(?:\n{2,}|\s*$))/,def:/^ {0,3}\[(label)\]: *\n? *([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,table:d,lheading:/^([^\n]+)\n *(=|-){2,} *(?:\n+|$)/,paragraph:/^([^\n]+(?:\n?(?!hr|heading|lheading| {0,3}>|tag)[^\n]+)+)/,text:/^[^\n]+/};f._label=/(?:\\[\[\]]|[^\[\]])+/,f._title=/(?:"(?:\\"|[^"]|"[^"\n]*")*"|'\n?(?:[^'\n]+\n?)*'|\([^()]*\))/,f.def=c(f.def).replace("label",f._label).replace("title",f._title).getRegex(),f.bullet=/(?:[*+-]|\d+\.)/,f.item=/^( *)(bull) [^\n]*(?:\n(?!\1bull )[^\n]*)*/,f.item=c(f.item,"gm").replace(/bull/g,f.bullet).getRegex(),f.list=c(f.list).replace(/bull/g,f.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+f.def.source+")").getRegex(),f._tag="(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b",f.html=c(f.html).replace("comment",//).replace("closed",/<(tag)[\s\S]+?<\/\1>/).replace("closing",/
'+(n?e:s(e,!0))+"\n\n":""+(n?e:s(e,!0))+"\n"},i.prototype.blockquote=function(e){return"\n"+e+"\n"},i.prototype.html=function(e){return e},i.prototype.heading=function(e,t,n){return"
"+e+"
\n"},i.prototype.table=function(e,t){return""+e+""},i.prototype.br=function(){return this.options.xhtml?"'+n+""),console)},r.prototype.installLocale=function(e,t){var n=this;return t=t||{},p[e]=JSON.stringify(Object.keys(p["zh-cn"]))==JSON.stringify(Object.keys(t))?t:void 0,n.locale=p[e]||p["zh-cn"],n},r.prototype.setPath=function(e){return g=e||g,this},r.prototype.bind=function(e){var t=this,n=t.el.querySelector(".vemojis"),r=t.el.querySelector(".vemoji-btn"),i=t.el.querySelector(".vpreview"),p=function(e){var t=e.value||"";t=u.parse(t),e.value=t;var n=s(t);d.comment=n,i.innerHTML=n},f=u.data;for(var b in f)f.hasOwnProperty(b)&&function(e,t){var r=document.createElement("i");r.setAttribute("name",e),r.setAttribute("title",e),r.innerHTML=t,n.appendChild(r),o.Event.on("click",r,function(e){var n=document.querySelector(".veditor");A(n,t),p(n)})}(b,f[b]);o.Event.on("click",r,function(e){r.getAttribute("v")?(r.removeAttribute("v"),n.setAttribute("style","display:none")):(r.setAttribute("v",1),O.removeAttribute("v"),i.setAttribute("style","display:none"),n.setAttribute("style","display:block"))});for(var x=e.guest_info,y={},k={veditor:"comment"},w=0,S=x.length;w
"+s(e.message+"",!0)+"";throw e}}var f={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:d,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *#* *(?:\n+|$)/,nptable:d,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( *)(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:/^ *(?:comment *(?:\n|\s*$)|closed *(?:\n{2,}|\s*$)|closing *(?:\n{2,}|\s*$))/,def:/^ {0,3}\[(label)\]: *\n? *([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,table:d,lheading:/^([^\n]+)\n *(=|-){2,} *(?:\n+|$)/,paragraph:/^([^\n]+(?:\n?(?!hr|heading|lheading| {0,3}>|tag)[^\n]+)+)/,text:/^[^\n]+/};f._label=/(?:\\[\[\]]|[^\[\]])+/,f._title=/(?:"(?:\\"|[^"]|"[^"\n]*")*"|'\n?(?:[^'\n]+\n?)*'|\([^()]*\))/,f.def=c(f.def).replace("label",f._label).replace("title",f._title).getRegex(),f.bullet=/(?:[*+-]|\d+\.)/,f.item=/^( *)(bull) [^\n]*(?:\n(?!\1bull )[^\n]*)*/,f.item=c(f.item,"gm").replace(/bull/g,f.bullet).getRegex(),f.list=c(f.list).replace(/bull/g,f.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+f.def.source+")").getRegex(),f._tag="(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b",f.html=c(f.html).replace("comment",//).replace("closed",/<(tag)[\s\S]+?<\/\1>/).replace("closing",/
'+(n?e:s(e,!0))+"\n\n":""+(n?e:s(e,!0))+"\n"},i.prototype.blockquote=function(e){return"\n"+e+"\n"},i.prototype.html=function(e){return e},i.prototype.heading=function(e,t,n){return"
"+e+"
\n"},i.prototype.table=function(e,t){return""+e+""},i.prototype.br=function(){return this.options.xhtml?"'+n+""),console)},r.prototype.installLocale=function(e,t){var n=this;return t=t||{},p[e]=(0,l.default)((0,u.default)(p["zh-cn"]))==(0,l.default)((0,u.default)(t))?t:void 0,n.locale=p[e]||p["zh-cn"],n},r.prototype.setPath=function(e){return m=e||m,this},r.prototype.bind=function(e){var t=this,n=t.el.querySelector(".vemojis"),r=t.el.querySelector(".vemoji-btn"),i=t.el.querySelector(".vpreview"),u=function(e){var t=e.value||"";t=f.parse(t),e.value=t;var n=a(t);d.comment=n,i.innerHTML=n},p=f.data;for(var _ in p)p.hasOwnProperty(_)&&function(e,t){var r=document.createElement("i");r.setAttribute("name",e),r.setAttribute("title",e),r.innerHTML=t,n.appendChild(r),o.Event.on("click",r,function(e){var n=document.querySelector(".veditor");E(n,t),u(n)})}(_,p[_]);o.Event.on("click",r,function(e){r.getAttribute("v")?(r.removeAttribute("v"),n.setAttribute("style","display:none")):(r.setAttribute("v",1),k.removeAttribute("v"),i.setAttribute("style","display:none"),n.setAttribute("style","display:block"))});for(var b=e.guest_info,w={},O={veditor:"comment"},x=0,S=b.length;x
"+a(e.message+"",!0)+"";throw e}}var p={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:h,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *#* *(?:\n+|$)/,nptable:h,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( *)(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:/^ *(?:comment *(?:\n|\s*$)|closed *(?:\n{2,}|\s*$)|closing *(?:\n{2,}|\s*$))/,def:/^ {0,3}\[(label)\]: *\n? *([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,table:h,lheading:/^([^\n]+)\n *(=|-){2,} *(?:\n+|$)/,paragraph:/^([^\n]+(?:\n?(?!hr|heading|lheading| {0,3}>|tag)[^\n]+)+)/,text:/^[^\n]+/};p._label=/(?:\\[\[\]]|[^\[\]])+/,p._title=/(?:"(?:\\"|[^"]|"[^"\n]*")*"|'\n?(?:[^'\n]+\n?)*'|\([^()]*\))/,p.def=c(p.def).replace("label",p._label).replace("title",p._title).getRegex(),p.bullet=/(?:[*+-]|\d+\.)/,p.item=/^( *)(bull) [^\n]*(?:\n(?!\1bull )[^\n]*)*/,p.item=c(p.item,"gm").replace(/bull/g,p.bullet).getRegex(),p.list=c(p.list).replace(/bull/g,p.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+p.def.source+")").getRegex(),p._tag="(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b",p.html=c(p.html).replace("comment",//).replace("closed",/<(tag)[\s\S]+?<\/\1>/).replace("closing",/
'+(n?e:a(e,!0))+"\n\n":""+(n?e:a(e,!0))+"\n"},i.prototype.blockquote=function(e){return"\n"+e+"\n"},i.prototype.html=function(e){return e},i.prototype.heading=function(e,t,n){return"
"+e+"
\n"},i.prototype.table=function(e,t){return""+e+""},i.prototype.br=function(){return this.options.xhtml?"'+n+""),console)},r.prototype.installLocale=function(e,t){var n=this;return t=t||{},p[e]=(0,l.default)((0,u.default)(p["zh-cn"]))==(0,l.default)((0,u.default)(t))?t:void 0,n.locale=p[e]||p["zh-cn"],n},r.prototype.setPath=function(e){return m=e||m,this},r.prototype.bind=function(e){var t=this,n=t.el.querySelector(".vemojis"),r=t.el.querySelector(".vemoji-btn"),i=t.el.querySelector(".vpreview"),u=function(e){var t=e.value||"";t=f.parse(t),e.value=t;var n=a(t);d.comment=n,i.innerHTML=n},p=f.data;for(var _ in p)p.hasOwnProperty(_)&&function(e,t){var r=document.createElement("i");r.setAttribute("name",e),r.setAttribute("title",e),r.innerHTML=t,n.appendChild(r),o.Event.on("click",r,function(e){var n=document.querySelector(".veditor");E(n,t),u(n)})}(_,p[_]);o.Event.on("click",r,function(e){r.getAttribute("v")?(r.removeAttribute("v"),n.setAttribute("style","display:none")):(r.setAttribute("v",1),k.removeAttribute("v"),i.setAttribute("style","display:none"),n.setAttribute("style","display:block"))});for(var b=e.guest_info,w={},O={veditor:"comment"},x=0,S=b.length;x
"+a(e.message+"",!0)+"";throw e}}var p={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:h,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *#* *(?:\n+|$)/,nptable:h,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( *)(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:/^ *(?:comment *(?:\n|\s*$)|closed *(?:\n{2,}|\s*$)|closing *(?:\n{2,}|\s*$))/,def:/^ {0,3}\[(label)\]: *\n? *([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,table:h,lheading:/^([^\n]+)\n *(=|-){2,} *(?:\n+|$)/,paragraph:/^([^\n]+(?:\n?(?!hr|heading|lheading| {0,3}>|tag)[^\n]+)+)/,text:/^[^\n]+/};p._label=/(?:\\[\[\]]|[^\[\]])+/,p._title=/(?:"(?:\\"|[^"]|"[^"\n]*")*"|'\n?(?:[^'\n]+\n?)*'|\([^()]*\))/,p.def=c(p.def).replace("label",p._label).replace("title",p._title).getRegex(),p.bullet=/(?:[*+-]|\d+\.)/,p.item=/^( *)(bull) [^\n]*(?:\n(?!\1bull )[^\n]*)*/,p.item=c(p.item,"gm").replace(/bull/g,p.bullet).getRegex(),p.list=c(p.list).replace(/bull/g,p.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+p.def.source+")").getRegex(),p._tag="(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b",p.html=c(p.html).replace("comment",//).replace("closed",/<(tag)[\s\S]+?<\/\1>/).replace("closing",/
'+(n?e:a(e,!0))+"\n\n":""+(n?e:a(e,!0))+"\n"},i.prototype.blockquote=function(e){return"\n"+e+"\n"},i.prototype.html=function(e){return e},i.prototype.heading=function(e,t,n){return"
"+e+"
\n"},i.prototype.table=function(e,t){return""+e+""},i.prototype.br=function(){return this.options.xhtml?"