riot-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 Fix strict `strictNullChecks` to `src/editor/*` (#10428 2023-03-23 13:35:55 +00:00
mock.ts Make more of the codebase conform to strict types (#10857) 2023-05-16 14:25:43 +01:00
model-test.ts Fix autocomplete not resetting properly on message send (#10741) 2023-04-28 13:31:02 +00:00
operations-test.ts Fix jest/no-conditional-expect lint and enable it (#10307) 2023-03-07 13:58:10 +00:00
parts-test.ts
position-test.ts Make more of the codebase conform to strict types (#10857) 2023-05-16 14:25:43 +01:00
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