better-react-mathjax 2.1.0 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -34,7 +34,7 @@ well as dynamic updates. Simple to use but with many configuration options.
|
|
|
34
34
|
Add this library manually as a dependency to `package.json`...
|
|
35
35
|
```
|
|
36
36
|
dependencies: {
|
|
37
|
-
"better-react-mathjax": "^2.0
|
|
37
|
+
"better-react-mathjax": "^2.2.0"
|
|
38
38
|
}
|
|
39
39
|
```
|
|
40
40
|
... and then run `npm install` **or** let `npm` or `yarn` do it for you, depending on which package manager you have
|
|
@@ -95,6 +95,9 @@ Latex and MathML with the default [MathJax version 3](https://docs.mathjax.org/e
|
|
|
95
95
|
HTML output for both. If you need something else or want to host your own copy of MathJax, read more about the `src`
|
|
96
96
|
attribute of the `MathJaxContext` below.
|
|
97
97
|
|
|
98
|
+
Note that both `MathJax` and `MathJaxContext` components ship with `"use client"` directives and are thus client
|
|
99
|
+
components in contexts where this is taken into account.
|
|
100
|
+
|
|
98
101
|
## Examples
|
|
99
102
|
|
|
100
103
|
The first 3 are basic examples with zero configuration standard setup using MathJax version 3 with default MathJax config
|
|
@@ -332,7 +335,7 @@ Requires `typesettingOptions` to be set and version to be `3`. If `renderMode` i
|
|
|
332
335
|
|
|
333
336
|
Indicates whether the content of the `MathJax` component may change after initial rendering.
|
|
334
337
|
|
|
335
|
-
**Default**: `false`
|
|
338
|
+
**Default**: `false` (**note**: is `true` by default in development environment for hot reload to work)
|
|
336
339
|
|
|
337
340
|
***
|
|
338
341
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "better-react-mathjax",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"description": "Up-to-date component for using MathJax in latest React (using functional components and hooks API). Focuses on being versatile and making the use of MathJax in React a pleasant experience without flashes of non-typeset content, both with respect to initial rendering as well as dynamic updates. Simple to use but with many configuration options.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "esm/index.js",
|