Skip to content

Preserve custom Prism theme filename case#416

Open
yusufm wants to merge 1 commit into
schuyler:mainfrom
yusufm:Codex/fix-custom-prism-theme-lookup-019def52-b3da-7962-96cd-afa05d8d1592
Open

Preserve custom Prism theme filename case#416
yusufm wants to merge 1 commit into
schuyler:mainfrom
yusufm:Codex/fix-custom-prism-theme-lookup-019def52-b3da-7962-96cd-afa05d8d1592

Conversation

@yusufm
Copy link
Copy Markdown
Contributor

@yusufm yusufm commented May 3, 2026

Related to #315

Summary

  • Resolve Prism themes by scanning the actual user and bundle theme directories case-insensitively
  • Return the real CSS filename path so mixed-case custom themes load on open
  • Add a regression test for mixed-case user theme filenames

Tests

  • xcodebuild test -workspace 'MacDown 3000.xcworkspace' -scheme MacDown -destination 'platform=macOS' -only-testing:MacDownTests/MPUtilityTests/testHighlightingThemeURLPreservesUserThemeFilenameCase -only-testing:MacDownTests/MPUtilityTests/testHighlightingThemeURLReturnsUserThemeWhenPresent

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.

1 participant