Skip to content

Commit

Permalink
🎭 Support more characters in typst export (#1738)
Browse files Browse the repository at this point in the history
  • Loading branch information
fwkoch authored Jan 9, 2025
1 parent cefb2a1 commit ea19e66
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/fifty-cougars-invent.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'myst-to-typst': patch
---

Support additional greek characters in typst
7 changes: 5 additions & 2 deletions packages/myst-to-typst/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ const textOnlyReplacements: Record<string, string> = {
'©': '#emoji.copyright ',
'®': '#emoji.reg ',
'™': '#emoji.tm ',
'<': '\\< ',
'>': '\\> ',
'<': '\\<',
'>': '\\>',
' ': '~',
' ': '~',
// eslint-disable-next-line no-irregular-whitespace
Expand Down Expand Up @@ -105,16 +105,19 @@ const mathReplacements: Record<string, string> = {
'×': 'times',
Α: 'A',
α: 'alpha',
𝜶: 'alpha',
Β: 'B',
β: 'beta',
ß: 'beta',
𝜷: 'beta',
Γ: 'Gamma',
γ: 'gamma',
Δ: 'Delta',
'∆': 'Delta',
δ: 'delta',
Ε: 'E',
ε: 'epsilon',
𝝴: 'epsilon',
Ζ: 'Z',
ζ: 'zeta',
Η: 'H',
Expand Down

0 comments on commit ea19e66

Please sign in to comment.