MineMark 1.2.0
SingleTagMultiElement
has been removed since it was causing some issues, it has been replaced with a better and stricter alternativeFormattingElement
has now been added, this is a special type of element that can only update theLayoutStyle
. One HTML tag can have multiple formatting elements.
This changes how you should structure your custom elements:
- A normal element should be used when something has to be drawn or you have to interact with the layout of the markdown.
- A formatting element should be used if you have to change the style, for example for if you have to update text color, size, .... Keep in mind a formatting element cannot draw anything.
- Keep in mind that while you can have multiple formatting elements per HTML tag, you can now only have one normal element per HTML tag