Releases: DeDiamondPro/MineMark
Releases · DeDiamondPro/MineMark
MineMark 1.3.1
- Fix minecraft-*-fabric projects not being remapped correctly by loom when included in a build
MineMark 1.3.0
LayoutStylenow usesStyleEntryfor everything, this should make it a lot more user friendly if you don't want to use the default elements but want to create your own, possibly with other style entries. The old methods still exist, but have been deprecated.StyleTypehas been renamed toStyleEntry, theidfield has been removed since it was never actually used, and could lead to confusion about how the system works, the instance of the class is the key, not the id.- Added a default value to
StyleEntry, allowing you to specify a default for when there is no value present in theLayoutStyle, this default can be retrieved with the normalLayoutStyle.get(StyleEntry)function. BasicElementnow gets passed the mouse position when rendering- Fixed a bug causing some padding to apply to the wrong element.
- Nested list elements no longer apply the padding again
- The Minecraft rendering implementation has been partially rewritten to use stonecutter, and now supports more Minecraft versions.
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
@Internalusages to@OverrideOnlythis is far better for IDE feedback by @ThatGravyBoat- Adds a
completemethod to Element when the element has been fully parsed by @ThatGravyBoat - Adds a
removemethod toLayoutStyleforStyleTypes by @ThatGravyBoat - Add getters for
style,qNameandattributesto Element - Add support for using
Readerin the Elementa and Minecraft implementation.
MineMark 1.2.1
Add support for custom styles in LayoutStyle
MineMark 1.2.0
SingleTagMultiElementhas been removed since it was causing some issues, it has been replaced with a better and stricter alternativeFormattingElementhas 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
ElementLoaderhas been renamed toElementCreatorand 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 thedivtag has anexampleattribute)- Add support for the
styleattribute, allowing for usage of a subset of inline css. List of currently supported css elements:colortext-aligntext-decorationfont-size
- Made the list element more lenient, if there is no containing
olorultag, 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.