-
-
Notifications
You must be signed in to change notification settings - Fork 149
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
Add math rendering to posts using KaTeX #184
base: main
Are you sure you want to change the base?
Conversation
|
Name | Link |
---|---|
🔨 Latest commit | a36c64d |
@Gravydigger thank you for doing this & sorry for taking so long, I'll get this merge by next week |
ok, having a look on how RSS works in general and how its set up in this template, it seems that when a RSS reader fetches the full article, its up to the RSS reader to format it. the only way to fix it would be to include the content directly into the rss.xml, which might be undesirable. |
Ahh I see what you mean. That's a shame but I guess it makes sense it's all css. I know some readers will drop any custom stylesheet, so yeah you're probably right in that it's going to be including the content directly, which still might need 'cleaning-up'. Umm. I'm not completely against adding the content directly, e.g. Astro's docs, but I'm guessing it's not going to be much better, unfortunately, but I'll see what output we get. |
Here's the KaTeX docs if your curious and the stylesheet: Now KaTeX isn't the only option, as specified in the remark-math monorepo, MathJax being another option, but I wouldn't recommend. It has an option to turn the LaTeX into an SVG, but does break formatting on the website. The other options would require css aswell. |
This PR has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This PR has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Hi, I'm interested in this PR. Is there any way for me to help? Not KaTeX specific, but math notation in general, I'd be glad to contribute. |
The reason this has gone stale is more so over a design decision, than a technical implementation. |
What kind of changes does this PR include?
Description
Adds support of rendering TeX maths equations & symbols inside posts using KaTeX. Wrap a TeX statement with
$$
to allow rendering.Tex rendering before this PR:
Tex rendering after this