From b9ef224755023eb8e5b1e8cb4f79e8cd66ad53c0 Mon Sep 17 00:00:00 2001 From: Divyansh Singh <40380293+brc-dd@users.noreply.github.com> Date: Mon, 3 Jun 2024 21:46:16 +0530 Subject: [PATCH] fix alignment --- src/client/theme-default/styles/base.css | 3 --- src/node/plugin.ts | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) 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