File tree Expand file tree Collapse file tree 2 files changed +36
-2
lines changed Expand file tree Collapse file tree 2 files changed +36
-2
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ test : hello
3+ ---
4+
15``` ts
26export class Parser <const SType extends STypeBase > {
37 public p: ParseFunction <SType >;
@@ -31,3 +35,23 @@ export class Parser<const SType extends STypeBase> {
3135}
3236```
3337
38+ ``` css
39+ input :is([data-task = " 式" ], [data-task = " 式" ] > * ):checked ::after {
40+ content : " 式" ;
41+ color : transparent ;
42+ font-weight : 600 ;
43+ text-align : center ;
44+ -webkit-mask-image : linear-gradient (black , white );
45+ -webkit-mask-size : 100% ;
46+ -webkit-mask-clip : text ;
47+ }
48+ input :is([data-task = " 字" ], [data-task = " 字" ] > * ):checked ::after {
49+ content : " 字" ;
50+ color : transparent ;
51+ font-weight : 600 ;
52+ text-align : center ;
53+ -webkit-mask-image : linear-gradient (black , white );
54+ -webkit-mask-size : 100% ;
55+ -webkit-mask-clip : text ;
56+ }
57+ ```
Original file line number Diff line number Diff line change 22 --shiki-code-background : var (--code-background );
33 --shiki-code-normal : var (--code-normal );
44 --shiki-code-comment : var (--code-comment );
5- --shiki-code-function : var (--code-string );
5+ --shiki-code-function : var (--color-green );
66 --shiki-code-important : var (--code-important );
77 --shiki-code-keyword : var (--code-keyword );
88 --shiki-code-property : var (--code-property );
99 --shiki-code-punctuation : var (--code-punctuation );
10- --shiki-code-string : var (--code-function );
10+ --shiki-code-string : var (--color-yellow );
1111 --shiki-code-value : var (--code-value );
1212}
13+
14+ /* Disable ligatures in code blocks, as they can cause incorrect highlighting */
15+ pre .shiki {
16+ font-variant-ligatures : no-contextual;
17+ }
18+
19+ /* Hide the frontmatter code block in reading view again */
20+ div .markdown-preview-view > div > div .mod-header + div > div {
21+ display : none;
22+ }
You can’t perform that action at this time.
0 commit comments