mirror of
https://github.com/SableClient/Sable.git
synced 2026-11-21 01:21:18 -08:00
maybe fix katex rendering
This commit is contained in:
1 parent
67871c1210
commit
7935df05ae
4 files changed
+4
-4
No files matched your search
@@ -125,7 +125,7 @@ function KatexRenderer({
|
||||
|
||||
useEffect(() => {
|
||||
let mounted = true;
|
||||
void Promise.all([import('katex'), import('katex/dist/katex.min.css')]).then(([katex]) => {
|
||||
void import('katex').then((katex) => {
|
||||
if (mounted) {
|
||||
setHtml(katex.default.renderToString(math, { throwOnError: false, displayMode }));
|
||||
}
|
||||
|
||||
@@ -115,8 +115,7 @@ describe('fetchMediaBlob', () => {
|
||||
);
|
||||
|
||||
it('selects the JSON-encoded active session instead of falling back to the first account', async () => {
|
||||
const { getActiveMediaSession, getCurrentMediaSessionScope } =
|
||||
await import('./mediaTransport');
|
||||
const { getActiveMediaSession, getCurrentMediaSessionScope } = await import('./mediaTransport');
|
||||
|
||||
localStorage.setItem(
|
||||
'matrixSessions',
|
||||
|
||||
@@ -7,6 +7,7 @@ import '@fontsource/space-mono/400.css';
|
||||
import '@fontsource/space-mono/700.css';
|
||||
import '@fontsource/space-mono/400-italic.css';
|
||||
import '@fontsource/space-mono/700-italic.css';
|
||||
import 'katex/dist/katex.min.css';
|
||||
import 'folds/dist/style.css';
|
||||
import { configClass, varsClass } from 'folds';
|
||||
import App from './app/pages/App';
|
||||
|
||||
+1
-1
@@ -143,7 +143,7 @@ export default defineConfig(({ command }) => {
|
||||
clearScreen: false,
|
||||
appType: 'spa',
|
||||
publicDir: false,
|
||||
base: buildConfig.base,
|
||||
base: command === 'build' && isTauriBuild ? './' : buildConfig.base,
|
||||
envPrefix: ['VITE_', 'TAURI_ENV_*'],
|
||||
define: {
|
||||
APP_VERSION: JSON.stringify(appVersion),
|
||||
|
||||
Reference in new issue
Block a user