fix(jsx-email): preserve named ampersands in href query delimiters#443
Conversation
|
@CharlieHelps use the PR template for the PR description. Using the currently failing test, update this PR to a |
|
Implemented.
|
|
@CharlieHelps you have failing tests in CI |
|
Follow-up on #443 (comment): The CI failure root cause is now addressed in Local verification passed ( CI should rerun against this new commit. |
|
@CharlieHelps explain why you removed |
|
@shellscape I initially added I removed it in 10a85e1 and switched to a scoped fix that only normalizes |
|
@CharlieHelps what I don't understand is the rationalization of reverting the identified fix for a much narrow scope using a more brittle approach. Explain and enumerate at length the entity changes that |
|
@shellscape Thanks for pressing on this — I re-ran the PR branch and forced the broad Why I moved away from global
|
|
@CharlieHelps in the context of
And the test snapshots that failed due to that change, would the change to " a problem and presents email compatibility issues, or is it purely just a snapshot difference that you wanted to avoid? search the web for possible negative consequences for this change. We need data to say that the named entity for quotes is better than the numeric representation, not just knee-jerks based on existing snapshots. Explain what you find. |
|
@shellscape I dug into this with standards sources plus email-compat references. What the data says
Potential negatives I did find
Bottom line Sources:
|
|
@CharlieHelps OK restore the useNamedReferences approach and update snapshots |
|
Implemented ✅
Pushed commit: e77dd5e |
Component / Package Name:
jsx-email(packages/jsx-email)This PR contains:
Are tests included?
Breaking Changes?
If yes, please include "BREAKING CHANGES:" in the first commit message body, followed by a description of what is breaking.
List any relevant issue numbers:
Resolves #368
Description
&) so href query delimiters render as expected.packages/jsx-email/test/render/issues.test.tsxunchanged and makes it pass.packages/jsx-email/src/renderer/render.ts.