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

ukeeper / ukeeper-readability / 46515623000
83%

Build:
DEFAULT BRANCH: master
Ran 30 Nov 2026 09:21PM 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:20PM UTC coverage: 78.715% (+0.4%) from 78.364%
46515623000

push

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.

72 of 78 new or added lines in 2 files covered. (92.31%)

1372 of 1743 relevant lines covered (78.71%)

51.17 hits per line

Uncovered Changes

Lines Coverage ∆ File
4
93.12
-0.54% extractor/text.go
2
87.8
-0.58% extractor/readability.go
Jobs
ID Job ID Ran Files Coverage
1 46515623000.1 30 Nov 2026 09:21PM UTC 16
78.71
GitHub Action Run
Source Files on build 46515623000
  • Tree
  • List 16
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 6fd85d81 on github
  • Prev Build on master (#46515530784)
  • Next Build on master (#46515688777)
  • 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