Skip to content

Commit

Permalink
Merge pull request #384 from superle3/textareas
Browse files Browse the repository at this point in the history
added mathrm and color to text environments inside math blocks
  • Loading branch information
artisticat1 authored Feb 1, 2025
2 parents 6bca7f7 + e30fc8f commit a5355f7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/utils/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,9 @@ export class Context {
this.isWithinEnvironment(this.pos, {openSymbol: "\\text{", closeSymbol: "}"}) ||
this.isWithinEnvironment(this.pos, {openSymbol: "\\tag{", closeSymbol: "}"}) ||
this.isWithinEnvironment(this.pos, {openSymbol: "\\begin{", closeSymbol: "}"}) ||
this.isWithinEnvironment(this.pos, {openSymbol: "\\end{", closeSymbol: "}"})
this.isWithinEnvironment(this.pos, {openSymbol: "\\end{", closeSymbol: "}"}) ||
this.isWithinEnvironment(this.pos, {openSymbol: "\\mathrm{", closeSymbol: "}"}) ||
this.isWithinEnvironment(this.pos, {openSymbol: "\\color{", closeSymbol: "}"})
);
}

Expand Down

0 comments on commit a5355f7

Please sign in to comment.