Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
arnog committed Sep 2, 2023
1 parent 0e162f9 commit e610511
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/addons/definitions-metadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -434,9 +434,9 @@ metadata(
'\\imaginaryI',
'\\imaginaryJ',
'\\differentialD',
'\\rd',
'\\capitalDifferentialD',
'\\rD',
'\\rd', // Proof Wiki
'\\rD', // Proof Wiki
'\\differencedelta',
'\\mid',
'@',
Expand Down
5 changes: 1 addition & 4 deletions src/core-definitions/definitions-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1045,10 +1045,7 @@ export function getMacroDefinition(
return macros[command];
}

export function unicodeCharToLatex(
parseMode: ArgumentType,
char: string
): string {
export function unicodeCharToLatex(parseMode: ParseMode, char: string): string {
if (parseMode === 'text')
return charToLatex(parseMode, char.codePointAt(0)) ?? char;

Expand Down
2 changes: 1 addition & 1 deletion src/core/tokenizer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ export function tokensToString(tokens: Token[]): string {
'<$>': '$',
'<{>': '{',
'<}>': '}',
}[token] ?? token)
})[token] ?? token
)
);
}
1 change: 1 addition & 0 deletions src/editor-mathfield/render.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ function makeBox(
'aria-hidden': 'true',
},
});

return wrapper;
}

Expand Down

0 comments on commit e610511

Please sign in to comment.