Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractHtmlRepresentations ¶ added in v1.7.0
func ExtractHtmlRepresentations(event gomatrixserverlib.PDU) ([]string, error)
ExtractHtmlRepresentations extracts all HTML representations from a Matrix event. **Note**: This doesn't currently process extensible events, but in future when it does it may return more than one HTML representation. Callers should not assume that this only ever returns zero or one HTML representation. Returns nil if the event has no HTML representations.
func RenderToText ¶
func RenderToText(event gomatrixserverlib.PDU) ([]string, error)
Types ¶
type MessageEventContent ¶
Click to show internal directories.
Click to hide internal directories.