diff --git a/.changeset/fifty-cougars-invent.md b/.changeset/fifty-cougars-invent.md new file mode 100644 index 000000000..20d63649c --- /dev/null +++ b/.changeset/fifty-cougars-invent.md @@ -0,0 +1,5 @@ +--- +'myst-to-typst': patch +--- + +Support additional greek characters in typst diff --git a/packages/myst-to-typst/src/utils.ts b/packages/myst-to-typst/src/utils.ts index 36fad28df..2e21317fe 100644 --- a/packages/myst-to-typst/src/utils.ts +++ b/packages/myst-to-typst/src/utils.ts @@ -49,8 +49,8 @@ const textOnlyReplacements: Record = { '©': '#emoji.copyright ', '®': '#emoji.reg ', '™': '#emoji.tm ', - '<': '\\< ', - '>': '\\> ', + '<': '\\<', + '>': '\\>', ' ': '~', ' ': '~', // eslint-disable-next-line no-irregular-whitespace @@ -105,9 +105,11 @@ const mathReplacements: Record = { '×': 'times', Α: 'A', α: 'alpha', + 𝜶: 'alpha', Β: 'B', β: 'beta', ß: 'beta', + 𝜷: 'beta', Γ: 'Gamma', γ: 'gamma', Δ: 'Delta', @@ -115,6 +117,7 @@ const mathReplacements: Record = { δ: 'delta', Ε: 'E', ε: 'epsilon', + 𝝴: 'epsilon', Ζ: 'Z', ζ: 'zeta', Η: 'H',