feat: add icon fonts

添加图标文件,修复代码注释问题
This commit is contained in:
yanglbme 2019-11-06 19:57:53 +08:00
parent de630f9cb2
commit 300681bc3d
5 changed files with 4 additions and 4 deletions

View File

@ -128,13 +128,13 @@ let WxRenderer = function (opts) {
let numbers = [];
for (let i = 0; i < lines.length; i++) {
const line = lines[i];
codeLines.push(`<code><span class="code-snippet_outer">${ (line || '<br>') }</span></code>`);
codeLines.push(`<code class="prettyprint"><span class="code-snippet_outer">${ (line || '<br>') }</span></code>`);
numbers.push('<li></li>')
}
let lang = infoString || '';
return `<section class="code-snippet__fix code-snippet__js">`
+ `<ul class="code-snippet__line-index code-snippet__js">${ numbers.join('') }</ul>`
+ `<pre class="code-snippet__js prettyprint" data-lang="${ lang }">`
+ `<pre class="code-snippet__js" data-lang="${ lang }">`
+ codeLines.join('')
+ `</pre></section>`
};

Binary file not shown.

Binary file not shown.

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long