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

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

Build:
DEFAULT BRANCH: main
Ran 28 Oct 2026 06:46AM UTC
Jobs 1
Files 6
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

28 Oct 2026 06:45AM UTC coverage: 97.385% (-0.8%) from 98.232%
40645820589

push

github

web-flow
Add an option to generate compact Markdown tables (#81)

**Description**

This change adds the `markdown_compact_tables` configuration option to
generate Markdown tables without padding cells to align columns in the
source.

The option defaults to `False`, preserving the existing table output.
When enabled, tables use compact rows and Markdown header separators
while retaining cell content, inline formatting, and the existing
conversion of line breaks to `<br/>`.

**Rationale**

Column padding can substantially increase the size of generated Markdown
when tables contain long values. Compact output reduces unnecessary
whitespace for consumers such as coding agents.

This also allows Apache Airflow to replace its custom compact-table
workaround with an upstream configuration option as part of
[#74376](https://github.com/apache/airflow/issues/74376).

**Documentation**

Added `markdown_compact_tables` to the documented `conf.py`
configuration options, explaining that it removes column-alignment
padding when enabled and defaults to `False` to preserve existing
formatting.

**Tests**

Added unit tests verifying that:

- Default mode retains the existing `tabulate` output.
- Compact mode generates tables without column padding.
- Numeric strings, inline formatting, and multiline cell content are
preserved.
- Empty tables produce no output.

**Backwards Compatibility**

The new option is disabled by default, so existing builds retain their
current formatting. Compact mode uses ordinary Markdown separators and
does not reproduce `tabulate`’s automatic numeric alignment.

Closes: #80

---------

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

9 of 16 new or added lines in 3 files covered. (56.25%)

782 of 803 relevant lines covered (97.38%)

2.92 hits per line

Uncovered Changes

Lines Coverage ∆ File
7
96.79
-2.47% sphinx_markdown_builder/contexts.py
Jobs
ID Job ID Ran Files Coverage
1 40645820589.1 28 Oct 2026 06:46AM UTC 6
97.38
GitHub Action Run
Source Files on build 40645820589
  • Tree
  • List 6
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • fad372a3 on github
  • Prev Build on main (#40348702026)
  • Next Build on main (#40647102872)
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