Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

The lib does not correctly render some latex types that are normally rendered by MathJaxΒ #92

@dnlsilva

Description

@dnlsilva

Describe the bug
If you pass the latex directly to lib via props, for example, the lib will crash.
If you pass the latex manually, the lib works, but it renders the wrong latex.

LaTeX
Latex: \[\tiny A\, \scriptsize A \, \small A \, \normalsize A \, \large A \, \Large A\, \LARGE A \, \huge A \, \Huge A\]
Escaped Latex: \tiny A\, \scriptsize A \, \small A \, \normalsize A \, \large A \, \Large A\, \LARGE A \, \huge A \, \Huge A

Expected behavior
268870577-83ab3d13-0a06-450c-a3b4-89d574bf8263

What is rendered:
Screenshot 2023-09-19 at 11 06 49

Error when i pass the value as prop:
Screenshot 2023-09-19 at 11 08 03

Related:
RocketChat/Rocket.Chat.ReactNative#5215

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions