Releases: daenvil/MarkdownLabel
Releases · daenvil/MarkdownLabel
v1.4.0
Added
- Support for using the
textproperty as a shortcut formarkdown_text(PR#19 by betalars and PR#20, #2) - Auto-translation when
markdown_textis set to a localization key and the node is set to auto-translate (PR#18 by betalars) - Handling YAML/TOML front-matter when using the
display_file()method. Theget_frontmatter()method can be used afterwards to retrieve it (#15). - Alt text for images
- Horizontal rules / thematic breaks, with customization options (exclusive for Godot 4.5+)
- Option on each header level's format to automatically draw horizontal rule below headers (#17)
Changed
- Improved documentation
- The
textproperty is no longer stored in scene files, avoiding redundant information - Image tooltips now use the
tooltipoption instead of thehintflag
Fixed
- Markdown conversion could be executed multiple times in a single frame. Now it uses a dirty flag system to only be executed when it's strictly needed.
v1.3.0
v1.2.1
v1.2.0
- Added customizable header colors:
- Header levels have two new properties:
override_font_colorandfont_color. Whenoverride_font_coloristrue, the headers will have its font color set to thefont_colorproperty. Whenoverride_font_coloris false (default), headers will use the same font color as the rest of the text. - Implemented originally by halkeye (#8).
- Header levels have two new properties:
- Added support for task lists (#4):
- Starting an unordered list item with
[ ]or[x]will create a checkbox. - The checkboxes are clickable by default and emit a signal when clicked.
- There's an option to disable cliking on checkboxes.
- There's an option to customize the checkbox.
- See the README file in the repo for more info.
- Starting an unordered list item with
- Added support for handling unhandled links (#10):
- Added the
unhandled_link_clickedsignal, which is emitted when the MarkdownLabel node does not handle a click on a link automatically. - Added the
assume_https_linksproperty (default:true). If enabled, unrecognized links will be opened as HTTPS URLs (e.g. "example.com" will be opened as "https://example.com"). If disabled, unrecognized links will be left unhandled (emitting theunhandled_link_clickedsignal). Ignored ifautomatic_linksis disabled.
- Added the
- Added support for custom syntax (#7):
- Refactored the processing of all syntax elements into individual methods so they can be overridden if desired (
_process_text_formatting_syntax(),_process_link_syntax(), etc.). - Added two empty methods:
_preprocess_line()and_process_custom_syntax()which can be overridden to insert custom syntax.
- Refactored the processing of all syntax elements into individual methods so they can be overridden if desired (
- Fixed bug where a table could break all the following text.
v1.1.0
- Implemented automatic handling of links:
- Can be turned off with the
automatic_linksproperty. - Valid URLs and mails are opened with user default settings.
- Headers are assigned an id following the same pattenr as Github-flavored markdown.
- When clicked, links to that id make the label automatically scroll to their header (#3).
- Can be turned off with the
- The
bbcode_enabledandtextproperties are now hidden on the editor (#1).
1.0.0 - Beta
Needs some more testing and setting up for the Asset Library, but every desired feature is already implemented.