Commit Graph
235 Commits
Author SHA1 Message Date
7w1 95493d6f1a fix: lists pushing off screen 2026-05-18 13:22:38 -05:00
7w1 92c270ee2e fix: arbitrary list starts 2026-05-18 13:18:44 -05:00
7w1 3ac14ab60e fix: improper order of escapes and html parsing for angle brackets 2026-05-17 22:39:21 -05:00
7w1 34d94af30b changeset and lint 2026-05-17 21:46:39 -05:00
7w1 4c8af8aa3b feat: support misskey-flavored markdown for colors 2026-05-17 21:42:45 -05:00
7w1 58ffeb00b8 fix: html input tag parsing hardening 2026-05-17 21:06:05 -05:00
7w1 66b5efe348 fix: matrix.to links getting arrow brackets added 2026-05-17 20:41:22 -05:00
7w1 db2f11518d fix: block quote new lines 2026-05-17 20:35:21 -05:00
7w1 fdeaf481ef fix: preserve matrix.to mentions when editing 2026-05-17 20:26:26 -05:00
7w1 e19e0df8f9 formatting 2026-05-14 23:48:10 -05:00
7w1 24a7a9d05c fix link editing behaviors 2026-05-14 23:43:07 -05:00
7w1 daba875a93 formatting and lint things 2026-05-14 15:16:10 -05:00
7w1 542474b80f markdown header fix 2026-05-14 15:05:03 -05:00
7w1 b868f1d52f Fix formatting behavior around <p> tags (#799)
<!-- 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. -->

A few fixes:
- When emotes are sent (/me), the leading paragraph block is always
dropped so that the action doesn't appear on a new line, subsequent
blocks are still sent.
- For single line messages, paragraph tags are stripped.
- For multiline messages, there's two behaviors, which distinguish the
space between lines Sable (and some other clients probably) display.
    - Single new line = \n
    - Two new lines = \<p> tag

#### 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:

- [ ] My code follows the style guidelines of this project
- [ ] 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
- [ ] My changes generate no new warnings

### AI disclosure:

- [x] 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. -->

Tests were AI generated
2026-05-13 20:02:11 -05:00
7w1 193323074b fix: formatting for emotes/related p tags 2026-05-13 00:38:25 -05:00
7w1 f92e68a658 formatting 2026-05-12 21:10:11 -05:00
7w1 7785d91f97 fix: matrix.to links with custom text being sent as escaped html 2026-05-12 21:05:46 -05:00
7w1 3e399d3410 shield matrix to links 2026-05-09 22:16:36 -05:00
7w1 91434ad368 escape subtext properly 2026-05-09 16:07:26 -05:00
7w1 5886921936 patch dollar sign spam 2026-05-08 17:27:34 -05:00
7w1 ba1578c54f prevent money talk from triggering math 2026-05-08 17:06:15 -05:00
7w1 cda61305ab typecheck fix 2026-05-07 14:50:41 -05:00
7w1 ba9e8d055e forgot to commit a file whoops 2026-05-07 14:44:40 -05:00
7w1 48a9c5c7d0 angle bracket edge cases, hopefully 2026-05-07 13:08:32 -05:00
7w1 bd4b2137b1 fix inline image height and add settings for capping incoming height 2026-05-07 12:48:58 -05:00
7w1 f8a9a8fccf changeset and tests 2026-05-07 00:33:30 -05:00
7w1 a071e26b8a fix & harden pmp logic 2026-05-07 00:20:21 -05:00
7w1 967b28b1e7 reescape arrows and update workflow to suppress preveiws 2026-05-06 21:22:27 -05:00
7w1 cedddcd6b4 Update markdownToHtml.ts 2026-05-06 20:50:32 -05:00
7w1 462fab41e7 Merge branch 'dev' into fix-markdown-escape-code-blocks 2026-05-06 20:44:05 -05:00
7w1 0996def084 merge dev 2026-05-06 20:28:17 -05:00
7w1 22f49b7f2a fix extraneous escape sequences when editing within codeblocks 2026-05-06 19:06:35 -05:00
7w1 6ac4049bab add underline with __ 2026-05-06 17:32:47 -05:00
7w1 861cce92ad fix latex in codeblock behavior 2026-05-06 11:51:47 -05:00
7w1 b5373133ff fix blockquote markdown behavior 2026-05-06 11:20:54 -05:00
7w1 7ef0f61d94 fix matrixto link rendering 2026-05-05 16:18:20 -05:00
7w1 e935fe0717 fix test 2026-05-05 14:20:15 -05:00
7w1 60c9db8c52 fix emoticon not properly converting when editing messages 2026-05-05 13:54:14 -05:00
Shea Duma 38f0b9f750 fix potentially wrongly made links 2026-05-05 17:08:29 +03: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 5991790472 formatting 2026-04-30 14:57:28 -05:00
7w1 ee33176fd2 fix typecheck 2026-04-30 14:46:00 -05: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 307f3b107d formatting and linting 2026-04-30 10:51:35 -05:00
7w1 574e177d82 dynamically load math library 2026-04-30 10:47:16 -05:00
7w1 d3c73176eb fix markdown rendering in spoilers 2026-04-30 10:40:50 -05:00