Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion temml.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
export type TrustContext =
| { command: "\\class"; class: string }
| { command: "\\id"; id: string }
| { command: "\\style"; style: string }
| { command: "\\data"; attributes: Record<string, string> }
| { command: "\\includegraphics"; url: string; protocol?: string };

export interface Options {
displayMode?: boolean;
annotate?: boolean;
Expand All @@ -9,7 +16,7 @@ export interface Options {
xml?: boolean;
colorIsTextColor?: boolean;
strict?: boolean;
trust?: boolean | ((context: any) => boolean);
trust?: boolean | ((context: TrustContext) => boolean);
maxSize?: [number, number];
maxExpand?: number;
}
Expand Down