mirror of https://github.com/usememos/memos
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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> |
2 months ago | |
|---|---|---|
| .. | ||
| ast | 3 months ago | |
| extensions | 3 months ago | |
| parser | 2 months ago | |
| renderer | 3 months ago | |
| markdown.go | 2 months ago | |
| markdown_test.go | 2 months ago | |