Skip to content
Open
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions ts/input/tex.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ export class TeX<N, T, D> extends AbstractInputJax<N, T, D> {
* @override
*/
public reset(tag: number = 0) {
this.parseOptions.clear();
this.parseOptions.tags.reset(tag);
}

Expand Down
2 changes: 1 addition & 1 deletion ts/input/tex/Configuration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ export class Configuration {
}

/**
* Creates an unnamed, ephemeral package configuration. It will not added to
* Creates an unnamed, ephemeral package configuration. It is not added to
* the configuration handler.
*
* @param {object} config See `create` method.
Expand Down
2 changes: 1 addition & 1 deletion ts/input/tex/TexParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -248,11 +248,11 @@ export default class TexParser {
* @returns {MmlNode} The internal Mathml structure.
*/
public mml(): MmlNode {
this.configuration.popParser();
if (!this.stack.Top().isKind('mml')) {
return null;
}
const node = this.stack.Top().First;
this.configuration.popParser();
const latex = this.trimTex(this.string);
if (latex) {
node.attributes.set(TexConstant.Attr.LATEX, latex);
Expand Down
1 change: 1 addition & 0 deletions ts/input/tex/textmacros/TextMacrosConfiguration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ export const TextMacrosConfiguration = Configuration.create('textmacros', {
//
const config = data.data.packageData.get('textmacros');
config.parseOptions.nodeFactory.setMmlFactory(config.jax.mmlFactory);
config.parseOptions.clear();
},
],
[ConfigurationType.OPTIONS]: {
Expand Down
Loading