Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to latest dependencies, includes changes up to pull request #40 #44

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

gaspard
Copy link

@gaspard gaspard commented May 15, 2024

Takes on pull request #40 from @zackw and update again.

Update all dependencies and ensure tests pass.

The test related to bug KaTeX/KaTeX#3755 is now ignored.

Normalized space indentation in code (was using spaces in index.js and tabs in rendering.js).

zackw and others added 3 commits December 2, 2022 18:44
Notably, katex goes from 0.6.0 to 0.16.0 and (for testing purposes
only) markdown-it from 6.0.0 to 13.0.0.  Several tests had to be
updated as katex’s HTML rendering of many math constructs has changed,
but no code changes are required.

Fixes issues waylonflinn#18, waylonflinn#19, waylonflinn#21, waylonflinn#27. Partially addresses waylonflinn#16.
Test cases added.
By default, invoke KaTeX in ‘throwOnError:false‘ mode, so that it will
produce _something_ from any input, and in particular, something which
is guaranteed not to allow any live HTML tags through from the input.
(Unless you are using ‘trust:true‘, in which case you presumably know
what you are doing and why.)

throwOnError:true mode can be re-enabled with plugin options, but then
this plugin will **not** catch any exceptions that are thrown, leaving
recovery up to a higher level.

Since this is a significant behavior change, but one that is more
likely to *fix* bugs in dependent programs than to introce them,
the version number is now 2.1.0.

Fixes waylonflinn#26, waylonflinn#30, and waylonflinn#7.  I would like to thank @khrykin, poster of waylonflinn#7,
for the idea that maybe the exception handlers inside this plugin
should just be completely removed.
The test related to bug KaTeX/KaTeX#3755 is now ignored.

Normalized space indentation in code (was using spaces in index.js and tabs in rendering.js).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants