I want to use
rendering.transformation.icon.mappings = (i) = information
with info macro, we can manually add (i) before the content to get this.
But i want to be dynamic one, every time when i select info macro, icon mapping should prepend to the content.
Like this,
I have tried to modify in source, but somehow i get icon for both info & warning.
To get for only info, i have provided an condition,
if(context.getCurrentMacroBlock().getId() == "info")
{
content = "(i) " + content;
}
But somehow it is not working Do i miss any?