element-web-Github/test/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
..
__snapshots__ Unit test typescriptification - editor utils (#8226) 2022-04-06 12:40:13 +01:00
caret-test.ts Unit test typescriptification - editor utils (#8226) 2022-04-06 12:40:13 +01:00
deserialize-test.ts Fix editing of non-html replies (#8418) 2022-04-27 10:43:10 +02:00
diff-test.ts Unit test typescriptification - editor utils (#8226) 2022-04-06 12:40:13 +01:00
history-test.ts Unit test typescriptification - editor utils (#8226) 2022-04-06 12:40:13 +01:00
mock.ts Fix regression around pasting links (#8537) 2022-05-09 12:39:32 +00:00
model-test.ts Unit test typescriptification - editor utils (#8226) 2022-04-06 12:40:13 +01:00
operations-test.ts Fix regression around pasting links (#8537) 2022-05-09 12:39:32 +00:00
parts-test.ts Fix edge case around composer handling gendered facepalm emoji (#8686) 2022-05-25 12:41:36 +01:00
position-test.ts Unit test typescriptification - editor utils (#8226) 2022-04-06 12:40:13 +01:00
range-test.ts Unit test typescriptification - editor utils (#8226) 2022-04-06 12:40:13 +01:00
roundtrip-test.ts Tests for roundtrips md<->HTML (#8696) 2022-05-27 13:10:22 -06:00
serialize-test.ts Add support for MD / HTML in room topics (#8215) 2022-06-07 14:20:32 -06:00