For improving footnote rendering (see the design page) I’ve discussed with @tmortagne and @mleduc that it would be very helpful to be able to store attributes of arbitrary type on XDOM
Blocks (in particular on
MacroMarkerBlocks). This would also be helpful for the compiled XDOM.
The proposal is to duplicate on the
Block interface what we have for parameters (
setParameters(Map<String, String>)), just with a different name and
Object as value type. These attributes should be ignored by renderers, they are just supposed to be used by transformations/macros internally. An implementation would also be provided in
AbstractBlock such that these new attributes would be usable on all blocks.
Now the main question is the name. Some ideas:
I think my favorite is 4 (
internalProperty) but I’m open to other suggestions.