Skip to content

fix: preserve newlines when converting HTML comments to text (fixes #99) - #340

Closed
KooshaPari wants to merge 1 commit into
simonw:mainfrom
KooshaPari:fix-99-hn-newlines
Closed

KooshaPari wants to merge 1 commit into
simonw:mainfrom
KooshaPari:fix-99-hn-newlines

Conversation

@KooshaPari

Copy link
Copy Markdown

Fixes #99

Changes

  • Updated htmlToText() to replace <br>, </p>, </div>, and </li> tags with newlines before stripping HTML
  • Preserves paragraph breaks from HN comment formatting
  • Comments no longer collapse to a single line of text

Copilot AI lite review requested due to automatic review settings September 13, 2026 05:51

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@KooshaPari KooshaPari closed this by deleting the head repository Sep 14, 2026
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.

hn-comments-for-user removes all newlines from comments

2 participants