element-web/test/editor
herkulessi fa60edf00f
Ignore permalink_prefix when serializing pills (#11726)
* Ignore permalink_prefix when serializing Markdown

fixes vector-im/element-web/issues/26002

During serialization of messages, pills were wrongfully serialized to a URL
starting with `permalink_prefix`. This is against the Spec (which mandates
https://matrix.to/#/ links) and the resulting pills were not recognized as
pills in other clients.

Spec-Appendix concerning matrix.to links: https://spec.matrix.org/v1.8/appendices/#matrixto-navigation

Signed-off-by: Lars Wickel <git@herkulessi.de>

* Test for pill serialization with permalink_prefix set

Signed-off-by: Lars Wickel <git@herkulessi.de>

* Test that permalink_prefix is used for permalink creation

Signed-off-by: Lars Wickel <git@herkulessi.de>

* Fix lint issues introduced

Signed-off-by: Lars Wickel <git@herkulessi.de>

* Incorporate requested changes

Signed-off-by: Lars Wickel <git@herkulessi.de>

---------

Signed-off-by: Lars Wickel <git@herkulessi.de>
Co-authored-by: herkulessi <git@herkulessi.de>
Co-authored-by: David Baker <dbkr@users.noreply.github.com>
2024-08-01 11:17:44 +00:00
..
__snapshots__
caret-test.ts
deserialize-test.ts Deserialise spoilers back into slash command form (#11805) 2023-10-26 13:35:02 +00:00
diff-test.ts
history-test.ts
mock.ts
model-test.ts
operations-test.ts Use `*` for italics as it doesn't break when used mid-word (#12523) 2024-05-15 09:01:45 +00:00
parts-test.ts
position-test.ts
range-test.ts
roundtrip-test.ts
serialize-test.ts Ignore permalink_prefix when serializing pills (#11726) 2024-08-01 11:17:44 +00:00