Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
dmca-glasgow committed Oct 28, 2024
1 parent c734008 commit 96ccc08
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 9 deletions.
6 changes: 0 additions & 6 deletions packages/export/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,6 @@ export async function createRuntimeHtml(
<meta charset="utf-8">
<title>${frontmatter.docTitle}</title>
<meta content="width=device-width, initial-scale=1" name="viewport">
<!--
<script
async
src="https://cdn.jsdelivr.net/npm/mathjax-${bundle.font}[email protected]/tex-mml-chtml-mathjax-${bundle.font}.js">
</script>
-->
</head>
<body>
<textarea id="article" style="display: none;">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ const FiraFont = new MathJaxFiraFont();
const fontPreloads = ['double-struck'];

fontPreloads.forEach((name) => {
// @ts-expect-error
MathJaxTermesFont.dynamicFiles[name].setup(TermesFont);
// @ts-expect-error
MathJaxFiraFont.dynamicFiles[name].setup(FiraFont);
});

Expand Down
1 change: 1 addition & 0 deletions packages/runtime/src/styles/index.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
:root {
// https://modernfontstacks.com: Geometric Humanist
font-family: Avenir, Montserrat, Corbel, 'URW Gothic', source-sans-pro,
sans-serif;
font-size: clamp(1.5vw, 18px, 26px);
Expand Down
3 changes: 0 additions & 3 deletions packages/runtime/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ import { fileURLToPath } from 'node:url';
import { defineConfig } from 'vite';
import svgr from 'vite-plugin-svgr';

// const mathjaxPath =
// '../../node_modules/mathjax-fira-font/tex-mml-chtml-mathjax-fira.js';

// https://vitejs.dev/config/
export default defineConfig(async () => ({
plugins: [
Expand Down

0 comments on commit 96ccc08

Please sign in to comment.