Closed GarkGarcia closed 4 years ago
It is also worth noting that the asciimath
block macro is working correctly.
This issue could be avoided in the future with the introduction of tests targeting the rendering of the asciimath
inline and block macros.
We need to refactor the code now. After a lot of edits, the code is messay.
Fixed on 050841e.
This a follow up to https://github.com/asciidoctor/asciidoctor-mathematical/pull/82#issuecomment-632622291. I recently implemented AsciiMath support. It has just been released.
However, I now realize the
asciimath
inline macro is incorrectly handled. Basically, it is handled in exact the same way thelatexmath
inline macro is. That means the macro is not processing AsciiMath code, it's actually processing LaTeX directly. In other words, currently theasciimath
inline macro is functionally equivalent to thelatexmath
inline macro. This is an error.I'm working on a patch, but I may need some help on it. This issue was cause by my inability to comprehend how inline stem blocks are currently handled. I think I've now got things figured out, but I'd like someone to review the patch in detail to make sure the implementation is not broken again.