Re: Asciidoc not processing stem blocks correctly
Posted by
David Jencks on
URL: https://discuss.asciidoctor.org/Asciidoc-not-processing-stem-blocks-correctly-tp7681p7684.html
When I was writing asciidoctor-mathjax I ran into a similar inconsistency between block and inline. I think it has to do with when they are processed, but I don’t really understand the details. Fixing the algorithm to walk the tree rather than query it and tracking the attributes fixed the problems.
When you process a chapter at a time, the :stem: declaration is in the document attributes so it’s always visible. My suggestion of putting it at the top of the book.adoc gives the same effect for the book…. does it work?
thanks
David Jencks
On Feb 26, 2020, at 1:22 PM, siddjain [via Asciidoctor :: Discussion] <
[hidden email]> wrote:
Thanks David.
Its pretty weird because my stem blocks are getting processed but any inline stem is not getting processed.
E.g., this gets processed
[stem]
++++
p = \frac{t}{2^{256}}
++++
but this does not
Geometric Distribution: stem:[p*(1-p)^{n-1}]
and as I said if I run asciidoctor-pdf on the chapter itself, there is no problem. So its very puzzling.