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

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

Build:
DEFAULT BRANCH: main
Ran 12 Nov 2026 09:24AM 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

12 Nov 2026 09:24AM UTC coverage: 100.0%. Remained the same
43191147567

push

github

web-flow
Break up --> inside comments so a comment does not end early (#137)

## Summary

A comment is written as `<!-- text -->`, so a `-->` in its text ended
the HTML comment early, and the rest of the comment showed as page text.
HTML5 also ends a comment at `--!>`.

Comments now use a `CommentContext` (a `WrappedContext` for `<!-- ` / `
-->`). Its `make()` breaks up the two sequences that end an HTML
comment: `-->` becomes `- ->`, and `--!>` becomes `- -!>`. Nothing else
in the comment changes.

The text still goes through `visit_Text`, so comments are still
unescaped, and the `github` flavor still collapses their newlines. No
status flag was added.

Closes #116

## Before / after

Input (added to `tests/source/ExampleRSTFile.rst`):

```rst
.. a comment can contain --> or --!> without ending early.
```

Before:

```markdown
<!-- a comment can contain --> or --!> without ending early. -->
```

After (`tests/expected/ExampleRSTFile.md`):

```markdown
<!-- a comment can contain - -> or - -!> without ending early. -->
```

## Compatibility with #109

Open PR #109 (`markdown_suppress_comments`) also touches
`visit_comment`: it adds an early `raise nodes.SkipNode`. This PR only
changes the `_push_context` line, so the two are compatible.

## Commands

- `make lint`: passed (black, flake8, pylint 10.00/10)
- `make test`: passed (diff tests, 16 pytest tests, 100% coverage)

8 of 8 new or added lines in 2 files covered. (100.0%)

775 of 775 relevant lines covered (100.0%)

4.0 hits per line

Jobs
ID Job ID Ran Files Coverage
1 python-3.13 - 43191147567.1 12 Nov 2026 09:25AM UTC 5
100.0
GitHub Action Run
2 python-3.12 - 43191147567.2 12 Nov 2026 09:24AM UTC 5
100.0
GitHub Action Run
3 python-3.11 - 43191147567.3 12 Nov 2026 09:24AM UTC 5
100.0
GitHub Action Run
4 python-3.14 - 43191147567.4 12 Nov 2026 09:24AM UTC 5
100.0
GitHub Action Run
Source Files on build 43191147567
  • Tree
  • List 5
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #43191147567
  • cd6b9e40 on github
  • Prev Build on main (#43188910137)
  • Next Build on main (#43191847478)
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