Skip to content

Commit 9cb280a

Browse files
authored
🐛 Typst option on inlineMath node (#2242)
1 parent 5c723bf commit 9cb280a

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.changeset/silver-zebras-hide.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"myst-spec-ext": patch
3+
---
4+
5+
Add typst option to inlineMath node

packages/myst-spec-ext/src/types.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,11 @@ export type AlgorithmLine = Parent & {
6868
enumerator?: string;
6969
};
7070

71-
export type InlineMath = SpecInlineMath & Target;
71+
export type InlineMath = SpecInlineMath &
72+
Target & {
73+
/** Typst-specific math content. If not provided, LaTeX content will be converted to Typst. */
74+
typst?: string;
75+
};
7276

7377
export type Math = SpecMath & {
7478
kind?: 'subequation';

0 commit comments

Comments
 (0)