riot-web/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__
caret-test.ts
deserialize-test.ts Fix editing of non-html replies (#8418) 2022-04-27 10:43:10 +02:00
diff-test.ts
history-test.ts
mock.ts Fix regression around pasting links (#8537) 2022-05-09 12:39:32 +00:00
model-test.ts
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
range-test.ts
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