Skip to content

Commit

Permalink
Add equuation jsx.
Browse files Browse the repository at this point in the history
  • Loading branch information
felixfeng33 committed Aug 19, 2024
1 parent 2ec2a7e commit da25fe3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/test-utils/src/jsx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ const ELEMENT_COLUMN = 'column';
const ELEMENT_INLINE_DATE = 'inline_date'
const ELEMENT_CALLOUT = 'callout';
const ELEMENT_TOC = 'toc';
const ELEMENT_EQUATION = 'equation';
const ELEMENT_INLINE_EQUATION = 'inline_equation';

const elements: HyperscriptShorthands = {
ha: { type: ELEMENT_LINK },
Expand All @@ -82,6 +84,7 @@ const elements: HyperscriptShorthands = {
hcolumn: { type: ELEMENT_COLUMN },
hcolumngroup: { type: ELEMENT_COLUMN_GROUP },
hdefault: { type: ELEMENT_PARAGRAPH },
hequation: { type: ELEMENT_EQUATION },
hexcalidraw: { type: ELEMENT_EXCALIDRAW },
hh1: { type: ELEMENT_H1 },
hh2: { type: ELEMENT_H2 },
Expand All @@ -91,6 +94,7 @@ const elements: HyperscriptShorthands = {
hh6: { type: ELEMENT_H6 },
himg: { children: voidChildren, type: ELEMENT_IMAGE },
hinlinedate: { children: voidChildren, type: ELEMENT_INLINE_DATE },
hinlineequation: { type: ELEMENT_INLINE_EQUATION },
hli: { type: ELEMENT_LI },
hlic: { type: ELEMENT_LIC },
hmediaembed: { children: voidChildren, type: ELEMENT_MEDIA_EMBED },
Expand Down

0 comments on commit da25fe3

Please sign in to comment.