Skip to content

MineMark 1.2.0

Compare
Choose a tag to compare
@DeDiamondPro DeDiamondPro released this 30 Jun 18:25
· 15 commits to master since this release
  • SingleTagMultiElement has been removed since it was causing some issues, it has been replaced with a better and stricter alternative
  • FormattingElement has now been added, this is a special type of element that can only update the LayoutStyle. 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