Skip to content

Releases: daenvil/MarkdownLabel

v1.4.0

11 Jan 16:41

Choose a tag to compare

Added

  • Support for using the text property as a shortcut for markdown_text (PR#19 by betalars and PR#20, #2)
  • Auto-translation when markdown_text is 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. The get_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 text property is no longer stored in scene files, avoiding redundant information
  • Image tooltips now use the tooltip option instead of the hint flag

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

08 Mar 08:11

Choose a tag to compare

Updated for Godot 4.4

  • Added UIDs

Might cause some warnings if adding to a Godot 4.4 project that was already using the previous version of the addon.

v1.2.1

17 Jan 16:47

Choose a tag to compare

  • Fixed icon.svg not scaling properly (#13)
  • Fixed header formats not updating properly in the editor (#14)

v1.2.0

04 Jun 18:52
ad95a65

Choose a tag to compare

  • Added customizable header colors:
    • Header levels have two new properties: override_font_color and font_color. When override_font_color is true, the headers will have its font color set to the font_color property. When override_font_color is false (default), headers will use the same font color as the rest of the text.
    • Implemented originally by halkeye (#8).
  • 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.
  • Added support for handling unhandled links (#10):
    • Added the unhandled_link_clicked signal, which is emitted when the MarkdownLabel node does not handle a click on a link automatically.
    • Added the assume_https_links property (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 the unhandled_link_clicked signal). Ignored if automatic_links is disabled.
  • 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.
  • Fixed bug where a table could break all the following text.

v1.1.0

16 Dec 11:49
1e36d5b

Choose a tag to compare

  • Implemented automatic handling of links:
    • Can be turned off with the automatic_links property.
    • 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).
  • The bbcode_enabled and text properties are now hidden on the editor (#1).

1.0.0 - Beta

28 Oct 14:44

Choose a tag to compare

1.0.0 - Beta Pre-release
Pre-release

Needs some more testing and setting up for the Asset Library, but every desired feature is already implemented.