Skip to content

Commit ef16412

Browse files
committed
chore: update latex type
1 parent 95704a9 commit ef16412

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/render/latex.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { TOKEN, Token } from '../lexer/tokens';
22

3-
export type TEXRenderOptions = {
3+
export type LaTeXRenderOptions = {
44
mode: 'inline' | 'display' | 'align';
55
};
66

@@ -29,7 +29,7 @@ const characterMap: Record<string, string> = {
2929

3030
function formatTokenValue(
3131
token: Token,
32-
mode: TEXRenderOptions['mode']
32+
mode: LaTeXRenderOptions['mode']
3333
): string {
3434
if (characterMap[token.value]) return characterMap[token.value];
3535
if (token.type === TOKEN.FUNCTION) {
@@ -43,7 +43,7 @@ function formatTokenValue(
4343

4444
function handleSpecialCases(
4545
tokens: Token[],
46-
mode: TEXRenderOptions['mode']
46+
mode: LaTeXRenderOptions['mode']
4747
): string {
4848
const result = [];
4949
let i = 0;
@@ -146,7 +146,7 @@ function handleSpecialCases(
146146
*/
147147
export function renderTokensAsLaTeX(
148148
tokens: Token[],
149-
options: Partial<TEXRenderOptions> = {}
149+
options: Partial<LaTeXRenderOptions> = {}
150150
) {
151151
const config = {
152152
mode: options.mode || 'inline'

0 commit comments

Comments
 (0)