memos/plugin
Steven 68c17469a3 fix(markdown): fix UTF-8 truncation for CJK characters in snippet generation
The truncateAtWord function was slicing strings by byte position instead of
character position. When truncating text with multi-byte UTF-8 characters
(like CJK), this could cut in the middle of a character, creating invalid
UTF-8 and causing gRPC marshaling errors.

Fixed by converting to runes before truncation to ensure we always cut at
proper character boundaries. Added test cases for CJK characters.

Fixes #5276

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-26 07:34:28 +08:00
..
cron refactor: use WaitGroup.Go to simplify code (#5162) 2025-10-10 22:28:35 +08:00
filter feat(store): add hierarchical tag filtering support 2025-10-30 00:21:53 +08:00
httpgetter refactor: attachment service part2 2025-06-18 00:09:19 +08:00
idp chore: add more logs for oauth2 2025-05-14 20:38:14 +08:00
markdown fix(markdown): fix UTF-8 truncation for CJK characters in snippet generation 2025-11-26 07:34:28 +08:00
storage/s3 feat: generate thumbnails for images stored in S3 and generate thumbnails with a maximum size (#5179) 2025-10-23 21:29:22 +08:00
webhook chore: fix linter 2025-06-24 21:55:27 +08:00