mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-13 15:08:39 +00:00
disable \includegraphics until trust settings is merged (#1951)
* disable \includegraphics until trust settings is merged * disable one more test
This commit is contained in:
@@ -1987,7 +1987,8 @@ describe("A MathML font tree-builder", function() {
|
||||
});
|
||||
});
|
||||
|
||||
describe("An includegraphics builder", function() {
|
||||
// Disabled until https://github.com/KaTeX/KaTeX/pull/1794 is merged.
|
||||
describe.skip("An includegraphics builder", function() {
|
||||
const img = "\\includegraphics[height=0.9em, totalheight=0.9em, width=0.9em, alt=KA logo]{https://cdn.kastatic.org/images/apple-touch-icon-57x57-precomposed.new.png}";
|
||||
it("should not fail", function() {
|
||||
expect(img).toBuild();
|
||||
@@ -2718,7 +2719,8 @@ describe("A raw text parser", function() {
|
||||
// Unicode combining character. So this is a test that the parser will catch a bad string.
|
||||
expect("\\includegraphics[\u030aheight=0.8em, totalheight=0.9em, width=0.9em]{" + "https://cdn.kastatic.org/images/apple-touch-icon-57x57-precomposed.new.png}").not.toParse();
|
||||
});
|
||||
it("should return null for a omitted optional string", function() {
|
||||
// Disabled until https://github.com/KaTeX/KaTeX/pull/1794 is merged.
|
||||
it.skip("should return null for a omitted optional string", function() {
|
||||
expect("\\includegraphics{https://cdn.kastatic.org/images/apple-touch-icon-57x57-precomposed.new.png}").toParse();
|
||||
});
|
||||
});
|
||||
|
@@ -138,13 +138,14 @@ GroupMacros:
|
||||
\endExp: \egroup
|
||||
tex: \startExp a+b\endExp
|
||||
HorizontalBraces: \overbrace{\displaystyle{\oint_S{\vec E\cdot\hat n\,\mathrm d a}}}^\text{emf} = \underbrace{\frac{q_{\text{enc}}}{\varepsilon_0}}_{\text{charge}}
|
||||
Includegraphics: |
|
||||
\def\logo{\includegraphics[height=0.8em, totalheight=0.9em, width=0.9em, alt=KA logo]{https://cdn.kastatic.org/images/apple-touch-icon-57x57-precomposed.new.png}}
|
||||
\def\logoB{\includegraphics[height=0.4em, totalheight=0.9em, width=0.9em, alt=KA logo]{https://cdn.kastatic.org/images/apple-touch-icon-57x57-precomposed.new.png}}
|
||||
\begin{array}{l}
|
||||
\underline{A\logo} + \sqrt{\logo} + \tfrac{A\logo}{\logo}\\[1em]
|
||||
\underline{A\logoB} + \sqrt{x\logoB} + \tfrac{A\logoB}{\logoB}
|
||||
\end{array}
|
||||
# Disabled until https://github.com/KaTeX/KaTeX/pull/1794 is merged.
|
||||
# Includegraphics: |
|
||||
# \def\logo{\includegraphics[height=0.8em, totalheight=0.9em, width=0.9em, alt=KA logo]{https://cdn.kastatic.org/images/apple-touch-icon-57x57-precomposed.new.png}}
|
||||
# \def\logoB{\includegraphics[height=0.4em, totalheight=0.9em, width=0.9em, alt=KA logo]{https://cdn.kastatic.org/images/apple-touch-icon-57x57-precomposed.new.png}}
|
||||
# \begin{array}{l}
|
||||
# \underline{A\logo} + \sqrt{\logo} + \tfrac{A\logo}{\logo}\\[1em]
|
||||
# \underline{A\logoB} + \sqrt{x\logoB} + \tfrac{A\logoB}{\logoB}
|
||||
# \end{array}
|
||||
Integrands: |
|
||||
\begin{array}{l}
|
||||
\displaystyle \int + \oint + \iint + \oiint_i^n \\[0.6em]
|
||||
|
Reference in New Issue
Block a user