Repository navigation
fix(output): print links once and show dates - #7
Merged
Merged
Conversation
Comments printed every link twice, the second copy shortened with "...", which cost tokens and carried nothing. Tags are now stripped before entities are decoded. In the old order a comment discussing `<p>` lost it to a line break. Anything older than a day shows its date. "3mo ago" says little in a saved note, and an agent has to work out what it means.
Owner
|
All three are right. Decoding entities last fixes the |
# Conflicts: # CHANGELOG.md
Owner
|
This shipped in v0.3.0. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Three small fixes to what
hnprints:.... One large thread had 30 such pairs.CleanHTMLdecoded entities before stripping tags, so a comment that discussed<p>lost it to a line break. Entities now decode last.3mo agobecomes2026-07-30. Relative ages drift in saved output, and at this range they are rounded to the month or year.Checked with
make test,golangci-lint, and a live read of that thread.