mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-11 05:58:40 +00:00
Add HTML extension (#2082)
* Add html extension * Fix flow error * Update documentation * Add tests * Call buildA11yStrings for "html" node * Throw ParseError when parsing \htmlData fails * Improve documentation * Add a screenshotter test * Add dummy screenshot * Update screenshots
This commit is contained in:
committed by
Kevin Barabash
parent
9d8195c793
commit
e5333ad04d
@@ -32,6 +32,22 @@ export type TrustContextTypes = {
|
||||
url: string,
|
||||
protocol?: string,
|
||||
|},
|
||||
"\\htmlClass": {|
|
||||
command: "\\htmlClass",
|
||||
class: string,
|
||||
|},
|
||||
"\\htmlId": {|
|
||||
command: "\\htmlId",
|
||||
id: string,
|
||||
|},
|
||||
"\\htmlStyle": {|
|
||||
command: "\\htmlStyle",
|
||||
style: string,
|
||||
|},
|
||||
"\\htmlData": {|
|
||||
command: "\\htmlData",
|
||||
attributes: {[string]: string},
|
||||
|},
|
||||
};
|
||||
export type AnyTrustContext = $Values<TrustContextTypes>;
|
||||
export type TrustFunction = (context: AnyTrustContext) => ?boolean;
|
||||
|
Reference in New Issue
Block a user