Skip to content

Prefer rst2html4 for reStructuredText - #17

Merged
andrew merged 1 commit into
mainfrom
prefer-rst2html4
Nov 23, 2026
Merged

andrew merged 1 commit into
mainfrom
prefer-rst2html4

Conversation

@andrew

@andrew andrew commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

The docutils HTML5 writer inlines a local file as a data URI for .. image:: /path with :loading: embed, and --no-file-insertion does not stop it. Checked with rst2html5 on docutils 0.21.2 and 0.23.

rst2html uses the HTML4 writer in those versions, so nothing leaks today, but which writer it selects is up to docutils. The RST renderer now tries rst2html4 first and falls back to rst2html and rst2html.py as before.

@coderabbitai

coderabbitai Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 9 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 4d15ca7d-30f5-4c4a-bea1-23c785faca6c
Commits

Reviewing files that changed from the base of the PR and between e994bd1 and dafe786.

Files selected for processing: 2

  • external.go
  • markup_test.go
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@andrew
andrew added this pull request to stack #20 November 23, 2026 09:13
The HTML5 writer embeds local files for images with :loading: embed
even when file insertion is disabled.
@andrew
andrew merged commit 1032fc5 into main Nov 23, 2026
6 checks passed
@andrew
andrew deleted the prefer-rst2html4 branch November 23, 2026 09:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant