Skip to content

Fix UTF-8 truncation in markdown export paths#29

Open
alexph-dev wants to merge 1 commit intoopenclaw:mainfrom
alexph-dev:fix/utf8-markdown-slug-truncation
Open

Fix UTF-8 truncation in markdown export paths#29
alexph-dev wants to merge 1 commit intoopenclaw:mainfrom
alexph-dev:fix/utf8-markdown-slug-truncation

Conversation

@alexph-dev
Copy link
Copy Markdown

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

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.

2 participants