Michael Telatynski
e0ac200e27
Iterate PR
2021-06-22 22:23:09 +01:00
Michael Telatynski
a839d0f396
More typescript conversion
2021-06-22 17:23:13 +01:00
J. Ryan Stinnett
7821e00bc6
Revert to internal option
2021-05-10 17:36:33 +01:00
J. Ryan Stinnett
9c8e89ff79
Fix importing
2021-05-10 16:55:27 +01:00
J. Ryan Stinnett
f41fc7e46c
Upgrade cheerio
and resolve type errors
...
This helps resolve some type errors with `domhandler`. In addition, we convert
to the new way of using `htmlparser2` with `cheerio`.
2021-05-10 16:10:39 +01:00
Germain Souquet
2b6551d06a
Remove reliance on DOM API to generated message preview
2021-04-22 16:17:53 +01:00
Tulir Asokan
830080c23e
Add details and summary to allowed HTML tags
...
Implements MSC2184 (https://github.com/matrix-org/matrix-doc/pull/2184 )
Signed-off-by: Tulir Asokan <tulir@maunium.net>
2021-03-14 19:34:35 +02:00
Travis Ralston
533c9fed64
Appease the linter
2021-03-10 12:32:18 -07:00
Travis Ralston
1ac12479ca
Convert cases of mxcUrlToHttp to new media customisation
2021-03-10 12:32:18 -07:00
J. Ryan Stinnett
84b1f2e6c6
Resolve typing errors after TypeScript upgrade
2021-01-27 12:42:37 +00:00
J. Ryan Stinnett
44c705e41c
Look for emoji in the body that will be displayed
...
Fixes https://github.com/vector-im/element-web/issues/16013
2020-12-21 15:24:59 +00:00
J. Ryan Stinnett
162a5de82e
Rename and reformat Element URL pattern
...
This is just a code style cleanup. There are no behaviour changes in this
commit.
2020-12-21 13:05:45 +00:00
Aleks Kissinger
79baea9c4a
fixed indent
2020-11-26 17:54:11 +00:00
Aleks Kissinger
494ae3e421
parse html for latex rendering inside settings block
2020-11-26 17:45:11 +00:00
Aleks Kissinger
8233ce77cb
fixed duplicate import from merge
2020-11-10 18:26:09 +00:00
Aleks Kissinger
5f3af7863a
Merge branch 'develop' into katex
2020-11-10 18:19:20 +00:00
J. Ryan Stinnett
5f840da38a
Fix typo
2020-10-28 13:12:12 +00:00
J. Ryan Stinnett
ac7991c494
Add comment
2020-10-28 13:11:35 +00:00
J. Ryan Stinnett
9c8bc583e0
Hide inline images when preference disabled
...
As a first attempt, this drops inline images (as if they were not present at
all) when the "show images" preference is disabled. Future work might expose
some UI to reveal them like standalone image events have.
Fixes https://github.com/vector-im/element-web/issues/15573
2020-10-28 13:03:48 +00:00
Aleks Kissinger
10b732131a
use html parser rather than regexes
2020-10-14 22:16:28 +01:00
Aleks Kissinger
aafaf34233
Merge branch 'develop' into katex
2020-10-10 19:31:46 +01:00
Aleks Kissinger
96742fc309
latex math as labs setting
2020-10-10 16:32:49 +01:00
Aleks Kissinger
65c4460abc
whitespace fixes
2020-10-09 15:47:11 +01:00
Sorunome
34c15b5221
fix img tags not always being rendered correctly
2020-10-05 09:50:19 +02:00
Aleks Kissinger
d2054ea685
HTML output for cross-browser support
2020-09-25 09:05:22 +01:00
J. Ryan Stinnett
064ae187e2
Upgrade sanitize-html, set nesting limit
...
This uses the recently added option to allow specifying a nesting limit.
Fixes https://github.com/vector-im/element-web/issues/15122
2020-09-22 18:06:10 +01:00
Aleks Kissinger
aded3c9de2
cosmetic changes (lint)
2020-09-22 11:54:23 +01:00
Aleks Kissinger
24a1834f9b
support multi-line and escaped $
2020-09-21 09:00:24 +01:00
Aleks Kissinger
428a6b94ff
math off by default, enable with latex_maths flag
2020-09-20 15:07:12 +01:00
Aleks Kissinger
e78734bbf6
Deserialize back to math delimiters for editing
2020-09-20 14:20:35 +01:00
Aleks Kissinger
becc79d67a
send tex math as data-mx-maths attribute
2020-09-20 12:59:22 +01:00
Aleks Kissinger
0604c86779
added katex package and import
2020-09-19 15:45:35 +01:00
Michael Telatynski
6c39213116
remove unused class TextHighlighter
2020-09-01 15:37:07 +01:00
Michael Telatynski
9ba33c7f80
Fix eslint ts override tsx matching and delint
2020-08-29 01:11:08 +01:00
Michael Telatynski
718eeb4a81
Fix exception when stripping replies from an event with a null body
2020-08-12 10:40:25 +01:00
Hubert Chathi
2ce493307e
don't syntax highlight languages that begin with "_"
2020-07-21 12:47:40 -04:00
Michael Telatynski
8d5d3b1c92
Use html innerText for org.matrix.custom.html m.room.message room list previews
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-07-08 08:50:25 +01:00
Michael Telatynski
c5e8a0b5af
Convert HtmlUtils to TypeScript
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-07-08 08:40:58 +01:00