riot-web/test
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__
accessibility
audio
autocomplete
components Update matrix-analytics-events to @matrix-org/analytics-events (#8778) 2022-06-07 20:08:36 +01:00
editor Add support for MD / HTML in room topics (#8215) 2022-06-07 14:20:32 -06:00
end-to-end-tests Move update tests to Cypress (#8716) 2022-05-30 13:40:55 +00:00
hooks Add public room directory hook (#8626) 2022-05-19 09:03:29 +01:00
i18n
i18n-test Fall back to untranslated string rather than showing missing translation error (#8609) 2022-05-16 13:28:24 +01:00
images
img
notifications
settings Fix font not resetting when logging out (#8670) 2022-05-26 09:56:53 +01:00
setup
stores Use random widget IDs for video rooms (#8739) 2022-06-02 09:10:22 -04:00
test-utils Add support for MD / HTML in room topics (#8215) 2022-06-07 14:20:32 -06:00
utils Live location share - enable reply and react to tiles (#8721) 2022-06-02 15:43:19 +00:00
.eslintrc.js Eslint - require copyright header rule (#8514) 2022-05-06 09:09:28 +00:00
CallHandler-test.ts Make system fonts work more reliably (#8602) 2022-05-23 17:29:16 +01:00
DecryptionFailureTracker-test.js
DeviceListener-test.ts
HtmlUtils-test.tsx Add support for MD / HTML in room topics (#8215) 2022-06-07 14:20:32 -06:00
Image-test.ts
KeyBindingsManager-test.ts
Markdown-test.ts
MatrixClientPeg-test.ts
PosthogAnalytics-test.ts
Reply-test.ts
RoomNotifs-test.ts Fix js-sdk types (#8588) 2022-05-13 19:13:21 +00:00
ScalarAuthClient-test.ts
SlashCommands-test.tsx Add support for MD / HTML in room topics (#8215) 2022-06-07 14:20:32 -06:00
Terms-test.tsx
TextForEvent-test.ts Eslint - require copyright header rule (#8514) 2022-05-06 09:09:28 +00:00
UserActivity-test.ts
createRoom-test.ts Use random widget IDs for video rooms (#8739) 2022-06-02 09:10:22 -04:00
globalSetup.js Eslint - require copyright header rule (#8514) 2022-05-06 09:09:28 +00:00
languageHandler-test.ts
linkify-matrix-test.ts
setupTests.js Eslint - require copyright header rule (#8514) 2022-05-06 09:09:28 +00:00
useTopic-test.tsx Add support for MD / HTML in room topics (#8215) 2022-06-07 14:20:32 -06:00