fix alignment

pull/3932/head
Divyansh Singh 1 year ago
parent d87cdf0d59
commit b9ef224755

@ -242,10 +242,7 @@ vite-error-overlay {
} }
mjx-container { mjx-container {
display: inline-block;
margin: auto 2px -2px;
overflow-x: auto; overflow-x: auto;
overflow-y: clip;
} }
mjx-container > svg { mjx-container > svg {

@ -87,7 +87,7 @@ export async function createVitePressPlugin(
if (markdown?.math) { if (markdown?.math) {
isCustomElement = (tag) => { isCustomElement = (tag) => {
if (['mjx-container', 'mjx-assistive-mml'].includes(tag)) { if (tag.startsWith('mjx-')) {
return true return true
} }
return userCustomElementChecker?.(tag) ?? false return userCustomElementChecker?.(tag) ?? false

Loading…
Cancel
Save