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

Multi-Line Equation Rendering with Unnecessary Markdown Marks #1

Open
Navxihziq opened this issue Mar 23, 2024 · 0 comments
Open

Multi-Line Equation Rendering with Unnecessary Markdown Marks #1

Navxihziq opened this issue Mar 23, 2024 · 0 comments

Comments

@Navxihziq
Copy link

Issue Description

When converting multi-line equations, the output would includes unnecessary leading "latex" and trailing "" markdown marks. These marks appear in the rendered equations on the demo website, disrupting the intended display and readability of content.

Expected vs. Actual Behavior

  • Expected: Equations rendered without any markdown formatting marks, maintaining clarity and presentation quality.
  • Actual: Output contains "latex" and "" marks, affecting equation readability and presentation.

Steps to Reproduce

  1. Navigate to the demo website.
  2. Upload the provided picture
  3. Observe the rendered output

Suggested Fix
Implement a regex-based solution to strip the leading and trailing markdown marks from equations before rendering.
Possible pattern: /^```latex\s+|\s+```$/g

testcase
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

No branches or pull requests

1 participant