From 5e8d9ccf2f28936fabf6d155b37347d91a4fd1c5 Mon Sep 17 00:00:00 2001 From: SavagePeanut Date: Sat, 20 Jan 2024 18:59:41 -0600 Subject: style mentions. 1.6 --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index c768844..4db6bf9 100644 --- a/README.md +++ b/README.md @@ -31,9 +31,10 @@ Most of them correspond to [XEP-0393: Message Styling](https://xmpp.org/extensio Methods: -format_for_telegram(body: String) -> (body: String, Vec<(format: String, offset: usize, length: usize, language: String)>) +format_for_telegram(body: String, mentions: Optional<(_, start, end_index_exclusive)>) + -> (body: String, Vec<(format: String, offset: usize, length: usize, language: String)>) -format_for_matrix(body: String) -> body: String +format_for_matrix(body: String, mentions: Optional<(mxid, start, end_index_exclusive)>) -> body: String format_body(body: String, new_tags: HashMap) -> String -- cgit v1.2.3