Skip to content

Fix UTF-8 truncation in markdown export paths#29

Merged
steipete merged 1 commit into
openclaw:mainfrom
alexph-dev:fix/utf8-markdown-slug-truncation
May 15, 2026
Merged

Fix UTF-8 truncation in markdown export paths#29
steipete merged 1 commit into
openclaw:mainfrom
alexph-dev:fix/utf8-markdown-slug-truncation

Conversation

@alexph-dev

Copy link
Copy Markdown
Contributor

Summary

  • truncate markdown export slugs only at UTF-8 rune boundaries
  • add regression coverage for long Cyrillic page titles on macOS paths

Verification

  • go test ./internal/markdown -run TestExporterTruncatesMultibytePathNamesOnRuneBoundary -count=1
  • go test ./...
  • go run ./cmd/notcrawl export-md

@steipete steipete merged commit c323986 into openclaw:main May 15, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants