You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 27, 2024. It is now read-only.
To help with rendering of mentions, web clients attach attributes to the HTML link tag <a> to identify the link as a mention and keep track of it's type. Now that this library is responsible for parsing Matrix mentions, this is no longer necessary.
When I get the internal content as HTML (get_content_as_html()), it should have the data-mention-type attribute with an appropriate value (room or user):
Problem
To help with rendering of mentions, web clients attach attributes to the HTML link tag
<a>
to identify the link as a mention and keep track of it's type. Now that this library is responsible for parsing Matrix mentions, this is no longer necessary.Solution 1
<a>
tags to custom html tags for mentions #714Solution 2
Depends on
Given some mentions are parsed by the library into a mention nodes:
When I get the internal content as HTML (
get_content_as_html()
), it should have thedata-mention-type
attribute with an appropriate value (room
oruser
):Note that
get_content_as_message_html()
should not return this attribute.The text was updated successfully, but these errors were encountered: