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

Fixed the problem of not handling HTML entities. #1

Merged
merged 1 commit into from
Oct 1, 2021

Conversation

tenheadedlion
Copy link
Contributor

Hello, thank you for the nice work, very helpful.

Recently I found it failed to handle HTML files that do not even contain mathjax expressions, for example:

<!DOCTYPE html>
<html>
<body>
<ul>
<li>&ldquo;a&rdquo;</li>
<li>&copy;</li>
</ul>

</body>
</html>

It turns out that mathjax by default does not support HTML entities like &ldquo;, it is an issue of configuration, according to mathjax/MathJax-demos-node#16

so by simply add require('mathjax-full/js/util/entities/all.js'); to .eleventy.js the problem is gone, so far I am using it without any trouble

@tsung-ju tsung-ju merged commit d436d5a into tsung-ju:main Oct 1, 2021
@tsung-ju
Copy link
Owner

tsung-ju commented Oct 1, 2021

Thank you!

@tsung-ju
Copy link
Owner

tsung-ju commented Oct 1, 2021

Published as v2.0.2.

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