File tree 5 files changed +6
-4
lines changed
5 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"$schema" : " https://json.schemastore.org/package.json" ,
3
3
"name" : " markdown-react-code-preview-loader" ,
4
- "version" : " 2.1.7 " ,
4
+ "version" : " 2.1.8 " ,
5
5
"description" : " Index react example text in markdown, converted to React components." ,
6
6
"homepage" : " https://kktjs.github.io/markdown-react-code-preview-loader" ,
7
7
"author" : " SunLxy <1011771396@qq.com>" ,
Original file line number Diff line number Diff line change 1
1
{
2
- "version" : " 2.1.7 " ,
2
+ "version" : " 2.1.8 " ,
3
3
"packages" : [" website" , " core" ]
4
4
}
Original file line number Diff line number Diff line change 1
1
{
2
2
"$schema" : " https://json.schemastore.org/package.json" ,
3
3
"name" : " website" ,
4
- "version" : " 2.1.7 " ,
4
+ "version" : " 2.1.8 " ,
5
5
"description" : " Simple React package development project example template." ,
6
6
"private" : true ,
7
7
"scripts" : {
33
33
"@types/react" : " 18.0.8" ,
34
34
"@types/react-dom" : " 18.0.3" ,
35
35
"kkt" : " ~7.4.17" ,
36
- "markdown-react-code-preview-loader" : " 2.1.7 "
36
+ "markdown-react-code-preview-loader" : " 2.1.8 "
37
37
},
38
38
"eslintConfig" : {
39
39
"extends" : [
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ export function HomePage() {
11
11
< Loader style = { { width : '100%' } } loading = { loading } tip = "loading..." >
12
12
< MarkdownPreview
13
13
source = { mdData . source }
14
+ style = { { background : 'transparent' } }
14
15
rehypeRewrite = { ( node : Root | RootContent , index : number , parent : Root | Element ) => {
15
16
if ( node . type === 'element' && parent && parent . type === 'root' && / h ( 1 | 2 | 3 | 4 | 5 | 6 ) / . test ( node . tagName ) ) {
16
17
const child = node . children && ( node . children [ 0 ] as Element ) ;
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ export function ExamplePage() {
11
11
< Loader style = { { width : '100%' } } loading = { loading } tip = "loading..." >
12
12
< MarkdownPreview
13
13
disableCopy = { true }
14
+ style = { { background : 'transparent' } }
14
15
source = { mdData . source }
15
16
rehypeRewrite = { ( node : Root | RootContent , index : number , parent : Root | Element ) => {
16
17
if ( node . type === 'element' && parent && parent . type === 'root' && / h ( 1 | 2 | 3 | 4 | 5 | 6 ) / . test ( node . tagName ) ) {
You can’t perform that action at this time.
0 commit comments