Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It's not parsing LaTex syntax correctly #784

Closed
4 tasks done
lyzy0906 opened this issue Oct 20, 2023 · 2 comments
Closed
4 tasks done

It's not parsing LaTex syntax correctly #784

lyzy0906 opened this issue Oct 20, 2023 · 2 comments
Labels
🙋 no/question This does not need any changes 👎 phase/no Post cannot or will not be acted on

Comments

@lyzy0906
Copy link

lyzy0906 commented Oct 20, 2023

Initial checklist

Affected packages and versions

9.0.0

Link to runnable example

No response

Steps to reproduce

Here my original input text is a LaTex formula surrounded with \[ ... \] , but after it goes into the remark tree, the slash at the beginning is gone. Another slash before the last square is also gone.
Then it is not going to identify LaTex formula correctly with the pattern \[ ... \]
Please see the screenshot, I have console.log the input text, and the remark tree nodes.

image

Expected behavior

The slashes should be kept.

Actual behavior

The slashes are gone

Runtime

No response

Package manager

No response

OS

No response

Build and bundle tools

No response

@github-actions github-actions bot added 👋 phase/new Post is being triaged automatically 🤞 phase/open Post is being triaged manually and removed 👋 phase/new Post is being triaged automatically labels Oct 20, 2023
@wooorm
Copy link
Member

wooorm commented Oct 20, 2023

Read the readme on how to do math: https://github.com/remarkjs/react-markdown#use-remark-and-rehype-plugins-math.

@wooorm wooorm closed this as completed Oct 20, 2023
@wooorm wooorm added the 🙋 no/question This does not need any changes label Oct 20, 2023
@github-actions

This comment has been minimized.

@github-actions github-actions bot added 👎 phase/no Post cannot or will not be acted on and removed 🤞 phase/open Post is being triaged manually labels Oct 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🙋 no/question This does not need any changes 👎 phase/no Post cannot or will not be acted on
Development

No branches or pull requests

2 participants