summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorSavagePeanut <sourcehut@lazytapir.com>2024-01-20 18:59:41 -0600
committerSavagePeanut <sourcehut@lazytapir.com>2024-01-20 18:59:41 -0600
commit5e8d9ccf2f28936fabf6d155b37347d91a4fd1c5 (patch)
tree6c5333ecc6a6dcc83d61708c369ebb25ccc33ac5 /README.md
parent91987c153449ea8b8ecb55cbc5968669e35454cb (diff)
style mentions. 1.6
Diffstat (limited to 'README.md')
-rw-r--r--README.md5
1 files changed, 3 insertions, 2 deletions
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, (String, String)>) -> String