Skip to content

Preserve custom Prism theme filename case#416

Merged
schuyler merged 1 commit into
schuyler:mainfrom
yusufm:Codex/fix-custom-prism-theme-lookup-019def52-b3da-7962-96cd-afa05d8d1592
Jun 22, 2026
Merged

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

Conversation

@yusufm

@yusufm yusufm commented May 3, 2026

Copy link
Copy Markdown
Contributor

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

@schuyler schuyler merged commit 8f2f317 into schuyler:main Jun 22, 2026
5 checks passed
@schuyler schuyler added the rc-pending Included in a release candidate awaiting validation label Jun 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

rc-pending Included in a release candidate awaiting validation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants