Replies: 1 comment 4 replies
-
Hey! Math, like code, is supposed to be separate things, I think. I also don’t maintain mathjax. I have no idea how they work regularly. How does your idea work when you’re not using these plugins, but are just using mathjax regularly, do different containers with different math stuff share state? I can see why not sharing state is also beneficial. What if different blocks define the same identifier? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I am trying to refer to an equation before it is tagged. So something like:
file: test.md
When rendered, I get a
(???)
from the first\eqref{}
, and the expected(1)
from the second one.The options I pass to the
rehypeMathjaxChtml
function are:I think a double-pass might be helpful here, with the first pass generating the anchor-links and the second pass filling in the references - but this will require some sort of state control. Any idea how I can accomplish this ? If there are any scientists using
remark-mathjax
, I am sure you have already figured this one out as it seems like a common enough scenario. Any help would be greatly appreciated !Thanks very much!
Beta Was this translation helpful? Give feedback.
All reactions