This is purely a feature request/request for some quick help. I'm trying to add rudimentary support for MathJax, and I've done most of the work, but I'm having a little bit of trouble with my debugging.
The support, as I envision it, simply passes the contents of $foo$ and
through, without change. This way, the onus to import the mathjax libraries (or any other library) is on the user -- presumably by embedding the Cheapskate's Html in their product. However, I am having some problems getting the $$ parsers to work. I defined a new Container called 'DisplayMath'. I am unable to "close" the DisplayMath container. The closest I have gotten is with this case in continueContainer:
DisplayMath -> nfb $ string "\n$$"
This results in:
DisplayMath
BlankLine ""
"\\sin \\pi = 0"
DisplayMath
BlankLine ""
BlankLine ""
"The quick brown $\\pi$ jumps over the lazy dog."
BlankLine "",fromList [])
on the input
$$
\sin \pi = 0
$$
The quick brown $\pi$ jumps over the lazy dog.
Which makes it look like the second $$ is closing the environment but is not getting consumed, so it is triggering a new DisplayMath container. What is the proper place to consume the $$'s?
Sorry, I hope this request for help isn't too tangential to your goals. I really would like to make some nice, high quality code for your library.
This is purely a feature request/request for some quick help. I'm trying to add rudimentary support for MathJax, and I've done most of the work, but I'm having a little bit of trouble with my debugging.
The support, as I envision it, simply passes the contents of$foo$ and
through, without change. This way, the onus to import the mathjax libraries (or any other library) is on the user -- presumably by embedding the Cheapskate's Html in their product. However, I am having some problems getting the $$ parsers to work. I defined a new Container called 'DisplayMath'. I am unable to "close" the DisplayMath container. The closest I have gotten is with this case in continueContainer:
This results in:
on the input
Which makes it look like the second $$ is closing the environment but is not getting consumed, so it is triggering a new DisplayMath container. What is the proper place to consume the $$'s?
Sorry, I hope this request for help isn't too tangential to your goals. I really would like to make some nice, high quality code for your library.