-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Register Walktokens Behavior for extensions with different token structure #3170
Description
Describe the feature
In walkTokens(), traversing child tokens has to be handled differently for tables and lists, due to not holding a standard tokens object.
I have recently noticed that my extension marked-extended-tables fails to be walked correctly, since it has nearly the same structure as table but a different token type spanTable. I would like some way to register the expected walk path for extensions that do not have the standard tokens object.
Why is this feature necessary?
For compatibility with other extensions that use walkTokens(), because child tokens of marked-extended-table are not properly traversed.
Describe alternatives you've considered
Some kind of "on-the-fly" changing of the spanTable type back and forth between table and spanTable so it can still land in the correct spanTable Renderer, but this also fails due to slight differences in my token (spanTable supports multiple header rows for example).