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

markdown-it / markdown-it / 28600914287
100%

Build:
DEFAULT BRANCH: master
Ran 02 Jul 2026 03:14PM UTC
Jobs 1
Files 52
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

02 Jul 2026 03:14PM UTC coverage: 99.789%. Remained the same
28600914287

push

github

web-flow
fix: keep literal backslash before space in link destination (CommonMark 6.3) (#1188)

A backslash followed by a space inside a link destination is a literal
backslash (a space is not ASCII punctuation, so it is not escaped), and
the space ends the destination. markdown-it instead broke at the
backslash, dropping it from the destination and failing to parse the
link.

Repro:

    md.render('[a](/url\\ )')

Expected (matches the CommonMark 0.31.2 reference renderer):

    <p><a href="/url%5C">a</a></p>

Actual on master:

    <p>[a](/url\ )</p>

In lib/helpers/parse_link_destination.mjs the unenclosed-destination
loop, on seeing `\` followed by a space, called `break`, which excludes
the backslash from the destination and leaves `\ )` unconsumed so the
link fails. Advance past the backslash instead (`pos++; continue`) so it
is kept literal and the following space triggers the normal terminator.

The existing commonmark/CommonMark#493 case `[a](a\ b)` is unaffected:
content after the space still prevents the link from parsing, matching
the reference.

1727 of 1742 branches covered (99.14%)

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

6145 of 6158 relevant lines covered (99.79%)

223874.16 hits per line

Jobs
ID Job ID Ran Files Coverage
1 28600914287.1 02 Jul 2026 03:14PM UTC 52
99.79
GitHub Action Run
Source Files on build 28600914287
  • Tree
  • List 52
  • Changed 1
  • Source Changed 1
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #28600914287
  • a311cfbe on github
  • Prev Build on master (#28556685906)
  • Next Build on master (#28658934260)
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