File tree Expand file tree Collapse file tree 3 files changed +1
-98
lines changed Expand file tree Collapse file tree 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 = (
6060 hrefAttr [ 1 ] = `${ base } ${ hrefAttr [ 1 ] } ` . replace ( / \/ + / g, '/' )
6161 }
6262 }
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' )
7063 }
7164 return self . renderToken ( tokens , idx , options )
7265 }
Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ import {
1616 resolveAliases
1717} from './alias'
1818import { resolvePages , resolveUserConfig , type SiteConfig } from './config'
19- import { mathjaxElements } from './markdown/math'
2019import {
2120 clearCache ,
2221 createMarkdownToVueRenderFn ,
@@ -88,7 +87,7 @@ export async function createVitePressPlugin(
8887
8988 if ( markdown ?. math ) {
9089 isCustomElement = ( tag ) => {
91- if ( mathjaxElements . includes ( tag ) ) {
90+ if ( [ 'mjx-container' , 'mjx-assistive-mml' ] . includes ( tag ) ) {
9291 return true
9392 }
9493 return userCustomElementChecker ?.( tag ) ?? false
You can’t perform that action at this time.
0 commit comments