feat: KaTeX math rendering + image lightbox for articles#51
Merged
Conversation
Schema/config support that #22 (protein essay) and #18 (k8s benchmark note) both depend on. Extracted to a single PR so the content PRs can be reduced to just their prose. KaTeX: - Wire remark-math + rehype-katex into MDX in astro.config.mjs so math renders at build time (no client JS). - Add katex / rehype-katex / remark-math as deps. - Import katex.min.css in global.css with a small dark-theme override block so equations sit in the warm palette instead of black/white. ImageLightbox: - Extract the inline lightbox HTML/CSS/JS into src/components/ui/ImageLightbox.astro — a single component included once in ArticleLayout. Any .article-content figure image now gets click-to-zoom (close on backdrop / X button / Escape, no deps). cspell.json: - Add the names and terms used by both pending content PRs so they pass spell-check after they rebase down to pure content: - K8s benchmark note: journalctl, systemd - Math/LaTeX vocabulary: lightbox, eigencomponents, mathbb, mathbf, mathcal, bigl, bigr - Protein essay names: Schoenberg, Wüthrich, ChimeraX, PIBIC, RMSD, MDE, RCSB, PGDm, Gonçalves, Birgin, Martínez, Raydan, UCSF After this lands, both #22 and #18 can rebase to drop their schema/config commits and become pure prose+figure PRs.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Schema/config support that #22 (protein essay) and #18 (k8s benchmark note) both depend on. Extracted into a single PR so the content PRs can be reduced to just their prose.
After this lands, both #22 and #18 rebase to drop their schema/config commits and become pure prose+figure PRs.
What's in it
KaTeX math rendering
remark-math+rehype-katexinto the MDX integration inastro.config.mjsso equations render at build time (no client JS).katex,rehype-katex,remark-mathas deps.katex/dist/katex.min.cssinglobal.csswith a small dark-theme override block so math sits in the warm palette instead of black/white.Image lightbox
src/components/ui/ImageLightbox.astro— a self-contained component.ArticleLayout. Any.article-content figure imgnow gets click-to-zoom (close on backdrop / X button / Escape, no deps).cspell.json
What's not in it
.nvmrcfrom feat: add k8s CI benchmark note (kind vs k3d vs k3s) #18 — superseded by the pixi pin to `nodejs = "22.*"` already on mainTest plan