Add math latex support#703
Open
hypengw wants to merge 1 commit into
Open
Conversation
mrueg
reviewed
Jan 5, 2026
| // Must be registered with a higher priority than goldmark's linkParser to make sure goldmark doesn't parse | ||
| // the <ac:*/> tags. | ||
| util.Prioritized(cparser.NewConfluenceTagParser(), 199), | ||
| util.Prioritized(cparser.NewMathLatexParser(), 200), |
Collaborator
There was a problem hiding this comment.
Can you make this a feature similar to the mkdocsadmonitions above?
mrueg
reviewed
Jan 5, 2026
| func (r *ConfluenceMathLatexRenderer) renderBlock(w util.BufWriter, source []byte, n ast.Node, entering bool) (ast.WalkStatus, error) { | ||
| if entering { | ||
| node := n.(*cparser.MathLatexBlock) | ||
| quoteType := "ppl mathjax block macro" |
Collaborator
There was a problem hiding this comment.
Is this a default in confluence or does it need to be installed separately?
Contributor
Author
There was a problem hiding this comment.
Contributor
Author
There was a problem hiding this comment.
Maybe we can make the plugin name a command-line option.
I don’t think generating PNGs for math latex is a good approach.
Another option is to generate HTML with JavaScript resource, but the Confluence environment might be on a private network and unable to access external resources.
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.
No description provided.