element-web/test/editor
Denis Kasak 5aefd4652a
Treat lists with a single empty item as plain text, not Markdown. (#6833)
* Treat lists with a single empty item as plain text, not Markdown.

This allows users to send simple messages such as `-`, `+`, `*` and
`2021.` without Element Web mangling them into a nonsensical empty list.
As soon as any non-whitespace content is added to the item, it switches
back to treating it as a list of one item.

Fixes vector-im/element-web#7631.

* Fix type errors.

* Lint.

---------

Co-authored-by: Michael Weimann <michaelw@matrix.org>
Co-authored-by: Johannes Marbach <johannesm@element.io>
2023-08-17 16:37:19 +00:00
..
__snapshots__
caret-test.ts Fix caret jump when backspacing into empty line at beginning of editor (#11128) 2023-06-23 15:24:05 +00:00
deserialize-test.ts Handle newlines in user pills (#11166) 2023-07-05 22:00:27 +00:00
diff-test.ts
history-test.ts
mock.ts
model-test.ts
operations-test.ts
parts-test.ts
position-test.ts
range-test.ts
roundtrip-test.ts
serialize-test.ts Treat lists with a single empty item as plain text, not Markdown. (#6833) 2023-08-17 16:37:19 +00:00