Skip to content

Commit 432938e

Browse files
committed
Merge branch 'develop' for v3.0.1
2 parents 91fbc16 + 9a01745 commit 432938e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+136
-114
lines changed

CONTRIBUTING.md

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,8 @@ do you expect to happen instead?
121121

122122
Feature requests are welcome. Before you submit one, be sure to have:
123123

124-
1. **Used the GitHub search** to check that the feature hasn't already
 been requested.
124+
1. **Used the GitHub search** to check that the feature hasn't already
125+
been requested.
125126
2. Take a moment to think about whether your idea fits with the scope
126127
and aims of the project, or if it might better fit being a [custom
127128
extension](https://github.com/mathjax/MathJax-third-party-extensions).
@@ -146,7 +147,14 @@ a refactor, or an improvement to a feature, etc., please be sure to:
146147

147148
## Working on MathJax core
148149

149-
You want to contribute code? We describe how below. First, note that the MathJax source code is in the <https://github.com/mathjax/MathJax-src> repository, not the <https://github.com/mathjax/MathJax> repository, which contains the packaged component files for distribution on CDNs and the [mathjax npm package](https://www.npmjs.com/package/mathjax) (the source code is included in the [mathjax-full npm package](https://www.npmjs.com/package/mathjax-src)).
150+
You want to contribute code? We describe how below. First, note that
151+
the MathJax source code is in the
152+
<https://github.com/mathjax/MathJax-src> repository, not the
153+
<https://github.com/mathjax/MathJax> repository, which contains the
154+
packaged component files for distribution on CDNs and the [mathjax npm
155+
package](https://www.npmjs.com/package/mathjax) (the source code is
156+
included in the [mathjax-full npm
157+
package](https://www.npmjs.com/package/mathjax-full)).
150158

151159
### Key Branches & Tags
152160

@@ -155,27 +163,27 @@ MathJax uses several permanent branches in the [MathJax source repository](https
155163
- **[develop](https://github.com/mathjax/MathJax-src/tree/develop)**
156164
is the development branch. All work on the next release happens here
157165
so you should generally branch off `develop` if you are going to
158-
submit a pull request. Do **NOT** use this branch for a production
166+
submit a pull request. Do **NOT** use this branch for a production
159167
site.
160168

161169
- **[master](https://github.com/mathjax/MathJax-src)** contains the latest
162170
release of MathJax. This branch may be used in production. Do
163171
**NOT** use this branch to work on MathJax's source.
164172

165173
These branches reflect version 3 of MathJax, which is substantially
166-
differentfrom the version 2 codebase. Version 2 will continue to be
167-
maintained while websites transition to version 3, with work being
168-
done using the following branches in the [MathJax distribution
174+
different from the version 2 codebase. Version 2 will continue to be
175+
maintained while web sites transition to version 3, with work being
176+
done using the following branches in the [MathJax distribution
169177
repository](https://github.com/mathjax/MathJax):
170178

171-
- **[legacy-v2-develop](https://github.com/mathjax/MathJax/tree/legacy-v2-develop)**
179+
- **[legacy-v2-develop](https://github.com/mathjax/MathJax/tree/legacy-v2-develop)**
172180
is the development branch for changes to the legacy version 2 code.
173-
Any pull requests for version 2 should be branched from here. Do
174-
**NOT** use this branch for a production site.
181+
Any pull requests for version 2 should be branched from here. Do
182+
**NOT** use this branch for a production site.
175183

176184
- **[legacy-v2](https://github.com/mathjax/MathJax/tree/legacy-v2)**
177-
is the branch that contains any updates to version 2 following
178-
the release of version 3. Do **NOT** use this branch to work on
185+
is the branch that contains any updates to version 2 following
186+
the release of version 3. Do **NOT** use this branch to work on
179187
MathJax's source.
180188

181189
In addition to these branches, MathJax uses tags to identify the

README.md

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
# MathJax
2-
32
## Beautiful math in all browsers
43

4+
<img class="shield" alt="GitHub release version" src="https://img.shields.io/github/v/release/mathjax/MathJax-src?sort=semver"> <img class="shield" alt="GitHub release version (branch)" src="https://img.shields.io/github/package-json/v/mathjax/MathJax/legacy-v2?label=release v2">
5+
<a class="reference external image-reference" href="http://www.numfocus.org"><img alt="powered-by NumFocus" src="https://img.shields.io/badge/powered%20by-NumFOCUS-orange.svg?style=flat&amp;amp;colorA=E1523D&amp;amp;colorB=007D8A"></a>
6+
57
MathJax is an open-source JavaScript display engine for LaTeX, MathML,
68
and AsciiMath notation that works in all modern browsers. It was
79
designed with the goal of consolidating the recent advances in web
@@ -87,9 +89,11 @@ If you want to host MathJax from your own server, you can do so by
8789
installing the `mathjax` package using `npm` and moving the `es5`
8890
directory to an appropriate location on your server:
8991

90-
npm install mathjax
92+
npm install mathjax@3
9193
mv node_modules/mathjax/es5 <path-to-server-location>/mathjax
9294

95+
Note that we are still making updates to version 2, so include `@3` when you install, since the latest chronological version may not be version 3.
96+
9397
Alternatively, you can get the files via GitHub:
9498

9599
git clone https://github.com/mathjax/MathJax.git mj-tmp
@@ -110,12 +114,13 @@ for details.
110114

111115
### Using MathJax components in a node application
112116

113-
To use MathJax components in a node application, install the `mathjax`
114-
package:
117+
To use MathJax components in a node application, install the `mathjax` package:
118+
119+
npm install mathjax@3
115120

116-
npm install mathjax
121+
(we are still making updates to version 2, so you should include `@3` since the latest chronological version may not be version 3).
117122

118-
and require `mathjax` within your application:
123+
Then require `mathjax` within your application:
119124

120125
require('mathjax').init({ ... }).then((MathJax) => { ... });
121126

@@ -147,7 +152,7 @@ everything other than `tex-chtml.js`, and the `input/tex/extensions`, `output/ch
147152

148153
If you are not using A11Y support (e.g., speech generation, or semantic enrichment), then you can remove `a11y` and `sre` as well (though in this case you may need to disable the assistive tools in the MathJax contextual menu in order to avoid MathJax trying to load them when they aren't there).
149154

150-
If you are using SVG rather that CommonHTML output (e.g., `tex-svg.js` rather than `tex-chtml.js`), you can remove the `output/chtml/fonts/woff-v2` directory. If you are using MathML input rather than TeX (e.g., `mml-chtml.js` rather than `tex-chtml.js`), then you can remove `input/tex/extensions` as well.
155+
If you are using SVG rather than CommonHTML output (e.g., `tex-svg.js` rather than `tex-chtml.js`), you can remove the `output/chtml/fonts/woff-v2` directory. If you are using MathML input rather than TeX (e.g., `mml-chtml.js` rather than `tex-chtml.js`), then you can remove `input/tex/extensions` as well.
151156

152157

153158
## The Component Files and Pull Requests

es5/a11y/assistive-mml.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

es5/a11y/complexity.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

es5/a11y/explorer.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)