mirror of
https://github.com/jaywcjlove/reference.git
synced 2025-06-18 21:21:21 +08:00
doc: Update react.md
cheatsheet.
This commit is contained in:
@ -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: [
|
||||
|
@ -763,6 +763,19 @@ body:not(.home) .h2wrap > h2 a::after {
|
||||
.token.italic { font-style: italic; }
|
||||
.token.entity { cursor: help; }
|
||||
|
||||
.highlight-line {
|
||||
background-color: var(--color-neutral-muted);
|
||||
display: block;
|
||||
}
|
||||
.code-line.line-number::before {
|
||||
display: inline-block;
|
||||
width: 1rem;
|
||||
text-align: right;
|
||||
margin-right: 16px;
|
||||
margin-left: -8px;
|
||||
color: var(--color-fg-subtle);
|
||||
content: attr(line);
|
||||
}
|
||||
/* 代码高亮 End */
|
||||
|
||||
.footer-wrap {
|
||||
|
Reference in New Issue
Block a user