Closed peter-jerry-ye closed 2 years ago
Have your tried to use asciimath macro directly? To my best knowledge, the above case shall not work since it does not specify the stem type. We encourage to use the concrete stem macro directly.
Have your tried to use asciimath macro directly?
You mean like this:
= Test
:stem:
== Content
asciimath:[[[1,2,3\],[4,5,6\]\]]
It doesn't work either, nor with this one
= Test
:stem:
== Content
[asciimath]
++++
[[1,2,3\],[4,5,6\]\]
++++
To my best knowledge, the above case shall not work since it does not specify the stem type. We encourage to use the concrete stem macro directly.
This is the exact example given in the official document of asciidoc, so I don't see why it shall not work.
There used to be an asciimath handler, it seems the the handler does not work.
How about [[1,2,3],[4,5,6]]
in block stem? The handler is still there in the code and shall work.
How about
[[1,2,3],[4,5,6]]
in block stem?
It renders correctly.
OK. This seems a problem in the expression itself. You do not have to escape them in block macros. The inline macro can not handle []
at the moment, unfortunately.
Problem
The asciimath matrix is not rendered correctly
Input
Command
asciidoctor-pdf -r asciidoctor-mathematical Test.adoc
Expected
Output
Gem Versions
Ascii85 (1.1.0) asciidoctor (2.0.16) asciidoctor-mathematical (0.3.5) asciidoctor-pdf (1.6.1) asciimath (2.0.3)