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

dcdpr / jp / 26624962241
66%

Build:
DEFAULT BRANCH: main
Ran 29 May 2026 07:46AM UTC
Jobs 1
Files 381
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

29 May 2026 07:44AM UTC coverage: 66.072% (+0.02%) from 66.053%
26624962241

push

github

web-flow
fix(cli): Fix indentation and trailing blank in fenced code inside lists (#681)

Two bugs affected the rendering of fenced code blocks that appear inside
list items.

First, `indent_lines` was treating ANSI reset sequences (`\x1b[0m`)
emitted by syntect *after* a trailing `\n` as the start of a new visible
line. This caused the indent prefix to be applied twice, pushing all
syntax-highlighted code content `indent` columns too far to the right.

Second, the `FencedCodeEnd` handler was unconditionally appending a
blank-line separator after every closing fence. At top level this is
correct behaviour — it keeps the conventional gap between a fence and
the next block — but inside a list item it injected a spurious blank
line that broke the visual flow of the surrounding list.

The fix updates `indent_lines` to skip over CSI/SGR escape sequences
when deciding where to emit the prefix: the prefix is now inserted only
before the first *visible* character on a new line. The `FencedCodeEnd`
handler is updated to call `render_code_fence` (replacing the removed
`render_closing_fence`) and to append the separator only when `indent ==
0`.

---------

Signed-off-by: Jean Mertz <git@jeanmertz.com>

24 of 24 new or added lines in 1 file covered. (100.0%)

9 existing lines in 1 file now uncovered.

31794 of 48120 relevant lines covered (66.07%)

226.43 hits per line

Coverage Regressions

Lines Coverage ∆ File
9
83.69
-3.86% crates/jp_md/src/format.rs
Jobs
ID Job ID Ran Files Coverage
1 26624962241.1 29 May 2026 07:46AM UTC 381
66.07
GitHub Action Run
Source Files on build 26624962241
  • Tree
  • List 381
  • Changed 2
  • Source Changed 1
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #26624962241
  • e54d2364 on github
  • Prev Build on main (#26608913916)
  • Next Build on main (#26625300837)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc