From fb1f04d7a4957baab42ca5d40fdbc8ec6b257547 Mon Sep 17 00:00:00 2001 From: Joshua Horowitz Date: Thu, 5 Sep 2024 03:34:46 -0700 Subject: [PATCH] fix: stop double-processing tex in spans --- packages/compiler/src/output/latex/tex-format.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/compiler/src/output/latex/tex-format.js b/packages/compiler/src/output/latex/tex-format.js index 5a48393..78af828 100644 --- a/packages/compiler/src/output/latex/tex-format.js +++ b/packages/compiler/src/output/latex/tex-format.js @@ -233,7 +233,7 @@ export class TexFormat { return this.size(ast, getClasses(ast) .map(cls => this.options.classes.get(cls)) .filter(x => x) - .reduce((s, c) => this.command(s, c), this.fragment(ast))); + .reduce((s, c) => this.command(s, c), ast)); } link(ast) {