doc: Update react.md cheatsheet.

This commit is contained in:
jaywcjlove
2022-10-05 14:46:37 +08:00
parent 41f520d306
commit a723b97df5
5 changed files with 58 additions and 15 deletions

View File

@ -20,6 +20,7 @@ export function create(str = '', options = {}) {
description = (description[0] || '').replace(/^\n[=\n]+/, '').replace(/\[([\s\S]*?)?\]\(([\s\S]*?)?\)/g, '$1').replace(/\n/, '');
const subTitle = options.filename && !options.isHome ? `${options.filename} cheatsheet & `: ''
const mdOptions = {
showLineNumbers: false,
hastNode: false,
remarkPlugins: [remarkGemoji],
rehypePlugins: [