Login  Register

Re: asciidoctorj and document attributes

Posted by David Jencks on May 12, 2020; 4:58pm
URL: https://discuss.asciidoctor.org/asciidoctorj-and-document-attributes-tp5960p7989.html

You have to:

— traverse the entire tree in order
— replay the attributes, and when you’re done reset them.

If you can understand javascript, you can find an example in David Jencks / asciidoctor-mathjax.js
I assume the necessary methods are exposed in AsciidoctorJ, but I don’t know, and there seem to be some limitations there, so it might not be possible.

David Jencks

On May 12, 2020, at 8:19 AM, Daniel K [via Asciidoctor :: Discussion] <[hidden email]> wrote:

Hi all,
does somebody know if there is already solution for this issue?

I am facing the same problem:

====== Title
[#myid]
:status: new
:otherattr:
--
Bla Bla Bla
--

I need to access the attributes :status:, :otherattr: within a TreeProcessor.

Is there maybe a workaround in asciidoctorj 1.6.x?

Thanks!


If you reply to this email, your message will be added to the discussion below:
https://discuss.asciidoctor.org/asciidoctorj-and-document-attributes-tp5960p7988.html
To start a new topic under Asciidoctor :: Discussion, [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML