website: update create.mjs
This commit is contained in:
parent
de8a0bc0e9
commit
14767b02da
@ -25,6 +25,7 @@ export function create(str = '', options = {}) {
|
|||||||
description = (description[0] || '')
|
description = (description[0] || '')
|
||||||
.replace(/^\n[=\n]+/, '')
|
.replace(/^\n[=\n]+/, '')
|
||||||
.replace(/\[([\s\S]*?)?\]\(([\s\S]*?)?\)/g, '$1')
|
.replace(/\[([\s\S]*?)?\]\(([\s\S]*?)?\)/g, '$1')
|
||||||
|
.replace(/<!--([\s\S]*?)-->/gi, '')
|
||||||
.replace(/\n/, '');
|
.replace(/\n/, '');
|
||||||
const subTitle = options.filename && !options.isHome ? `${options.filename} cheatsheet & ` : '';
|
const subTitle = options.filename && !options.isHome ? `${options.filename} cheatsheet & ` : '';
|
||||||
/** 用于搜索数据 */
|
/** 用于搜索数据 */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user