parent
86137bd37f
commit
65076adf0d
7 changed files with 12 additions and 83 deletions
File diff suppressed because one or more lines are too long
@ -0,0 +1,6 @@ |
||||
|
||||
/* 修改文章右侧目录字体颜色*/ |
||||
.tocify-item.active { |
||||
color: #7266ba; |
||||
font-weight: 700 |
||||
} |
@ -0,0 +1 @@ |
||||
function editormdSupport(){$("#post-content .entry-content").addClass("editormd-html-preview");$("pre code").each(function(){var f=$(this).attr("class");var a=$(this).html().split("\n");var e='<ol class="linenums">';var c=0;for(var b=0;b<a.length;b++){e+='<li class="L'+c+'"><code class="'+f+'">'+a[b]+"</code></li>";if(++c>=10){c=0}}e+="</ol>";var d=$(this).parent("pre");d.addClass("prettyprint linenums prettyprinted");d.html(e)});$("pre ol.linenums").each(function(){var a=$(this).find("code");var b=0;$(a).each(function(){var c=$(this).width();if(c>b){b=c}});$(this).width(b)})} |
File diff suppressed because one or more lines are too long
Loading…
Reference in new issue