Skip to content

Commit 88fed2f

Browse files
committed
Make changes requested in review
1 parent d5ec98e commit 88fed2f

3 files changed

Lines changed: 16 additions & 7 deletions

File tree

ts/core/MmlTree/MmlNodes/mtable.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ export class MmlMtable extends AbstractMmlNode {
127127
const ralign = split(this.attributes.get('rowalign') as string);
128128
for (const child of this.childNodes) {
129129
attributes.rowalign[1] = ralign.shift() || attributes.rowalign[1];
130-
child.setInheritedAttributes(attributes, display, level, cramped == null ? false : cramped);
130+
child.setInheritedAttributes(attributes, display, level, !!cramped);
131131
}
132132
}
133133

ts/input/tex/mathtools/MathtoolsConfiguration.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ function initMathtools(config: ParserConfiguration) {
4949
}
5050

5151
/**
52-
* Add any pre-defined paried delimiters, and subclass the configured tag format.
52+
* Add any pre-defined paired delimiters, and subclass the configured tag format.
5353
* @param {ParserConfiguration} config The current configuration.
5454
* @param {TeX} jac The TeX input jax
5555
*/

ts/input/tex/mathtools/MathtoolsMethods.ts

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ import {MathtoolsTags} from './MathtoolsTags.js';
4141
import {MathtoolsUtil} from './MathtoolsUtil.js';
4242

4343
/**
44-
* The implementations for the macros and environemtns for the mathtools package.
44+
* The implementations for the macros and environments for the mathtools package.
4545
*/
4646
export const MathtoolsMethods: Record<string, ParseMethod> = {
4747

@@ -104,7 +104,7 @@ export const MathtoolsMethods: Record<string, ParseMethod> = {
104104
},
105105

106106
/**
107-
* Replacement for the AMS HandleShove that incldues optional spacing values
107+
* Replacement for the AMS HandleShove that includes optional spacing values
108108
*
109109
* @param {TexParser} parser The active tex parser.
110110
* @param {string} name The name of the calling macro.
@@ -400,10 +400,17 @@ export const MathtoolsMethods: Record<string, ParseMethod> = {
400400
const base = new TexParser(arg, parser.stack.env, parser.configuration).mml();
401401
let mml = parser.create('node', 'mpadded', [
402402
parser.create('node', 'mpadded', [
403-
parser.create('node', 'mo', [parser.create('text', '\u22EE')])
404-
], {width: 0, lspace: '-.5width', ...(isFlush ? {height: '-.6em', voffset: '-.18em'} : {})}),
403+
parser.create('node', 'mo', [
404+
parser.create('text', '\u22EE')
405+
])
406+
], {
407+
width: 0,
408+
lspace: '-.5width', ...(isFlush ? {height: '-.6em', voffset: '-.18em'} : {})
409+
}),
405410
parser.create('node', 'mphantom', [base])
406-
], {lspace: '.5width'});
411+
], {
412+
lspace: '.5width'
413+
});
407414
parser.Push(mml);
408415
},
409416

@@ -573,6 +580,8 @@ export const MathtoolsMethods: Record<string, ParseMethod> = {
573580
*
574581
* @param {TexParser} parser The calling parser.
575582
* @param {string} name The macro name.
583+
* @param {string} c The base arrow for the slashed version
584+
* @param {string} dy A vertical offset for the slash
576585
*/
577586
NArrow(parser: TexParser, _name: string, c: string, dy: string) {
578587
parser.Push(

0 commit comments

Comments
 (0)