Skip to content

feat: add MathEmbed#2740

Open
Jonas-C wants to merge 1 commit intomasterfrom
feat/math-embed
Open

feat: add MathEmbed#2740
Jonas-C wants to merge 1 commit intomasterfrom
feat/math-embed

Conversation

@Jonas-C
Copy link
Copy Markdown
Contributor

@Jonas-C Jonas-C commented Mar 17, 2025

Se NDLANO/ndla-frontend#2432 for forklaring.

Comment on lines +24 to +27
<span ref={ref}>
{/* @ts-expect-error - Math is not a valid HTML element according to react */}
<math {...props} dangerouslySetInnerHTML={{ __html: mathContent }} />
</span>
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dette legger en span rundt matten. Har det noen praktisk betydning? Ser ut til å fungerer som det skal.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hadde overrasket meg om det hadde noe å si. Tror aldri vi leter etter matte-elementer med css.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants