The following PR ensures that links with trailing spaces will be transformed to regular Oneboxes instead of inline Oneboxes:
~~https://github.com/discourse/discourse/pull/8893~~