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

feat: add remark-math and rehype-katex to support latex math expression #151

Closed
wants to merge 1 commit into from

Conversation

gyunseo
Copy link

@gyunseo gyunseo commented Oct 15, 2023

This Pull Request resolves #150

  • added remark-math@5.1.1 and rehype-katex@6.0.3 packages (the latest packages has some issues. please check out this issue)
  • update astro.config.mjs to add remark-math in remark plugins
  • update astro.config.mjs to add remark-katex in rehype plugins
  • update Layout.astro to get katex stylesheet in head tag

the following image is what you get after changing above things.

image

update Layout.astro head tag to get Katex stylesheet
@satnaing
Copy link
Owner

I mentioned about this feature in #150. So would you like to create a new PR for how-to blog post? I might co-author if required.

@satnaing
Copy link
Owner

I'll close this PR for now.
Thanks for your interest in contributing to AstroPaper.
If you wish, you can submit a PR for a 'how-to' post.

@satnaing satnaing closed this Dec 15, 2023
@gyunseo
Copy link
Author

gyunseo commented Dec 16, 2023

@satnaing I see! I'm going to make a new PR for how-to blog post.

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.

suggestion: support latex math expressions using remark-math and rehype-katex
2 participants