File tree Expand file tree Collapse file tree
packages/MdEditor/layouts/Content/composition Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -138,8 +138,8 @@ config({
138138 // instance: mermaid
139139 enableZoom : true
140140 }
141- }
142- // editorExtensionsAttrs
141+ } ,
142+ editorExtensionsAttrs
143143} ) ;
144144
145145import '~/styles/style.less' ;
Original file line number Diff line number Diff line change @@ -18,11 +18,12 @@ const useKatex = (props: ContentPreviewProps) => {
1818 return ;
1919 }
2020
21- const { editorExtensions } = globalConfig ;
21+ const { editorExtensions, editorExtensionsAttrs } = globalConfig ;
2222
2323 appendHandler (
2424 'script' ,
2525 {
26+ ...editorExtensionsAttrs . katex ?. js ,
2627 src : editorExtensions . katex ! . js ,
2728 id : CDN_IDS . katexjs ,
2829 onload ( ) {
@@ -33,6 +34,7 @@ const useKatex = (props: ContentPreviewProps) => {
3334 ) ;
3435
3536 appendHandler ( 'link' , {
37+ ...editorExtensionsAttrs . katex ?. css ,
3638 rel : 'stylesheet' ,
3739 href : editorExtensions . katex ! . css ,
3840 id : CDN_IDS . katexcss
You can’t perform that action at this time.
0 commit comments