File tree Expand file tree Collapse file tree 3 files changed +29
-1
lines changed Expand file tree Collapse file tree 3 files changed +29
-1
lines changed Original file line number Diff line number Diff line change 4
4
5
5
整个博客,不仅仅由 yyblog 组成,还有 ybg-cli 脚手架,用于自动创建删除文章以及编译文章。
6
6
![ Minion] ( https://octodex.github.com/images/minion.png )
7
+ ``` javascript
8
+ console .log (" Hello, world!" );console .log (" Hello, world!" );
9
+ console .log (" Hello, world!" );console .log (" Hello, world!" );
10
+ console .log (" Hello, world!" );console .log (" Hello, world!" );
11
+ ```
7
12
8
13
- ** yyblog**
9
14
Original file line number Diff line number Diff line change @@ -91,7 +91,17 @@ export const Markdown: FC<MdProps & MarkdownToJSX.Options & PropsWithChildren &
91
91
) ;
92
92
} ,
93
93
} ,
94
-
94
+ codeFenced : {
95
+ parse ( capture ) {
96
+ return {
97
+ content : capture [ 4 ] ,
98
+ lang : capture [ 2 ] || undefined ,
99
+ type : 'codeBlock' ,
100
+
101
+ attrs : capture [ 3 ] ,
102
+ } ;
103
+ } ,
104
+ } ,
95
105
...extendsRules ,
96
106
...renderers ,
97
107
} ,
Original file line number Diff line number Diff line change 131
131
--highlighted : 1 ;
132
132
}
133
133
}
134
+
135
+ .prose : where (code ): not (: where ([class ~= "not-prose" ], [class ~= "not-prose" ] * )) {
136
+ opacity : 0.7 ;
137
+ font-weight : 600 !important ;
138
+ font-size : 0.875em !important ;
139
+ }
140
+
141
+ .prose : where (code ): not (: where ([class ~= "not-prose" ] * , pre * )) {
142
+ padding : 1px 8px ;
143
+ border-radius : .0625rem ;
144
+ color : var (--accent-color ) !important ;
145
+ }
146
+
You can’t perform that action at this time.
0 commit comments