RST

reStructuredText document engine: parse, query, lint, build, render, translate, and safely edit RST with minimal diffs.

ALTO RST parses reStructuredText into a source-positioned object model and renders safe HTML without running Python or Sphinx. The same model supports linting, formatting, editing, references, and conversion.

<?php

use Alto\Rst\Rst;

$html = Rst::sphinx()->toHtml("Guide\n=====\n\nWelcome.\n");

The package has no runtime Composer dependencies. It supports docutils RST, Sphinx syntax, and Symfony documentation conventions without claiming to replace the complete Sphinx toolchain.

Documentation

HTML output escapes text, filters unsafe URLs, and keeps file-reading constructs disabled by default. Read Security before granting additional authority.

The public contract consists of documented types and methods. Types marked @internal in source remain implementation details.