File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { 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
3030function 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
4444function 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 */
147147export function renderTokensAsLaTeX (
148148 tokens : Token [ ] ,
149- options : Partial < TEXRenderOptions > = { }
149+ options : Partial < LaTeXRenderOptions > = { }
150150) {
151151 const config = {
152152 mode : options . mode || 'inline'
You can’t perform that action at this time.
0 commit comments