Skip to content

Commit

Permalink
chore: use Partial<> higher-order type for config options
Browse files Browse the repository at this point in the history
  • Loading branch information
arnog committed Sep 25, 2020
1 parent d408033 commit f5c284e
Show file tree
Hide file tree
Showing 17 changed files with 182 additions and 162 deletions.
36 changes: 33 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,36 @@
## [Unreleased]

### New Features

- **#101**: added `getCaretPosition()` and `setCaretPosition()`

### Improvements

- The Typescript types for `Selector` has been improved
- The Typescript type for getConfig() are more accurate
- The "sqrt" inline shortcut now inserts an argument
- Don't throw an error if the first argument of `\enclose` is empty
- **#591**: add `upward` and `downward` hooks when navigating out of the
mathfield.

### Bug Fixes

- **#637**: in Chrome, thin lines, such as fraction bars or square root lines
would not display at some zoom levels
- **#599**: some characters, for example "ü", would not be correctly parsed or
displayed. Note that technically, those characters are ignored by TeX,
but it's a reasonable behavior nowadays to accept them as input.
- **#198**: typing backspace while typing inline shortcuts would prevent the
shortcuts from being recognized
- **#573**: brackets were not properly styled (i.e. color applied to them)
- **#628**: typing "e" repeatedly inside a matrix would corrupt the emited
Latex and render incorrectly.

### Thanks

- Thanks to @stefnotch for contributing several of the improvements in this
release

## 0.56.0 (2020-08-22)

### New Features
Expand Down Expand Up @@ -141,7 +174,6 @@

The necessary CSS is now injected dynamically into the page. This simplifies the use of the library, but also reduces the amount of CSS in the page, potentially improving performance. That's particularly the case when the virtual keyboard is not used, as the CSS stylesheet for the virtual keyboard is substantial, and it is now injected only when the keyboard is used.


To transition, you should remove from your code any instance of:

```html
Expand All @@ -158,7 +190,6 @@
either a relative path or a full URL pointing to the directory that contains
the fonts. (Fix for **#425**)


You no longer need to manually specify the stylesheets when using
`renderMathInElement()` or `renderMathInDocument()` either.
The necessary stylesheet will get injected in the
Expand All @@ -168,7 +199,6 @@
location of the 'fonts' directory, if necessary (by default, the 'fonts'
directory is expected to be next to the 'mathlive.js', 'mathlive.mjs' file.)


In some rare cases, you may have used the CSS stylesheet without the Mathlive library, for example, after you may have saved the output of `latexToMarkup()` to a database
and use it to render later in a page. In that case, you would need to use the
CSS styelsheet `dist/mathlive-static.css`, which is suitable for this use case.
Expand Down
2 changes: 1 addition & 1 deletion dist/mathlive-static.css

Large diffs are not rendered by default.

15 changes: 5 additions & 10 deletions dist/mathlive.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/mathlive.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/mathlive.min.mjs

Large diffs are not rendered by default.

15 changes: 5 additions & 10 deletions dist/mathlive.mjs

Large diffs are not rendered by default.

Loading

0 comments on commit f5c284e

Please sign in to comment.