diff --git a/src/client/theme-default/styles/base.css b/src/client/theme-default/styles/base.css index 0a5690f9..8041b6bc 100644 --- a/src/client/theme-default/styles/base.css +++ b/src/client/theme-default/styles/base.css @@ -242,10 +242,7 @@ vite-error-overlay { } mjx-container { - display: inline-block; - margin: auto 2px -2px; overflow-x: auto; - overflow-y: clip; } mjx-container > svg { diff --git a/src/node/plugin.ts b/src/node/plugin.ts index 10bc5926..c91d9357 100644 --- a/src/node/plugin.ts +++ b/src/node/plugin.ts @@ -87,7 +87,7 @@ export async function createVitePressPlugin( if (markdown?.math) { isCustomElement = (tag) => { - if (['mjx-container', 'mjx-assistive-mml'].includes(tag)) { + if (tag.startsWith('mjx-')) { return true } return userCustomElementChecker?.(tag) ?? false