Commit Graph
166 Commits
Author SHA1 Message Date
7w1 7785d91f97 fix: matrix.to links with custom text being sent as escaped html 2026-05-12 21:05:46 -05:00
7w1 bd4b2137b1 fix inline image height and add settings for capping incoming height 2026-05-07 12:48:58 -05:00
7w1 6f0470890f add toolbar to other places 2026-05-06 20:05:30 -05:00
7w1 336140008d add back toolbar 2026-05-06 19:48:23 -05:00
7w1 60c9db8c52 fix emoticon not properly converting when editing messages 2026-05-05 13:54:14 -05:00
Shea Duma c52a07a46a fix some newly introduced linkpreview bugs 2026-05-05 16:42:08 +03:00
7w1 4f5f6e662a Merge branch 'dev' into feat/msc4459 2026-05-04 16:40:28 -05:00
Rye cbe38bae35 Merge branch 'dev' into feat/msc4459 2026-05-03 18:34:54 +02:00
Rye 0e61fc9cdb initial commit for MSC4459 support + a fair bit of refactoring 2026-05-03 17:17:43 +02:00
7w1 c8851c32a2 remove WYSIWYG editor 2026-04-30 14:37:28 -05:00
7w1 f130f4e2fe fix typecheck 2026-04-30 10:59:59 -05:00
7w1 122a0e2f25 update tests 2026-04-30 10:56:22 -05:00
7w1 307f3b107d formatting and linting 2026-04-30 10:51:35 -05:00
7w1 5c2a528229 remove the standard markdown extra new lines 2026-04-30 10:32:25 -05:00
7w1 982c87557e firefox list fix 2026-04-30 09:39:43 -05:00
7w1 34b01b40a2 swap to new htmltomarkdown parser 2026-04-30 01:38:16 -05:00
7w1 2598f3dbf8 fix newlines at start of codeblocks 2026-04-30 01:26:46 -05:00
7w1 5832b71da1 deduplicate the url things + fix code block urls 2026-04-30 00:48:43 -05:00
7w1 7aa82bb9d4 always open links in new tab 2026-04-30 00:43:12 -05:00
7w1 c59c81ed39 linting & formatting 2026-04-30 00:38:20 -05:00
7w1 4758150355 fix pmp new lines 2026-04-30 00:20:09 -05:00
7w1 0c797c84eb fix list editing + changeset 2026-04-30 00:08:36 -05:00
7w1 b0240aa4d3 merge dev and fix spoiler/preview handling 2026-04-29 18:10:39 -05:00
7w1 c0fb11663f hook it up + small text support 2026-04-29 17:18:40 -05:00
7w1 5f62cac9f2 Add preventing url preview cards by surrounding a link in anglebrackets (#717)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description

<!-- Please include a summary of the change. Please also include
relevant motivation and context. List any dependencies that are required
for this change. -->
This PR implements preventing previews by surrounding a link in angle
brackets, it hides the angle brackets in both the formatted_body and the
regular body, and instead adds the links as skeletons to the bundled
previews.

This PR also serves as scaffolding for implementing the actual bundled
previews.

(example of the 4 usages)
<img width="935" height="861" alt="image"
src="https://github.com/user-attachments/assets/6abe5b6a-28ad-4a16-92a1-3c1483c565af"
/>
<img width="999" height="837" alt="image"
src="https://github.com/user-attachments/assets/b4198734-4a3c-4320-ad2c-a1782b40d375"
/>

This PR matches the features #552 but uses the new standard way instead
of an ad hoc solution

#### Type of change

- [ ] Bug fix (non-breaking change which fixes an issue)
- [x] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to not work as expected)

### Checklist:

- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my own code
- [x] I have commented my code, particularly in hard-to-understand areas
- [x] My changes generate no new warnings

### AI disclosure:

- [ ] Partially AI assisted (clarify which code was AI assisted and
briefly explain what it does).
- [ ] Fully AI generated (explain what all the generated code does in
moderate detail).
<!-- Write any explanation required here, but do not generate the
explanation using AI!! You must prove you understand what the code in
this PR does. -->
My will be sin eater will clear me of the sin of having implemented
this.
2026-04-29 21:48:49 +00:00
7w1 3d286839d4 basic marked markdown processing 2026-04-29 16:39:50 -05:00
Shea Duma 8307e4a17e DEV - Room Search Fix 2026-04-28 05:46:16 +03:00
Shea Duma 3d55e96435 small change for a last good faith writing 2026-04-27 09:10:12 +03:00
Shea Duma 8d578b2e54 there could be so many more old link things that could be worked upon but i feel like i need a break from this thing 😭 2026-04-27 09:05:27 +03:00
Shea Duma 6a68f4f468 added edge case fixes 2026-04-27 08:19:04 +03:00
Shea Duma 3140b1620c minimum viable solution 2026-04-27 02:52:19 +03:00
Shea Duma 7499b17d88 almost working 2026-04-26 03:27:36 +03:00
Shea Duma 02b7e23eed reintroduced feat 2026-04-25 03:57:36 +03:00
Shea Duma 7a214da81f fixes wikipedia weird links in general 2026-04-25 03:42:13 +03:00
Shea Duma e5cf5a4b99 fixes most of the tests 2026-04-24 19:26:03 +03:00
Shea Duma bdd902cdc9 add changeset 2026-04-24 08:12:49 +03:00
Shea Duma 0eba80d43e add more checks for paran 2026-04-24 08:03:55 +03:00
Shea Duma c2f7a6ca87 make both regular body and previews work 2026-04-24 07:20:00 +03:00
Shea Duma c2ac2c78bb add stripping in plaintext 2026-04-24 06:31:38 +03:00
Shea Duma 372504a82e base functionality working 2026-04-24 04:49:02 +03:00
Rose cbb225168b Replace spoilered text with '[Spoiler]' in plain text fallback (#715)
### Description

This pull request updates the plain text conversion logic to better
handle spoilered text, ensuring that spoiler formatting is replaced with
`[Spoiler]` in plain text fallbacks as per
[MSC4454](https://github.com/matrix-org/matrix-spec-proposals/pull/4454).

**Spoiler handling improvements:**

- Spoilered text (delimited by `||`) is now replaced with `[Spoiler]` in
the plain text output, matching the MSC4454 specification.

#### Type of change

- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] This change requires a documentation update

### Checklist:

- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings

### AI disclosure:

- [ ] Partially AI assisted (clarify which code was AI assisted and
briefly explain what it does).
- [ ] Fully AI generated (explain what all the generated code does in
moderate detail).

No AI involved
2026-04-23 22:25:01 +00:00
Rose 02bd5b8748 Fix text return in toPlainText function 2026-04-23 23:36:27 +02:00
Rye 196bacdad4 fix(output): replace spoilered text with '[Spoiler]' in plain text fallback 2026-04-23 22:55:48 +02:00
hazre 840ff239b2 refactor: align matrix event types with sdk primitives 2026-04-21 22:29:46 +02:00
hazre fecf22ad5a chore: drop stale oxlint suppressions 2026-04-19 16:47:28 +02:00
7w1 40bb35f34c linting awayy 2026-04-17 16:23:59 -05:00
7w1 144e148154 many lint fixes 2026-04-17 14:09:04 -05:00
7w1 27eaadf9ae typecheck and linting fixes 2026-04-17 00:37:15 -05:00
7w1 b13c9b61d4 formatting 2026-04-16 22:38:18 -05:00
7w1 1717ca872f migrate to oxlint and oxfmt
ran formatter
fixed lint issues, primarily getting rid of "any"s and swapping to .toSorted()
2026-04-16 22:15:13 -05:00