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

liran-funaro / sphinx-markdown-builder / 42457909236
100%

Build:
DEFAULT BRANCH: main
Ran 08 Nov 2026 07:14AM UTC
Jobs 4
Files 5
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

08 Nov 2026 07:13AM UTC coverage: 97.442%. First build
42457909236

push

github

web-flow
Fix empty destinations in same-page reference links (#79)

**Description**

This change fixes references to sections within the same document
rendering with empty destinations.

`_fetch_ref_uri()` now handles references with a non-empty `refid` and
no `refuri` before checking the `internal` flag. For example,
`[Setup]()` now renders as `[Setup](#setup)`.

**Rationale**

Same-document references can contain a `refid` without an `internal`
flag. Previously, the external-reference check returned an empty URL
before the section ID was processed.

This loses the destination even when the corresponding anchor exists in
the generated Markdown.

The issue was encountered during Apache Airflow’s Markdown documentation
work and reproduced independently with sphinx-markdown-builder 0.6.11,
Sphinx 9.1.1 and Python 3.12.3.

**Tests**

Added an integration test verifying that:

- Same-page references retain their fragment destinations.
- The corresponding section anchors exist in the output.
- External URLs remain unchanged.

**Backwards Compatibility**

No configuration changes are required. References with existing URLs
retain their current handling.

Closes: #78

---------

Signed-off-by: Sameer Mesiah <smesiah971@gmail.com>
Co-authored-by: Sameer Mesiah <smesiah971@gmail.com>

762 of 782 relevant lines covered (97.44%)

3.9 hits per line

Jobs
ID Job ID Ran Files Coverage
1 python-3.12 - 42457909236.1 08 Nov 2026 07:14AM UTC 5
97.44
GitHub Action Run
2 python-3.11 - 42457909236.2 08 Nov 2026 07:14AM UTC 5
97.44
GitHub Action Run
3 python-3.13 - 42457909236.3 08 Nov 2026 07:14AM UTC 5
97.44
GitHub Action Run
4 python-3.14 - 42457909236.4 08 Nov 2026 07:14AM UTC 5
97.44
GitHub Action Run
Source Files on build 42457909236
  • Tree
  • List 5
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #42457909236
  • 219b587d on github
  • Prev Build on main (#42056974924)
  • Next Build on main (#42462386536)
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