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

Re-enable \includegraphics #2053

Merged
merged 7 commits into from
Jul 21, 2019
Merged

Conversation

edemaine
Copy link
Member

Fix #2027 by re-enabling \includegraphics, now that trust setting (#1794) has merged. I reverted 5806b24 and checked old versions of #1794 for anything else to add. I added some snapshot tests similar to those for \url and \href, and cleaned

While I was here, also fix #1892 by including the \includegraphics image locally for testing (and use it on the website).

Not directly related: I modified the yarn start interactive test website to set trust to true by default, like it is on the katex.org demo, because the assumption is that someone entering text manually is doing so in a trustworthy fashion. I added a trust=0 option for testing that things break when trust is false.

@codecov-io
Copy link

codecov-io commented Jul 19, 2019

Codecov Report

Merging #2053 into master will increase coverage by 1.73%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2053      +/-   ##
==========================================
+ Coverage   93.33%   95.06%   +1.73%     
==========================================
  Files          80       80              
  Lines        5024     5024              
  Branches      887      887              
==========================================
+ Hits         4689     4776      +87     
+ Misses        294      224      -70     
+ Partials       41       24      -17
Flag Coverage Δ
#screenshotter 89.67% <ø> (+0.56%) ⬆️
#test 88.03% <ø> (+1.55%) ⬆️
Impacted Files Coverage Δ
src/functions.js 100% <ø> (ø) ⬆️
src/Parser.js 96.87% <0%> (+1.7%) ⬆️
src/functions/href.js 100% <0%> (+4%) ⬆️
src/domTree.js 89.67% <0%> (+7.06%) ⬆️
src/functions/includegraphics.js 94.36% <0%> (+94.36%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 223b9c3...6b10763. Read the comment docs.

@kevinbarabash
Copy link
Member

Thanks for re-enabling this functionality and for tweaking yarn start so that we can test everything on the test page locally.

@ylemkimon ylemkimon merged commit 285c9fe into KaTeX:master Jul 21, 2019
@edemaine edemaine changed the title Re includegraphics Re-enable \includegraphics Jul 21, 2019
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.

Re-enable \includegraphics Load \includegraphics test image from local
4 participants