Skip to content

armgit / memos

Public Imported from GitHub
0

Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.

chore: fix inline latext renderer

Stevenb1128fc786fb
diff --git a/web/src/labs/marked/parser/InlineLatex.tsx b/web/src/labs/marked/parser/InlineLatex.tsx
index f5a754008..b7856f723 100644
--- a/web/src/labs/marked/parser/InlineLatex.tsx
+++ b/web/src/labs/marked/parser/InlineLatex.tsx
@@ -13,9 +13,9 @@ const inlineRenderer = (rawStr: string) => {
latexCode = matchResult[2];
}
return (
- <div className="max-w-full overflow-x-auto">
+ <span className="max-w-full overflow-x-auto">
<TeX key={latexCode}>{latexCode}</TeX>
- </div>
+ </span>
);
}
return rawStr;