Skip to content

Commit

Permalink
feat: latex builder
Browse files Browse the repository at this point in the history
  • Loading branch information
Entkenntnis committed Apr 11, 2024
1 parent feffab7 commit 3cc6d3a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions apps/web/src/components/math-skills/utils/math-builder.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { StaticMath } from '@editor/plugins/text/static-components/static-math'

import { cn } from '@/helper/cn'

export function buildFrac(
Expand Down Expand Up @@ -55,6 +57,10 @@ export function buildVec2(
)
}

export function buildLatex(src: string) {
return <StaticMath src={src} inline type="math" />
}

export function buildBlock(
color: 'gray' | 'green' | 'orange',
x: JSX.Element | string
Expand Down

0 comments on commit 3cc6d3a

Please sign in to comment.