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

fix: add flag to track encoding state of example lines #428

Merged
merged 1 commit into from
Feb 5, 2024

Conversation

cat2608
Copy link
Contributor

@cat2608 cat2608 commented Feb 3, 2024

Description

This PR adds isExampleLineEncoded boolean property to CommitChangeLine type to ensure that the htmlEncoder function only encodes each line once, preventing double encoding on subsequent function calls.

Checklist

  • Tests added and all succeed
  • Linted
  • CHANGELOG.md updated
  • README.md updated, if user-facing

Screenshots / GIFs

🐛 Before

before.mp4

✅ After

after.mp4

@cat2608 cat2608 force-pushed the fix/HEAD-1231-avoid-re-encoding-example-lines branch from 5bbe2bb to 4ba5125 Compare February 3, 2024 19:58
Copy link
Contributor

@acke acke left a comment

Choose a reason for hiding this comment

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

Look good to me! Very helpful videos!

Ensure `htmlEncoder` function only encodes each line once,
preventing double encoding on subsequent function calls.
@cat2608 cat2608 force-pushed the fix/HEAD-1231-avoid-re-encoding-example-lines branch from 4ba5125 to d203832 Compare February 4, 2024 16:05
@bastiandoetsch bastiandoetsch merged commit 2e65f47 into main Feb 5, 2024
6 checks passed
@bastiandoetsch bastiandoetsch deleted the fix/HEAD-1231-avoid-re-encoding-example-lines branch February 5, 2024 06:59
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.

3 participants