New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add method AbstractBlock.append(AbstractNode) to add a child node to a block #325
Comments
@mojavelinux: Shouldn't this already work like this?
|
Aha! That is true. I didn't think about that since I always use the append method internally in Asciidoctor core. I think we should still add the method though. But it's good to know that it's no longer a showstopper. |
Keep in mind the append method is important because, in the future, we may augment the method to automatically reparent the node (just like in DOM). |
...and that would be why I am consistent about using the append method in core. |
…k) to append child blocks
…k) to append child blocks
…k) to append child blocks
…k) to append child blocks
Fixed with #337 |
See http://discuss.asciidoctor.org/AsciidoctorJ-Block-Processor-Problems-tp3150p3297.html:
As you can see from my previous message, we are missing two key methods in the AsciidoctorJ API.
First, we need to add the append method to the AbstractBlock interface. This method allows child blocks to be added to a block.
The text was updated successfully, but these errors were encountered: