Releases: DeDiamondPro/MineMark
Releases · DeDiamondPro/MineMark
MineMark 1.2.3
- Massively improve how whitespaces are handled, this should fix a lot of issues
- Fix newlines not being replaced with spaces.
- Fixed text in
<pre>
tags not wrapping, this is needed to adhere to the maxWidth and since MineMark does not provide any sideways scrolling implementation - Fixed possible issue that if markdown contains the
<minemark>
tag it would cause the markdown rendering to reset, or maybe even cause a crash - Fixed Minecraft rendering implementation defining MineMark as a dependency instead of minemark, fixed that is said compile instead of runtime, and fixed the core version not being included in the pom
MineMark 1.2.2
- Fixed tabs before HTML elements causing extra padding between paragraphs
@Internal
usages to@OverrideOnly
this is far better for IDE feedback by @ThatGravyBoat- Adds a
complete
method to Element when the element has been fully parsed by @ThatGravyBoat - Adds a
remove
method toLayoutStyle
forStyleType
s by @ThatGravyBoat - Add getters for
style
,qName
andattributes
to Element - Add support for using
Reader
in the Elementa and Minecraft implementation.
MineMark 1.2.1
Add support for custom styles in LayoutStyle
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
MineMark 1.1.0
ElementLoader
has been renamed toElementCreator
and a function has been added to it where you can say if the element is applicable to given variables, this allows for more flexibility (for example when creating an element when thediv
tag has anexample
attribute)- Add support for the
style
attribute, allowing for usage of a subset of inline css. List of currently supported css elements:color
text-align
text-decoration
font-size
- Made the list element more lenient, if there is no containing
ol
orul
tag, it will now no longer throw an error and instead default to an unordered list - Multiple elements can now be applied to a single HTML tag, this follows insertion order in the builder
- Functions have been added to insert an element at a specific point in the list of elements inside the builder
MineMark 1.0.2
- Added a raw Minecraft rendering implementation
- Added a close method to markdown elements to cleanup elements if needed
- Added the ability to get all line positions after an layout has been created
1.0.1
MineMark 1.0.1
Allow specifying of a charset, this is useful when using unicode characters. The default charset MineMark will use is UTF-8
MineMark 1.0.0
The very first release of MineMark, for more info please see the readme.