Quantcast

AST for raw source from List and ListItem

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

AST for raw source from List and ListItem

sean.osterberg
Hi everyone, I want to process and alter the raw list and list item source from an Asciidoc file, ideally using an AsciidoctorJ tree processor or block processor. The Asciidoctor AST doesn't provide a method to extract the raw source text from a list or its items, and neither does AbstractBlock from which it inherits. The Block class does provide the lines() method but a list or list item can't be casted to it. This other forum post was helpful to figure out the possibilities and limitations here.

Is there an alternative method to get and alter the list item source using the AST, or is this just a gap with its current implementation? Happy to file an issue to request this feature.

Thank you!
Loading...