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

Math formula rendering issue with hexo-renderer-marked@6.3.0 #294

Open
6 tasks done
sitJac opened this issue Sep 14, 2024 · 1 comment
Open
6 tasks done

Math formula rendering issue with hexo-renderer-marked@6.3.0 #294

sitJac opened this issue Sep 14, 2024 · 1 comment

Comments

@sitJac
Copy link

sitJac commented Sep 14, 2024

Check List

  • I have already read README.
  • I have already searched existing issues and they are not help to me.
  • I examined error or warning messages and it's difficult to solve.
  • I am using the latest version of this repository.
  • I am using the latest version of Hexo.
  • My Node.js is matched the required version.

Describe the bug

When using hexo-renderer-marked@6.3.0 to build my blog system, there is an issue with rendering math formulas.

For example, the following math formula:

$$
\begin{cases}
u = f_x \frac{X}{Z} + c_x \\
v = f_y \frac{Y}{Z} + c_y
\end{cases}
$$

is supposed to be rendered as a two-line formula:
g

However, it is actually rendered as a single line:
Actual Rendering

Expected behavior

The math formula should be rendered as a two-line formula.

How to reproduce

  1. Install hexo-renderer-marked@6.3.0 in a Hexo project.
  2. Add the above math formula to a Markdown file.
  3. Generate the site using hexo generate.
  4. Open the generated HTML file in a browser.

Screenshots

No response

Environment information

- Hexo version: 7.3.0
- hexo-renderer-marked version: 6.3.0
- Node.js version: 16.20.2
- OS: Ubuntu 20.04

Additional context

No response

@uiolee
Copy link
Member

uiolee commented Sep 15, 2024

As I know, marked is a renderer of markdown, not math.

the render result of marked

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

2 participants