File tree 3 files changed +1
-98
lines changed
3 files changed +1
-98
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -60,13 +60,6 @@ export const linkPlugin = (
60
60
hrefAttr [ 1 ] = `${ base } ${ hrefAttr [ 1 ] } ` . replace ( / \/ + / g, '/' )
61
61
}
62
62
}
63
-
64
- // encode vite-specific replace strings in case they appear in URLs
65
- // this also excludes them from build-time replacements (which injects
66
- // <wbr/> and will break URLs)
67
- hrefAttr [ 1 ] = hrefAttr [ 1 ]
68
- . replace ( / \b i m p o r t \. m e t a / g, 'import%2Emeta' )
69
- . replace ( / \b p r o c e s s \. e n v / g, 'process%2Eenv' )
70
63
}
71
64
return self . renderToken ( tokens , idx , options )
72
65
}
Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ import {
16
16
resolveAliases
17
17
} from './alias'
18
18
import { resolvePages , resolveUserConfig , type SiteConfig } from './config'
19
- import { mathjaxElements } from './markdown/math'
20
19
import {
21
20
clearCache ,
22
21
createMarkdownToVueRenderFn ,
@@ -88,7 +87,7 @@ export async function createVitePressPlugin(
88
87
89
88
if ( markdown ?. math ) {
90
89
isCustomElement = ( tag ) => {
91
- if ( mathjaxElements . includes ( tag ) ) {
90
+ if ( [ 'mjx-container' , 'mjx-assistive-mml' ] . includes ( tag ) ) {
92
91
return true
93
92
}
94
93
return userCustomElementChecker ?.( tag ) ?? false
You can’t perform that action at this time.
0 commit comments