element-web/src/editor
Johannes Marbach abd39c61b1
Add support for MD / HTML in room topics (#8215)
* Add support for MD / HTML in room topics

Setting MD / HTML supported:
- /topic command
- Room settings overlay
- Space settings overlay

Display of MD / HTML supported:
- /topic command
- Room header
- Space home

Based on extensible events as defined in [MSC1767]

Fixes: vector-im/element-web#5180
Signed-off-by: Johannes Marbach <johannesm@element.io>

[MSC1767]: matrix-org/matrix-spec-proposals#1767

* Fix build error

* Add comment to explain origin of styles

Co-authored-by: Travis Ralston <travpc@gmail.com>

* Empty commit to retrigger build

* Fix import grouping

* Fix useTopic test

* Add tests for HtmlUtils

* Add slash command test

* Add further serialize test

* Fix ternary formatting

Co-authored-by: Travis Ralston <travpc@gmail.com>

* Add blank line

Co-authored-by: Travis Ralston <travpc@gmail.com>

* Properly mock SettingsStore access

* Remove trailing space

* Assert on HTML content and add test for plain text in HTML parameter

* Appease the linter

* Fix JSDoc comment

* Fix toEqual call formatting

* Repurpose test for literal HTML case

* Empty commit to fix CI

Co-authored-by: Travis Ralston <travpc@gmail.com>
Co-authored-by: Travis Ralston <travisr@matrix.org>
2022-06-07 14:20:32 -06:00
..
autocomplete.ts Apply corrections identified by SonarQube (#8457) 2022-05-03 22:04:37 +01:00
caret.ts Avoid a reflow when setting caret position on an empty composer (#8348) 2022-04-17 09:45:34 -04:00
commands.tsx Allow using room pills in slash commands (#7513) 2022-01-12 09:40:18 +00:00
deserialize.ts Fix editing of non-html replies (#8418) 2022-04-27 10:43:10 +02:00
diff.ts Replace deprecated String#substr with String#slice (#8314) 2022-04-14 07:52:42 +00:00
dom.ts Run a minor code quality checker over the repo (#8524) 2022-05-09 22:52:05 +00:00
history.ts improve types 2021-07-12 13:26:34 +01:00
model.ts Prevent infinite loops by dropping the input instead of crashing browser (#7632) 2022-01-26 10:16:01 +00:00
offset.ts improve types 2021-07-12 13:26:34 +01:00
operations.ts Run a minor code quality checker over the repo (#8524) 2022-05-09 22:52:05 +00:00
parts.ts Fix edge case around composer handling gendered facepalm emoji (#8686) 2022-05-25 12:41:36 +01:00
position.ts improve types 2021-07-12 13:26:34 +01:00
range.ts Improve formatting features in the editor (#7104) 2022-03-16 09:46:07 +00:00
render.ts Enlarge emoji in composer (#7602) 2022-01-24 12:53:05 +00:00
serialize.ts Add support for MD / HTML in room topics (#8215) 2022-06-07 14:20:32 -06:00