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

ukeeper / ukeeper-readability
78%
master: 83%

Build:
Build:
LAST BUILD BRANCH: refs/tags/v0.3.1
DEFAULT BRANCH: master
Repo Added 24 Apr 2022 10:34PM UTC
Token PvVP7XZODHNMukB1VLWbVHHC4V09CWSI6 regen
Build 388 Last
Files 16
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

LAST BUILD ON BRANCH fix/text-extraction
branch: fix/text-extraction
CHANGE BRANCH
x
Reset
Sync Branches
  • fix/text-extraction
  • ci-dockerhub-soft-fail
  • ci/workflow-hardening
  • cleaner_frontend_structure
  • dependabot/docker/node-22
  • dependabot/github_actions/github-actions-updates-14cb627f6c
  • dependabot/github_actions/github-actions-updates-1ee787ebfb
  • dependabot/github_actions/github-actions-updates-5714300483
  • dependabot/github_actions/github-actions-updates-640176b5ab
  • dependabot/github_actions/github-actions-updates-7aa8621bec
  • dependabot/github_actions/github-actions-updates-afd9e15987
  • dependabot/github_actions/github-actions-updates-e986305a06
  • dependabot/go_modules/backend/go-modules-updates-08b33d1c25
  • dependabot/go_modules/backend/go-modules-updates-0bc617739e
  • dependabot/go_modules/backend/go-modules-updates-407dd4786b
  • dependabot/go_modules/backend/go-modules-updates-5e29427af7
  • dependabot/go_modules/backend/go-modules-updates-5e519fa3dd
  • dependabot/go_modules/backend/go-modules-updates-71a6db2b89
  • dependabot/go_modules/backend/go-modules-updates-751992312c
  • dependabot/go_modules/backend/go-modules-updates-a616c34cc0
  • dependabot/go_modules/backend/go-modules-updates-c1eb5b8ad9
  • dependabot/go_modules/backend/go-modules-updates-c2169da76e
  • dependabot/go_modules/backend/go-modules-updates-d01d85479d
  • dependabot/go_modules/backend/go-modules-updates-d6af324dbd
  • dependabot/go_modules/backend/go-modules-updates-ec788c1f9d
  • dependabot/go_modules/backend/go-modules-updates-f885172778
  • dependabot/go_modules/backend/golang.org/x/crypto-0.31.0
  • dependabot/go_modules/backend/golang.org/x/net-0.36.0
  • dependabot/go_modules/github.com/moby/go-archive-0.3.0
  • dependabot/go_modules/go-modules-updates-0b36ab2f83
  • dependabot/go_modules/go-modules-updates-27468d2404
  • dependabot/go_modules/go-modules-updates-4ba46721af
  • dependabot/go_modules/go-modules-updates-70237b7f49
  • dependabot/go_modules/go-modules-updates-dfe6aace4a
  • dependabot/go_modules/go-modules-updates-e03e81ca10
  • dependabot/go_modules/go.opentelemetry.io/otel/trace-1.47.0
  • dependabot/npm_and_yarn/frontend/npm-development-modules-updates-89027bf77e
  • dependabot/npm_and_yarn/frontend/npm-development-modules-updates-e6f6ae78c6
  • deps/update-latest-go1.25
  • fix-cf-maxretries-doc
  • fix-test-docs
  • fix-top3-review
  • fix/binary-content
  • fix/charset-detection
  • fix/ci-go-version-from-gomod
  • fix/datastore-shared-mongo-container
  • fix/docker-gha-cache
  • fix/drop-mauidude
  • fix/image-fetch-streaming
  • fix/lifecycle
  • fix/og-image-lead
  • fix/preview-sanitise
  • fix/readeck-parser
  • fix/readeck-pictures
  • fix/rule-keep-tags
  • fix/ssrf-ip-guard
  • fix/substack-footnote-refs
  • fix/substack-images
  • fix/target-status
  • fix/textarea-crlf
  • generic-updates
  • htmx
  • master
  • modularise-retrieval
  • openai-auto-extraction
  • openai-summaries
  • openai_rules_generator
  • openai_rules_improver
  • paskal/bump_modules
  • paskal/clarify_comment
  • paskal/cleanup_readme
  • paskal/fix_build
  • paskal/improve_docker_compose
  • paskal/index_to_htmx
  • paskal/migrate_to_htmx
  • paskal/offline_tests
  • paskal/remove_edit_html
  • paskal/return_rule_id_on_update
  • paskal/safe_password_check
  • refs/tags/v0.1.0
  • refs/tags/v0.1.1
  • refs/tags/v0.1.2
  • refs/tags/v0.2.0
  • refs/tags/v0.3.0
  • refs/tags/v0.3.1
  • remove-jquery
  • remove_chi
  • rule-match-urls-excludes
  • typos_fixes
  • umputun/add-chatgpt-endpoints
  • update-deps-2026-04-11
  • update-mongodb
  • worktree-ci-hardening

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

Relevant lines Covered
Build:
Build:
1654 RELEVANT LINES 1290 COVERED LINES
51.31 HITS PER LINE
Source Files on fix/text-extraction
  • Tree
  • List 16
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
46452514192 fix/text-extraction 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 "notablechan... Pull #108 30 Nov 2026 03:38PM UTC paskal github
77.99
See All Builds (298)

Badge your Repo: ukeeper-readability

We detected this repo isn’t badged! Grab the embed code to the right, add it to your repo to show off your code coverage, and when the badge is live hit the refresh button to remove this message.

Could not find badge in README.

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

Refresh
  • Settings
  • Repo on GitHub
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