Clemens Zeidler
57cd8afbc4
Split ApplySelection into CompleteOrPrevSelection and CompleteOrNextSelection
...
When moving through the autocomplete selection list distinguish between
the following cases:
1) When there is no autocomplete window open, only open one and select
the first item when the CompleteOrPrevSelection /
CompleteOrNextSelection actions are emitted (e.g. by pressing SHIFT +
TAB, TAB)
2) Otherwise navigate through the selection list (e.g. SHIFT + TAB, TAB,
UP, DOWN)
- Remove references to raw keyboard events in autocomplete.ts
- Clarify the purpose of startSelection (previously onTab)
Signed-off-by: Clemens Zeidler <clemens.zeidler@gmail.com>
2021-03-29 13:38:03 +13:00
Travis Ralston
7c8c85161d
Merge pull request #5748 from SimonBrandner/compat-for-non-rich-text-clients
...
Show room alias in plain/formatted body
2021-03-11 11:29:26 -07:00
Šimon Brandner
d4f67d94a4
Use resourceId in plain body
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-03-11 18:53:06 +01:00
Šimon Brandner
62fa60f109
Use resourceId in formatted body
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-03-11 18:50:54 +01:00
Panagiotis
a1eabde3a3
fix: create a PillCandidatePart on the beginning of a part string
2021-03-11 19:14:04 +02:00
J. Ryan Stinnett
b12cf7912a
Merge pull request #5624 from SimonBrandner/show-room-name
...
Display room name in pills instead of address
2021-03-08 16:27:43 +00:00
Jaiwanth
d731e82fba
Fixed edit for markdown images
...
Signed-off-by: Jaiwanth <jaiwanth2011@gmail.com>
2021-03-01 22:44:48 +05:30
Šimon Brandner
cb5237a18b
Display room name instead of alias
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-02-12 14:21:07 +01:00
macekj
0c85cb587d
Merge branch 'develop' into emoji_quick_shortcut
2020-12-04 11:05:50 -05:00
macekj
ba8d02a808
add quick shortcut emoji feature and tests
...
Signed-off-by: macekj <macekj@umich.edu>
2020-11-17 17:36:58 -05:00
Aleks Kissinger
839bae21ae
made single and double $ default delimiters
2020-11-10 18:18:53 +00:00
Aleks Kissinger
2204e6c64e
generate valid block html for commonmark spec
2020-10-25 18:32:24 +00:00
Aleks Kissinger
06b20fad95
removed implicit "this"
2020-10-23 18:49:56 +01:00
Aleks Kissinger
cc713aff72
add fallback output in code block AFTER markdown processing
2020-10-14 09:35:57 +01:00
Aleks Kissinger
aafaf34233
Merge branch 'develop' into katex
2020-10-10 19:31:46 +01:00
Aleks Kissinger
96742fc309
latex math as labs setting
2020-10-10 16:32:49 +01:00
Michael Telatynski
af4c95e267
apply to whitespace in general
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-09-29 14:17:44 +01:00
Michael Telatynski
ffa7ceb70e
Trim range when formatting so that it excludes leading/trailing spaces
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-09-29 14:15:20 +01:00
Aleks Kissinger
aded3c9de2
cosmetic changes (lint)
2020-09-22 11:54:23 +01:00
Aleks Kissinger
4df8754aad
allow custom latex delimiters in config.json
2020-09-21 11:00:39 +01:00
Aleks Kissinger
24a1834f9b
support multi-line and escaped $
2020-09-21 09:00:24 +01:00
Aleks Kissinger
7e6d7053e0
Revert "send fallback in pre tags, not code" (code looks better)
...
This reverts commit e4448ae1ad
.
2020-09-20 17:02:27 +01:00
Aleks Kissinger
e4448ae1ad
send fallback in pre tags, not code
2020-09-20 16:52:29 +01:00
Aleks Kissinger
428a6b94ff
math off by default, enable with latex_maths flag
2020-09-20 15:07:12 +01:00
Aleks Kissinger
e78734bbf6
Deserialize back to math delimiters for editing
2020-09-20 14:20:35 +01:00
Aleks Kissinger
becc79d67a
send tex math as data-mx-maths attribute
2020-09-20 12:59:22 +01:00
J. Ryan Stinnett
ce226ab534
Replace Riot with Element in docs and comments
...
This only covers the simple cases of references to issues and repos. More
complex areas, such as deployment scripts, will be handled separately.
Part of https://github.com/vector-im/element-web/issues/14864
2020-08-03 18:33:36 +01:00
Michael Telatynski
c578026474
Merge branches 'develop' and 't3chguy/fix/13641' of github.com:matrix-org/matrix-react-sdk into t3chguy/fix/13641
...
Conflicts:
src/editor/parts.ts
2020-07-24 08:18:20 +01:00
Michael Telatynski
c8832f5582
Fix autocompletion of Community IDs
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-07-23 14:47:42 +01:00
Michael Telatynski
adba9415b3
Fix Firefox composer regression exception
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-07-23 09:25:01 +01:00
Hubert Chathi
cbe4f04cd7
Merge pull request #5029 from uhoreg/sanitize_language
...
don't syntax highlight languages that begin with "_"
2020-07-21 13:12:51 -04:00
Michael Telatynski
93884cb89b
Update PlainBasePart to only split on space boundaries
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-07-21 17:50:24 +01:00
Hubert Chathi
2ce493307e
don't syntax highlight languages that begin with "_"
2020-07-21 12:47:40 -04:00
Jorik Schellekens
d86eb5eb9e
Lint new new code
2020-07-20 20:48:27 +01:00
Jorik Schellekens
c0ce6e8161
Merge branch 'develop' of github.com:matrix-org/matrix-react-sdk into joriks/eslint-config
2020-07-20 20:44:52 +01:00
Michael Telatynski
7a05476c50
add missing types
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-07-20 17:10:08 +01:00
Michael Telatynski
06cc76f7d8
mark some things as public
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-07-20 16:34:52 +01:00
Michael Telatynski
ed0d9973b7
Switch to a discriminated unions
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-07-20 16:33:53 +01:00
Michael Telatynski
2bf5e4b142
clean up
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-07-15 09:49:02 +01:00
Michael Telatynski
8812f98b35
Convert editor to TypeScript
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-07-15 09:45:45 +01:00
Jorik Schellekens
7699aafcaf
Use new eslint package- fix lint issues in ts and js
2020-06-23 17:01:19 +01:00
Travis Ralston
803b7bb30f
Merge pull request #4694 from justin-sleep/remove-escape-backslashes
...
Remove escape backslashes in non-Markdown messages
2020-06-17 11:06:04 -06:00
Michael Telatynski
ef80a0b0b4
avoid negatives
2020-06-16 14:06:42 +01:00
Michael Telatynski
fcd3ebe051
Fix case-sensitivity of /me to match rest of slash commands
...
also better error handling for attempted runs of unimplemented commands
2020-06-16 00:41:21 +01:00
Justin Sleep
bdc451d66b
Remove escape backslashes in non-Markdown messages
2020-06-03 17:08:13 -05:00
Bruno Windels
0c5c2501e6
remove prefixes as we're using data urls now
2020-05-06 12:23:03 +02:00
Sergey Shpikin
a97a3cea51
Make avatars in pills occupy the entire space using cropping
...
Signed-off-by: Sergey Shpikin <rkfg@rkfg.me>
2020-04-23 10:55:49 +03:00
Michael Telatynski
9c1939b756
match all, not just first instance of tokens to escape
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-04-15 02:31:30 +01:00
Michael Telatynski
4454db30d6
Escape opening square bracket too
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-04-15 01:02:08 +01:00
Michael Telatynski
cb10640eaf
detslint
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-04-15 00:53:35 +01:00