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 all dependencies and fix HTML sanitization escape #40

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

Commits on Dec 2, 2022

  1. Update all dependencies.

    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.
    zackw committed Dec 2, 2022
    Configuration menu
    Copy the full SHA
    dd20fa4 View commit details
    Browse the repository at this point in the history

Commits on Dec 3, 2022

  1. Fix HTML sanitization escape via math syntax errors.

    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.
    zackw committed Dec 3, 2022
    Configuration menu
    Copy the full SHA
    7a11295 View commit details
    Browse the repository at this point in the history