feat: Add math support with MathJax/KaTeX compatibility#110
Merged
Conversation
Implements #7 Migrate from deprecated Blackfriday to Goldmark markdown processor with math delimiter preservation. Math expressions using $...$ delimiters are preserved in HTML output for client-side rendering with MathJax 3 or KaTeX. Changes: - Migrate renderers/markdown.go from Blackfriday to Goldmark - Add hugo-goldmark-extensions/passthrough for math delimiter preservation - Preserve $...$ delimiters for both inline and display math - Update renderers/markdown_attrs.go for Goldmark compatibility - Add comprehensive test suite in renderers/markdown_math_test.go - Create example layout with MathJax 3 configuration - Create example page with math usage demonstrations - Update README.md with math support documentation All existing markdown features maintained (GFM, footnotes, definition lists, typographer). Full Jekyll compatibility with manual script injection in layouts. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
0e29db3 to
260717b
Compare
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.
Implements #7 (client-side rendering)
Migrate from deprecated Blackfriday to Goldmark markdown processor with math delimiter preservation. Math expressions using$...$ delimiters are preserved in HTML output for client-side rendering with MathJax 3 or KaTeX.
This implements client-side math rendering (similar to GitHub Pages). Server-side rendering (kramdown-math-katex, kramdown-math-sskatex) will be tracked separately for full Jekyll compatibility.
Changes:
All existing markdown features maintained (GFM, footnotes, definition lists, typographer). Compatible with Jekyll's client-side approach (manual script injection in layouts).
🤖 Generated with Claude Code