element-portable/src/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
..
autocomplete.ts Improve quality of Typescript types (#10742) 2023-05-05 09:11:14 +01:00
caret.ts Fix caret jump when backspacing into empty line at beginning of editor (#11128) 2023-06-23 15:24:05 +00:00
commands.tsx Improve types for sendEvent (#12335) 2024-03-25 12:48:48 +00:00
deserialize.ts Update all non-major dependencies (#12815) 2024-07-24 10:53:13 +00:00
diff.ts Replace deprecated String#substr with String#slice (#8314) 2022-04-14 07:52:42 +00:00
dom.ts Make more of the codebase conform to strict types (#10857) 2023-05-16 14:25:43 +01:00
history.ts Make more of the codebase conform to strict types (#10857) 2023-05-16 14:25:43 +01:00
model.ts Update dependency prettier to v3 (#12095) 2024-01-02 18:56:39 +00:00
offset.ts Update dependency prettier to v3 (#12095) 2024-01-02 18:56:39 +00:00
operations.ts Use * for italics as it doesn't break when used mid-word (#12523) 2024-05-15 09:01:45 +00:00
parts.ts Don't consider textual characters to be emoji (#12582) 2024-07-04 17:48:07 +00:00
position.ts Update dependency prettier to v3 (#12095) 2024-01-02 18:56:39 +00:00
range.ts Update dependency prettier to v3 (#12095) 2024-01-02 18:56:39 +00:00
render.ts Conform more code to strict null checking (#10167) 2023-02-16 17:21:44 +00:00
serialize.ts Ignore permalink_prefix when serializing pills (#11726) 2024-08-01 11:17:44 +00:00