Release v1.31.2 - Text formatting

A patch update to address one rather urgent issue with text formatting.

Improvements

Text formatting

The entire text formatting function has been re-written. The reason for the rewrite was primarily because of a bug in the link parser that could crash the client for anyone receiving a link written in a certain way.

The improvements includes:

  • More robust formatting and HTML escaping.

  • Link formatting no longer vulnerable to catastrophic backtracking.

  • Links are no longer internally formatted. E.g.:

    :shows a link -> https://example.com/test--this--link
    

    will not subscript “this”.

  • Commands are no longer internally formatted. E.g.:

    ooc You can type: `set gender = --Unknown--`
    

    will not subscript “Unknown”, but instead produce:
    cmd_unformatted

  • Hovering a link will now show the URL, so you more easily know where the link goes:
    link_hover

  • Removed support for markdown-style link titles because of the reason above.

Thanks to @Makyo for discovering the bug! :grin:

3 Likes