File tree Expand file tree Collapse file tree 5 files changed +6
-4
lines changed Expand file tree Collapse file tree 5 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 11{
22 "$schema" : " https://json.schemastore.org/package.json" ,
33 "name" : " markdown-react-code-preview-loader" ,
4- "version" : " 2.1.7 " ,
4+ "version" : " 2.1.8 " ,
55 "description" : " Index react example text in markdown, converted to React components." ,
66 "homepage" : " https://kktjs.github.io/markdown-react-code-preview-loader" ,
77 "author" : " SunLxy <1011771396@qq.com>" ,
Original file line number Diff line number Diff line change 11{
2- "version" : " 2.1.7 " ,
2+ "version" : " 2.1.8 " ,
33 "packages" : [" website" , " core" ]
44}
Original file line number Diff line number Diff line change 11{
22 "$schema" : " https://json.schemastore.org/package.json" ,
33 "name" : " website" ,
4- "version" : " 2.1.7 " ,
4+ "version" : " 2.1.8 " ,
55 "description" : " Simple React package development project example template." ,
66 "private" : true ,
77 "scripts" : {
3333 "@types/react" : " 18.0.8" ,
3434 "@types/react-dom" : " 18.0.3" ,
3535 "kkt" : " ~7.4.17" ,
36- "markdown-react-code-preview-loader" : " 2.1.7 "
36+ "markdown-react-code-preview-loader" : " 2.1.8 "
3737 },
3838 "eslintConfig" : {
3939 "extends" : [
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ export function HomePage() {
1111 < Loader style = { { width : '100%' } } loading = { loading } tip = "loading..." >
1212 < MarkdownPreview
1313 source = { mdData . source }
14+ style = { { background : 'transparent' } }
1415 rehypeRewrite = { ( node : Root | RootContent , index : number , parent : Root | Element ) => {
1516 if ( node . type === 'element' && parent && parent . type === 'root' && / h ( 1 | 2 | 3 | 4 | 5 | 6 ) / . test ( node . tagName ) ) {
1617 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() {
1111 < Loader style = { { width : '100%' } } loading = { loading } tip = "loading..." >
1212 < MarkdownPreview
1313 disableCopy = { true }
14+ style = { { background : 'transparent' } }
1415 source = { mdData . source }
1516 rehypeRewrite = { ( node : Root | RootContent , index : number , parent : Root | Element ) => {
1617 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