Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
ListItem doesn't quack like an AbstractNode #2979
I'm writing a TreeProcessor extension and have had to put in some defensive stuff to handle
The error I see is
This is asciidoctor 1.5.8
The data structure for the items of a description list block differs from other lists. The items property uses the following structure:
Each term and the description are ListItem objects.
You can see how these are iterated in the default HTML converter.
The node API was not originally designed to be public, so it has some quirks that carry over from the early days. We could entertain a cleaner API after the 2.0.0 release.
Thanks for the quick reply and deep explanation Dan.
I think an API for walking the tree that just yielded nodes and allowed, or even expected, you to completely replace the children would be ideal for processing the AST. It would be nice to be able to use