Skip to content

Commit e5b8438

Browse files
committed
doc
1 parent 4720d24 commit e5b8438

File tree

8 files changed

+32
-37
lines changed

8 files changed

+32
-37
lines changed

docs/mathfield/09-integration.md

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -140,24 +140,21 @@ If you need to incorporate the library files directly into your project
140140
(for example if you are building a standalone application), you can obtain
141141
those files either from npm (see above) or from a CDN, for example [https://unpkg.com/mathlive/](https://unpkg.com/mathlive/)
142142

143-
The `/dist` folder inside the library contains the various flavors of libraries
144-
and assets required.
145-
146143
The `.mjs` suffix indicates ESM/module versions. The `.min` tag
147144
indicates a "minified" version. The ones without `.min` are more legible
148145
and may be useful for debugging.
149146

150147
| File | Usage |
151148
| :-------------------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
152-
| `dist/fonts` | The fonts required to render MathLive content |
153-
| `dist/sounds` | The optional sound files used when typing on the virtual keyboard |
154-
| `dist/mathlive.min.mjs` | MathLive library, as a JavScript module, minified |
155-
| `dist/mathlive.mjs` | MathLive library, as a JavScript module, not minified, useful for debugging |
156-
| `dist/mathlive.min.js` | MathLive library, as a UMD package if your environment doesn't support modules, minified |
157-
| `dist/mathlive.js` | MathLive library, as a UMD package if your environment doesn't support modules, not minified, useful for debugging |
158-
| `dist/mathlive-ssr.min.mjs` | A subset of the MathLive library which can be used on the server side or in environments that do not have a DOM. Does not include the MathfieldElement, but does include functions such as `convertLatexToMarkup()` |
159-
| `dist/mathlive-static.css` | A stylesheet which can be used when the MathLive library is not loaded to display markup that has been rendered by the MathLive library previously. Rarely needed. |
160-
| `dist/types` | The TypeScript declaration files. Not needed at runtime. |
149+
| `./fonts/` | The fonts required to render MathLive content |
150+
| `./sounds/` | The optional sound files used when typing on the virtual keyboard |
151+
| `./mathlive.min.mjs` | MathLive library, as a JavScript module, minified |
152+
| `./mathlive.mjs` | MathLive library, as a JavScript module, not minified, useful for debugging |
153+
| `./mathlive.min.js` | MathLive library, as a UMD package if your environment doesn't support modules, minified |
154+
| `./mathlive.js` | MathLive library, as a UMD package if your environment doesn't support modules, not minified, useful for debugging |
155+
| `./mathlive-ssr.min.mjs` | A subset of the MathLive library which can be used on the server side or in environments that do not have a DOM. Does not include the MathfieldElement, but does include functions such as `convertLatexToMarkup()` |
156+
| `./mathlive-static.css` | A stylesheet which can be used when the MathLive library is not loaded to display markup that has been rendered by the MathLive library previously. Rarely needed. |
157+
| `./types/` | The TypeScript declaration files. Not needed at runtime. |
161158

162159
Controlling the Location of the `fonts` Folder
163160

@@ -197,7 +194,7 @@ can modify the names of the files containting assets, including a hash string
197194
in order to provide more control of the caching of those assets.
198195

199196
In this case, you should include the stylesheet `mathlive-fonts.css` to your
200-
project. You can find this stylesheet in the `dist` folder on GitHub or in the
197+
project. You can find this stylesheet in the
201198
`mathlive` folder in your `node_modules` directory.
202199

203200
If you import this stylesheet, use `import mathliveStyle from "mathlive/fonts.css"`
@@ -277,7 +274,7 @@ fonts will be injected in the current page.
277274
save the output or return it from a server-side process.
278275

279276
To correctly display this markup, import the stylesheet with
280-
`import "mathlive/static.css"`. The stylesheet can be found in `dist/mathlive-static.css`.
277+
`import "mathlive/static.css"`.
281278

282279
When using this method, the MathLive library is not necessary to render the
283280
formula once the markup has been generated.
@@ -287,7 +284,7 @@ formula once the markup has been generated.
287284
<head>
288285
<link
289286
rel="stylesheet"
290-
href="https://unpkg.com/mathlive/dist/mathlive-static.css"
287+
href="https://unpkg.com/mathlive/mathlive-static.css"
291288
/>
292289
</head>
293290
<html>

docs/mathfield/12-customizing.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,7 @@ property.
570570

571571
```js
572572
MathfieldElement.soundsDirectory =
573-
"https://unpkg.com/mathlive/dist/sounds/";
573+
"https://unpkg.com/mathlive/sounds/";
574574
```
575575

576576
Specific sounds can be disabeld or customized with the `MathfieldElement.keypressSound`
@@ -636,7 +636,7 @@ property.
636636
637637
:::js
638638
await window.customElements.whenDefined("math-field");
639-
MathfieldElement.fontsDirectory = "https://unpkg.com/mathlive/dist/fonts/";
639+
MathfieldElement.fontsDirectory = "https://unpkg.com/mathlive/fonts/";
640640
641641
642642
:::html

docs/mathfield/50-tutorial-simple-quiz.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ We also need to load a CSS stylesheet to render the math. We can use the
235235
```html
236236
<link
237237
rel="stylesheet"
238-
href="https://unpkg.com/mathlive/dist/mathlive-static.css"
238+
href="https://unpkg.com/mathlive/mathlive-static.css"
239239
/>
240240
```
241241

@@ -318,7 +318,7 @@ Here's the complete code for our quiz application:
318318
<title>Math Quiz</title>
319319
<link
320320
rel="stylesheet"
321-
href="https://unpkg.com/mathlive/dist/mathlive-static.css"
321+
href="https://unpkg.com/mathlive/mathlive-static.css"
322322
/>
323323
<style>
324324
math-field {

docs/mathfield/changelog.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,13 @@ toc_max_heading_level: 2
1010
import ChangeLog from '@site/src/components/ChangeLog';
1111

1212
<ChangeLog>
13-
## Coming Soon
13+
## 0.105.0 _2025-03-27_
1414

1515
### Issues Resolved
1616

17+
- **#2647**, **#2634**, **#2562** Some accents (`\hat{}`, `\vec{}`) where not
18+
rendered correctly in some cases.
19+
1720
- **#2635** In Chrome (and Firefox), clicking on the padding area of the
1821
mathfield would not result in the focus getting into a zombie state and
1922
keyboard event no longer being dispatched.

plugins/load-scripts/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ loadScripts([
5555
"https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.16/mode/javascript/javascript.min.js",
5656
"https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.16/mode/xml/xml.min.js",
5757
"https://unpkg.com/@cortex-js/compute-engine",
58-
"https://unpkg.com/mathlive/dist/mathlive.min.js",
58+
"https://unpkg.com/mathlive/mathlive.min.js",
5959
"https://unpkg.com/@ui-js/code-playground/dist/code-playground.js@module",
6060
]
6161
);

scripts/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ then
130130

131131

132132
output_file="./build/kb-mathlive-api.d.ts"
133-
pattern="../mathlive/dist/types/**/*.d.ts"
133+
pattern="../mathlive/types/**/*.d.ts"
134134

135135
if [ -f "$output_file" ]; then
136136
rm "$output_file"

src/pages/_mathlive-edit.html

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
title: MathLive Editor
44
slug: /mathlive/editor/
55
sidebar:
6-
- nav: "universal"
6+
- nav: "universal"
77
head:
8-
stylesheets:
9-
- https://unpkg.com/mathlive/dist/mathlive-static.css
8+
stylesheets:
9+
- https://unpkg.com/mathlive/mathlive-static.css
1010
---
1111

1212
<style>
@@ -17,6 +17,7 @@
1717
justify-content: flex-end;
1818
align-items: center;
1919
}
20+
2021
.buttonbar button {
2122
background: none;
2223
border: 1px solid rgba(0, 0, 0, 0.24);
@@ -95,7 +96,8 @@
9596
padding: 5px;
9697
padding-top: 0.5em;
9798
padding-bottom: 0.5em;
98-
width: calc(100% - 10px); /* Subtract horizontal padding */
99+
width: calc(100% - 10px);
100+
/* Subtract horizontal padding */
99101

100102
font-family: var(--monospace-font-family);
101103
color: #f0c674;
@@ -120,15 +122,8 @@ <h1>MathLive LaTeX Editor</h1>
120122
<main>
121123
<div id="inputs">
122124
<math-field id="mf">f(x)=\sqrt{\frac{1}{x}}</math-field>
123-
<textarea
124-
id="latex"
125-
autocapitalize="off"
126-
autocomplete="off"
127-
autocorrect="off"
128-
spellcheck="false"
129-
>
130-
f(x)=\sqrt{\frac{1}{x}}</textarea
131-
>
125+
<textarea id="latex" autocapitalize="off" autocomplete="off" autocorrect="off" spellcheck="false">
126+
f(x)=\sqrt{\frac{1}{x}}</textarea>
132127
</div>
133128
<div class="buttonbar">
134129
<button id="copy-to-png">Copy</button>
@@ -216,4 +211,4 @@ <h1>MathLive LaTeX Editor</h1>
216211
);
217212
});
218213
}
219-
</script>
214+
</script>

submodules/cortex-js.github.io

Submodule cortex-js.github.io updated 83 files

0 commit comments

Comments
 (0)