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

dcdpr / jp / 22244247340
58%

Build:
DEFAULT BRANCH: main
Ran 20 Feb 2026 10:56PM UTC
Jobs 1
Files 199
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

20 Feb 2026 10:48PM UTC coverage: 58.446% (+3.2%) from 55.288%
22244247340

push

github

web-flow
feat(md, config): Implement streaming markdown rendering (#399)

Introduce the `jp_md` crate to handle progressive rendering of
CommonMark content from LLM streams. This implementation solves the
latency issues associated with waiting for a full response before
displaying formatted output.

The core of this change is the `Buffer` utility, which segments incoming
text chunks into complete markdown blocks based on CommonMark grammar.
This allows for immediate rendering of paragraphs, headers, and lists as
they are completed. Fenced code blocks are handled with line-by-line
granularity to enable real-time syntax highlighting.

A custom `TerminalFormatter` replaces standard rendering to ensure
ANSI-aware line wrapping. Unlike generic formatters, it correctly
calculates visual column widths by excluding escape sequences and
manages SGR state across line breaks to prevent background color bleed.

Users can now configure their rendering preferences via the new
`style.markdown` configuration section:

```toml
[style.markdown]
wrap_width = 80
table_max_column_width = 40
theme = "gruvbox-dark"
hr_style = "line"
```

The architectural decisions and trade-offs for this implementation are
documented in RFD 004.

NOTE: This change has NOT been wired up to the CLI yet. This will happen
in a follow-up PR.

---------

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

2359 of 2902 new or added lines in 14 files covered. (81.29%)

13965 of 23894 relevant lines covered (58.45%)

378.79 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
97.06
crates/jp_config/src/style/markdown.rs
2
98.99
crates/jp_md/src/table_tests.rs
3
96.55
crates/jp_md/src/ansi.rs
4
98.3
crates/jp_md/src/format_tests.rs
5
94.74
crates/jp_md/src/buffer/state.rs
14
96.16
crates/jp_md/src/buffer.rs
26
91.1
crates/jp_md/src/table.rs
42
62.5
crates/jp_md/src/format.rs
43
10.42
crates/jp_md/src/theme.rs
60
80.58
crates/jp_md/src/writer.rs
343
43.68
crates/jp_md/src/render.rs
Jobs
ID Job ID Ran Files Coverage
1 22244247340.1 20 Feb 2026 10:56PM UTC 199
58.45
GitHub Action Run
Source Files on build 22244247340
  • Tree
  • List 199
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #22244247340
  • 7cf63fdf on github
  • Prev Build on main (#22190181042)
  • Next Build on main (#22278599076)
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