How to handle adoc-mode stem and latexmath blocks fully
I have been using math-preview to preview asciidoc latexmath equations, these are of this form in my document:
[latexmath#an-example,reftext="equation ({counter:eqn})"]
++++
\begin{equation}
\sum_{i=0}^{2} A_i = 0
\end{equation}
++++
This renders the equation between the ++++ markings, which is ok, however I would like to replace the whole thing with the previewed equation to improve readability. Since math-preview-tex-marks are strings and not regexp, I don't think I can do it.
Is there any other way to accomplish this?