Commit Graph

141 Commits

Author SHA1 Message Date
n-peugnet
58c20698d6 Fix mangled newlines in some code blocks
Because some tokens can contain newlines and not only comment tokens, I
removed the comments specific code to handle newlines in a more generic
way.
2022-10-19 13:53:21 +02:00
Tulir Asokan
71f16b797f
Merge pull request #388 from n-peugnet/newlines-nohtml
Preserve newlines in plain text messages
2022-10-19 14:33:22 +03:00
n-peugnet
77b3fffba1 s/Html/HTML/g 2022-10-19 13:30:16 +02:00
Tulir Asokan
1b097337df
Merge pull request #391 from n-peugnet/fix-add-reaction-increment
Fix redraw of incremented reaction counts
2022-10-18 14:06:52 +03:00
n-peugnet
8c3c4d31f1 Fix redraw of incremented reaction counts 2022-10-16 19:29:33 +02:00
n-peugnet
bfc7dd5196 Preserve newlines in plain text message 2022-10-10 20:30:13 +02:00
n-peugnet
82cf2ee816 Fallback to "plaintext" lexer in codeblock parser
This avoids "malformed message" in the timeline when the lexer for a
given language is not found.
2022-10-10 12:36:51 +02:00
Tulir Asokan
030c0c6ec5 Fix rendering empty/malformed messages 2022-04-19 12:01:56 +03:00
Tulir Asokan
b6fba5230a Enable inline URLs by default on VTE terminals 2022-04-16 19:59:34 +03:00
Tulir Asokan
b3e989ee0f Use xurls instead of custom regex for finding links 2022-04-16 19:26:24 +03:00
n-peugnet
0da7d78138 Display inline code in messages
The Textcolor is also set to make sure it is readable
with black on white themes
2022-04-16 17:53:47 +02:00
Tulir Asokan
e08f23ba65 Only linkify text if inline URLs are enabled 2022-04-15 23:44:59 +03:00
Tulir Asokan
ebe3fcc33c Re-add function for service messages 2022-04-15 23:31:48 +03:00
Tulir Asokan
66233721a2 Get rid of special-cased plaintext rendering. Fixes #273 2022-04-15 23:28:23 +03:00
Tulir Asokan
7bf6785689 Linkify links in HTML messages too 2022-04-15 23:25:12 +03:00
Tulir Asokan
8752b3e848 Linkify links in plaintext messages 2022-04-15 22:51:07 +03:00
Tulir Asokan
fa7a4d8320 Fix BaseEntity.String() 2022-04-15 22:36:06 +03:00
Tulir Asokan
6414b8bd13 Use inline link for file download URL 2022-04-15 22:30:07 +03:00
Tulir Asokan
97491eb6c0 Add support for inline URLs
Fixes #71
Fixes #168
2022-04-15 22:09:15 +03:00
Tulir Asokan
e46694a33f Ignore newlines in HTML completely again 2022-04-15 20:29:23 +03:00
Tulir Asokan
a5bdba204e Add support for rendering spoilers. Fixes #331 2022-04-15 15:14:22 +03:00
Tulir Asokan
1b4aa60114 Add slightly hacky workaround to fix #316 2022-04-15 14:03:08 +03:00
Tulir Asokan
18aeb8ba9d Improve removing unnecessary whitespace in HTML 2022-04-15 12:58:27 +03:00
Tulir Asokan
899bdbc705 Update tcell 2022-04-15 12:53:09 +03:00
Tulir Asokan
f6326f69df Don't show links with data-mautrix-exclude-plaintext attribute 2021-08-02 21:46:21 +03:00
Tulir Asokan
3964b6fd89 Fix some formatting and enable pretty panics in non-debug mode. Closes #265 2021-03-11 22:53:13 +02:00
Tulir Asokan
1437a799e5 Don't panic on empty code block. Fixes #237 2020-10-20 13:29:54 +03:00
Kasper Seweryn
56256b8937
Fix mangled comment newlines in code blocks (#214)
Fixes #120
2020-09-04 18:09:41 +03:00
Tulir Asokan
15ed2a75b5
Fix minor code style details 2020-08-18 18:01:19 +03:00
ReK2
3439b94e0e fix changes requested 2020-08-17 21:03:28 +02:00
ReK2
0f77c17e9c enable to show html as plain text if enabled and the url and text is not the same or nor contains data-mautrix-no-link 2020-08-17 20:51:20 +02:00
ReK2
2a1329d981 first changes to show urls 2020-08-15 06:59:02 +02:00
Tulir Asokan
ecdd4f08cb Support edits without m.new_content 2020-07-05 17:54:05 +03:00
Tulir Asokan
ceedeb7a41 Fix rendering displayname change events 2020-06-24 22:59:47 +03:00
Tulir Asokan
68956c4c63 Check if PrevContent is nil before using. Fixes #181 2020-06-24 22:54:41 +03:00
Tulir Asokan
646a8637ff Show decryption errors more accurately. Fixes #174 2020-06-23 22:28:28 +03:00
Tulir Asokan
376a2e5d84 Update mautrix-go 2020-06-23 21:43:25 +03:00
Tulir Asokan
38d5ef5603 Add alias management command and alt_aliases rendering
* /alias command can be used to create and remove local aliases
* Changes to the alt_aliases are now rendered properly
2020-06-17 14:15:22 +03:00
Tulir Asokan
0988b0590c Make e2ee optional 2020-05-05 20:38:58 +03:00
Tulir Asokan
22681875f3 Update mautrix-go and give crypto module access to state store 2020-05-05 18:39:28 +03:00
Tulir Asokan
a9dff6da73 Add support for encrypted files 2020-04-29 02:45:54 +03:00
Tulir Asokan
0943374892 Update copyright year 2020-04-19 18:10:14 +03:00
Tulir Asokan
5ee6aa72db Update mautrix-go content stuff 2020-04-19 15:01:16 +03:00
Tulir Asokan
815190be14 Update stuff and move pushrules to mautrix-go 2020-04-19 15:01:16 +03:00
Tulir Asokan
a6f6fb3ef2 Display thumbnail for all files and add commands to download and open files 2020-04-08 15:30:29 +03:00
Simon Magnin-Feysot
41e7b018c1 command toggle downloads 2020-04-07 19:06:10 +02:00
Simon Magnin-Feysot
8b68140dc9 refactor to allow every file message to be downloaded 2020-04-07 18:20:06 +02:00
smagnin
f0e5e0022f add text for video message 2020-04-07 01:26:02 +02:00
Tulir Asokan
3c21281ada Implement selecting message to reply/react to with keyboard 2020-03-01 17:11:56 +02:00
Tulir Asokan
9d132d328b Add support for replying and reacting to messages 2020-03-01 00:33:37 +02:00