Skip to content

Commit

Permalink
Merge pull request #13 from curvenote/feat/overline
Browse files Browse the repository at this point in the history
📈 Support over/under line/brace/paren
  • Loading branch information
fwkoch authored Nov 4, 2024
2 parents 682a3b5 + 851e1a7 commit 4b04f0c
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ export function parseLatex(value: string) {
widehat: { signature: 'm' },
overset: { signature: 'm m' },
underset: { signature: 'm m' },
overbrace: { signature: 'm' },
overline: { signature: 'm' },
overparen: { signature: 'm' },
underbrace: { signature: 'm' },
underline: { signature: 'm' },
underparen: { signature: 'm' },
},
})
.processSync({ value });
Expand Down
18 changes: 18 additions & 0 deletions tests/math.yml
Original file line number Diff line number Diff line change
Expand Up @@ -164,3 +164,21 @@ cases:
typst: 'cal(F) != scr(C)'
macros:
- '#let scr(it) = text(features: ("ss01",), box($cal(it)$))'
- title: overline
tex: '\overline{A}'
typst: 'overline(A)'
- title: overbrace
tex: '\overbrace{A}'
typst: 'overbrace(A)'
- title: overparen
tex: '\overparen{A}'
typst: 'overparen(A)'
- title: underline
tex: '\underline{A}'
typst: 'underline(A)'
- title: underbrace
tex: '\underbrace{A}'
typst: 'underbrace(A)'
- title: underparen
tex: '\underparen{A}'
typst: 'underparen(A)'

0 comments on commit 4b04f0c

Please sign in to comment.