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

New Hugo math equation support #589

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

alphapapa
Copy link
Contributor

See #481.

Copy link

netlify bot commented Apr 23, 2024

Deploy Preview for scientific-python-hugo-theme ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 59e65c1
🔍 Latest deploy log https://app.netlify.com/sites/scientific-python-hugo-theme/deploys/6628388cd805b000083b4067
😎 Deploy Preview https://deploy-preview-589--scientific-python-hugo-theme.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 67
Accessibility: 100
Best Practices: 100
SEO: 83
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify site configuration.

@alphapapa alphapapa marked this pull request as draft April 23, 2024 22:37
@alphapapa alphapapa self-assigned this Apr 23, 2024
In accordance with the recommendations in
<https://gohugo.io/content-management/mathematics>, the HTML HEAD
content goes in "baseof.html" rather than here, and after removing the
old implementation, this file is empty.
@jarrodmillman
Copy link
Member

I am a little confused about what Hugo actually added. It seems like we still have the same code, but we replace a regular expression to find the embedded math with several lines of configuration. I am not sure this is better than what we had. Sorry, I didn't look carefully at the description of the new feature.

I will take a closer look at this soon and see if it is much better than what we had before or what it gains us.

@alphapapa
Copy link
Contributor Author

Understood, will wait for further instructions. Thanks.

@jarrodmillman
Copy link
Member

It looks like it is mainly adding the pass-through extension.
https://github.com/gohugoio/hugo-goldmark-extensions?tab=readme-ov-file#passthrough-extension
That is worth having I think.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants