标签:
解决方案:github issue
通过修改hexo源码来解决:
文件:lib/util/highlight.js
将91行的:
numbers += '<div class="line">' + (i + firstLine) + '</div>'; content += '<div class="line">' + item + '</div>';
改为:
numbers += '<span class="line">' + (i + firstLine) + '</span>\n'; content += '<span class="line">' + item + '</span>\n';
标签:
原文地址:http://blog.csdn.net/tobacco5648/article/details/42584653