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
Johannes Marbach
d7677c7e21
Handle newlines in user pills ( #11166 )
...
* Handle newlines in user pills
Fixes : vector-im/element-web#10994
* Fix typo in comment
Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
* Refactor link generation for better readability
* Use `<br>` instead of `<br/>`
* Fix copy/paste error
---------
Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
2023-07-05 22:00:27 +00:00
Timothy Amello
1d9df7ec51
Apply strictNullChecks to Markdown.ts ( #10623 )
...
Co-authored-by: Kerry <kerrya@element.io>
2023-04-17 07:41:51 +00:00
Michael Telatynski
da7aa4055e
Conform more of the code base to strict null checking ( #10147 )
...
* Conform more of the code base to strict null checking
* More strict fixes
* More strict work
* Fix missing optional type
* Iterate
2023-02-13 17:01:43 +00:00
Michael Telatynski
030b7e90bf
Enable @typescript-eslint/explicit-function-return-type
in /src ( #9788 )
...
* Enable `@typescript-eslint/explicit-member-accessibility` on /src
* Prettier
* Enable `@typescript-eslint/explicit-function-return-type` in /src
* Fix types
* tsc strict fixes
* Delint
* Fix test
* Fix bad merge
2023-01-12 13:25:14 +00:00
Michael Telatynski
f1e8e7f140
Enable @typescript-eslint/explicit-member-accessibility
on /src ( #9785 )
...
* Enable `@typescript-eslint/explicit-member-accessibility` on /src
* Prettier
2022-12-16 12:29:59 +00:00
Michael Weimann
526645c791
Apply prettier formatting
2022-12-12 12:24:14 +01:00
Michael Telatynski
8c0d202df4
Enable tsc alwaysStrict, strictBindCallApply, noImplicitThis ( #9600 )
...
* Enable tsc alwaysStrict
* Enable tsc strictBindCallApply
* Enable tsc noImplicitThis
* Add d.ts
* Improve types
* Add ?
* Increase coverage
* Improve coverage
2022-11-21 11:24:59 +00:00
Michael Weimann
18c03daa86
Fix links being mangled by markdown processing ( #9570 )
2022-11-14 10:52:42 +01:00
Michael Telatynski
964c60d086
Apply corrections identified by SonarQube ( #8457 )
2022-05-03 22:04:37 +01:00
Robin
1f4e286db9
Fix formatting not being applied after links ( #7990 )
2022-03-08 13:12:36 +00:00
J. Ryan Stinnett
6199c337ea
Fix spacing errors ( #7484 )
2022-01-10 12:57:20 +00:00
Aaron Raimist
2e8a93834b
Auto fix
...
Signed-off-by: Aaron Raimist <aaron@raim.ist>
2021-12-09 09:10:23 +00:00
Dariusz Niemczyk
961fec9081
Refactor matrix-linkify module ( #7279 )
...
Refactor the module to make it easier for upgrade and proper separation of code contexts
2021-12-03 14:00:56 +00:00
Dariusz Niemczyk
fda0c2cf79
Fix markdown formatting for bold ( #7257 )
...
* Fix markdown formatting for bold
Fix https://github.com/vector-im/element-web/issues/4674
* I hate you too eslint
2021-12-02 10:56:23 +00:00
Dariusz Niemczyk
e3187ed15c
Fix links being parsed as markdown links improperly ( #7200 )
...
* Fix links being parsed as markdown links improperly
Fixes #4674
* Fix a typo
* Fix overriding too much stuff
* Fix parsing
* Remove useless console.log
* Remove unnecessary emph function
* Properly fix tests
* Add some better docs
* Add missing license header
2021-11-30 18:09:05 +00:00
Renan Cleyson
5c895bf3f6
Fix newline on edit messages with quotes ( #7227 )
2021-11-30 10:25:08 +00:00
Renan Cleyson
d939e45d00
Fix multiline paragraph rendering as single line ( #7210 )
2021-11-29 10:47:35 +00:00
David Baker
fda17b4959
Add types to the implementations too
...
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
2021-07-01 23:02:51 +01:00
David Baker
c1310bcd9f
Better types
2021-07-01 21:31:17 +01:00
David Baker
e6b754f8dd
Convert Markdown to TypeScript
2021-07-01 20:33:25 +01:00