Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Separate adding .js into a separate PathFilter #1183

Merged
merged 1 commit into from
Feb 13, 2025
Merged

Conversation

dpvc
Copy link
Member

@dpvc dpvc commented Jan 20, 2025

This PR breaks the normalize path filter into two separate ones, the first that adds [mathjax]/ to relative paths, and a second new one to handle the addition of .js when it is missing (which used to be part of the normalize filter). The reason for this is so that third-party packages can create a path that includes the complete URL to their package, e.g., xypic can use [xypic] to point to the CDN that serves XyJax. Without this PR, that would be translated to [xypic].js, by normalize and then the [xypic] portion would be replaced. So if the xypic path already included the .js, this would be a problem. (This is actually where I found out about it, as XyJax is being updated.)

@dpvc dpvc requested a review from zorkow January 20, 2025 20:41
@dpvc dpvc added this to the v4.0 milestone Jan 20, 2025
Copy link
Member

@zorkow zorkow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm.

@dpvc dpvc merged commit f171f7b into develop Feb 13, 2025
@dpvc dpvc deleted the fix/pathfilters branch February 13, 2025 16:27
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