@types/katex
Advanced tools
Comparing version 0.10.2 to 0.11.0
@@ -1,2 +0,2 @@ | ||
// Type definitions for KaTeX 0.10 | ||
// Type definitions for KaTeX 0.11 | ||
// Project: http://khan.github.io/KaTeX/ | ||
@@ -7,2 +7,3 @@ // Definitions by: Michael Randolph <https://github.com/mrand01> | ||
// Sebastian Weigand <https://github.com/s-weigand> | ||
// sapphi-red <https://github.com/sapphi-red> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
@@ -15,2 +16,8 @@ // TypeScript Version: 2.1 | ||
export interface TrustContext { | ||
command: string | ||
url: string | ||
protocol: string | ||
} | ||
/** Documentation: https://katex.org/docs/options.html */ | ||
@@ -27,2 +34,26 @@ export interface KatexOptions { | ||
/** | ||
* Determines the markup language of the output. The valid choices are: | ||
* - `html`: Outputs KaTeX in HTML only. | ||
* - `mathml`: Outputs KaTeX in MathML only. | ||
* - `htmlAndMathml`: Outputs HTML for visual rendering | ||
* and includes MathML for accessibility. | ||
* | ||
* @default 'htmlAndMathml' | ||
*/ | ||
output?: 'html' | 'mathml' | 'htmlAndMathml'; | ||
/** | ||
* If `true`, display math has \tags rendered on the left | ||
* instead of the right, like \usepackage[leqno]{amsmath} in LaTeX. | ||
* | ||
* @default false | ||
*/ | ||
leqno?: boolean; | ||
/** | ||
* If `true`, display math renders flush left with a 2em left margin, | ||
* like \documentclass[fleqn] in LaTeX with the amsmath package. | ||
* | ||
* @default false | ||
*/ | ||
fleqn?: boolean; | ||
/** | ||
* If `true`, KaTeX will throw a `ParseError` when | ||
@@ -48,2 +79,9 @@ * it encounters an unsupported command or invalid LaTex | ||
/** | ||
* Specifies a minimum thickness, in ems, for fraction lines, | ||
* \sqrt top lines, {array} vertical lines, \hline, \hdashline, | ||
* \underline, \overline, and the borders of \fbox, \boxed, and | ||
* \fcolorbox. | ||
*/ | ||
minRuleThickness?: number; | ||
/** | ||
* If `true`, `\color` will work like LaTeX's `\textcolor` | ||
@@ -79,10 +117,2 @@ * and takes 2 arguments | ||
/** | ||
* Allowed protocols in `\href` | ||
* | ||
* Use `_relative` to allow relative urls | ||
* | ||
* Use `*` to allow all protocols | ||
*/ | ||
allowedProtocols?: string[]; | ||
/** | ||
* If `false` or `"ignore"`, allow features that make | ||
@@ -98,2 +128,16 @@ * writing in LaTex convenient but not supported by LaTex | ||
strict?: boolean | string | Function; | ||
/** | ||
* If `false` (do not trust input), prevent any commands that could enable adverse behavior, rendering them instead in errorColor. | ||
* | ||
* If `true` (trust input), allow all such commands. | ||
* | ||
* @default false | ||
*/ | ||
trust?: boolean | ((context: TrustContext) => boolean); | ||
/** | ||
* Place KaTeX code in the global group. | ||
* | ||
* @default false | ||
*/ | ||
globalGroup?: boolean; | ||
} | ||
@@ -100,0 +144,0 @@ |
{ | ||
"name": "@types/katex", | ||
"version": "0.10.2", | ||
"version": "0.11.0", | ||
"description": "TypeScript definitions for KaTeX", | ||
@@ -26,6 +26,11 @@ "license": "MIT", | ||
"githubUsername": "s-weigand" | ||
}, | ||
{ | ||
"name": "sapphi-red", | ||
"url": "https://github.com/sapphi-red", | ||
"githubUsername": "sapphi-red" | ||
} | ||
], | ||
"main": "", | ||
"types": "index", | ||
"types": "index.d.ts", | ||
"repository": { | ||
@@ -38,4 +43,4 @@ "type": "git", | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "3a6f194878019617f505e65fca853e23335590fecdb4062c23864343c8093ee7", | ||
"typeScriptVersion": "2.1" | ||
"typesPublisherContentHash": "75b32eac8083d68f2ab68a0e7bf41feb8183d7055a5357825e409be6c6463980", | ||
"typeScriptVersion": "2.8" | ||
} |
@@ -8,10 +8,10 @@ # Installation | ||
# Details | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/katex | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/katex. | ||
Additional Details | ||
* Last updated: Wed, 11 Sep 2019 05:55:46 GMT | ||
### Additional Details | ||
* Last updated: Sat, 07 Dec 2019 05:05:52 GMT | ||
* Dependencies: none | ||
* Global values: katex | ||
* Global values: `katex` | ||
# Credits | ||
These definitions were written by Michael Randolph <https://github.com/mrand01>, Kevin Nguyen <https://github.com/knguyen0125>, bLue <https://github.com/dreamerblue>, and Sebastian Weigand <https://github.com/s-weigand>. | ||
These definitions were written by Michael Randolph (https://github.com/mrand01), Kevin Nguyen (https://github.com/knguyen0125), bLue (https://github.com/dreamerblue), Sebastian Weigand (https://github.com/s-weigand), and sapphi-red (https://github.com/sapphi-red). |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11102
234