asciidoctor / asciidoctorj

:coffee: Java bindings for Asciidoctor. Asciidoctor on the JVM!
http://asciidoctor.org
Apache License 2.0
617 stars 172 forks source link

setContext not exposed in API #1251

Closed RayOffiah closed 7 months ago

RayOffiah commented 7 months ago

It's a usual case, but I need to be able to set the context of a block. If I remember rightly, setContext is available in the Ruby API and the Javascript API.

Additionally, there are some elements for which you cannot retrieve the context (source listing blocks, for example). I think this is because the getContext is defined in ContentNode, rather than the structural node.

RayOffiah commented 7 months ago

Ah, my mistake.

It's fine as part of the ContentNode.