• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

ukeeper / ukeeper-readability / 46452514192
78%
master: 83%

Build:
Build:
LAST BUILD BRANCH: refs/tags/v0.3.1
DEFAULT BRANCH: master
Ran 30 Nov 2026 03:38PM UTC
Jobs 1
Files 16
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

30 Nov 2026 09:37AM UTC coverage: 77.993% (+0.4%) from 77.597%
46452514192

Pull #108

github

paskal
Extract article text from the parsed HTML tree

getText used kennygrant/sanitize, which deletes every line break in the
input before stripping tags. Words that the page wraps across source
lines ran together ("notable\nchanges" became "notablechanges"), text in
adjacent block elements joined ("Heading</h2><p>Body" became
"HeadingBody"), and the body of a script or style element stayed in the
text, so a page that embeds its data as JSON produced the JSON as the
article. The expression that added a space after a full stop to undo the
joined blocks also split domain and file names ("github. com",
"README. md").

The text now comes from walking the parsed HTML: text nodes keep their
whitespace, block elements start and end a line, and the bodies of
script, style, noscript, template, title, iframe, noembed and noframes
are skipped. The space is inserted
only between a lowercase letter and an uppercase one, where two sentences
did run together. The page title is taken out of the text only where it
stands as whole words, so a short title no longer cuts the start off a
longer word.

A custom rule's matches are separated by line breaks and converted to
text once, in parse, as the general parser's output already was. This
keeps matches from running together, and keeps decoded text such as
"&lt;script&gt;" from being read as markup a second time. A match with
no text and no picture, video or embed, such as one holding only
whitespace or comments, now falls back to the general parser like a
match that holds nothing.
Pull Request #108: Extract article text from the parsed HTML tree

71 of 77 new or added lines in 2 files covered. (92.21%)

1290 of 1654 relevant lines covered (77.99%)

51.31 hits per line

Uncovered Changes

Lines Coverage ∆ File
4
89.47
1.41% extractor/text.go
2
87.8
-0.58% extractor/readability.go
Jobs
ID Job ID Ran Files Coverage
1 46452514192.1 30 Nov 2026 03:38PM UTC 16
77.99
GitHub Action Run
Source Files on build 46452514192
  • Tree
  • List 16
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #108
  • PR Base - master (#46380425701)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc