mirror of
https://github.com/doocs/md.git
synced 2024-10-31 00:07:50 +08:00
feat: add icon fonts
添加图标文件,修复代码注释问题
This commit is contained in:
parent
de630f9cb2
commit
300681bc3d
@ -128,13 +128,13 @@ let WxRenderer = function (opts) {
|
|||||||
let numbers = [];
|
let numbers = [];
|
||||||
for (let i = 0; i < lines.length; i++) {
|
for (let i = 0; i < lines.length; i++) {
|
||||||
const line = lines[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>')
|
numbers.push('<li></li>')
|
||||||
}
|
}
|
||||||
let lang = infoString || '';
|
let lang = infoString || '';
|
||||||
return `<section class="code-snippet__fix code-snippet__js">`
|
return `<section class="code-snippet__fix code-snippet__js">`
|
||||||
+ `<ul class="code-snippet__line-index code-snippet__js">${ numbers.join('') }</ul>`
|
+ `<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('')
|
+ codeLines.join('')
|
||||||
+ `</pre></section>`
|
+ `</pre></section>`
|
||||||
};
|
};
|
||||||
|
BIN
libs/css/fonts/element-icons.ttf
Normal file
BIN
libs/css/fonts/element-icons.ttf
Normal file
Binary file not shown.
BIN
libs/css/fonts/element-icons.woff
Normal file
BIN
libs/css/fonts/element-icons.woff
Normal file
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
Loading…
Reference in New Issue
Block a user