Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

rbtr-lang-html

HTML support for rbtr. A default plugin — installed with rbtr itself (pip install rbtr).

What it ingests

  • Sections — major <body> elements (<main>, <article>, <nav>, …) → doc sections, named by their id (else the tag name).
  • Imports — <script src> and <link href> → import chunks carrying the referenced path and a language hint, so edges link to the target file.

Chunks produced

<main id="content">…</main>           <!-- doc_section "content"                  -->
<nav>…</nav>                          <!-- doc_section "nav"                      -->
<script src="app.js"></script>        <!-- import {module: app.js, hint: javascript} -->
<link rel="stylesheet" href="a.css">  <!-- import {module: a.css, hint: css}      -->

Embedded / injected chunks

HTML embeds other languages: an inline <script> delegates to JavaScript and an inline <style> to CSS, so their chunks extract at real line numbers within the page, each carrying its own language.

<main id="app">                    <!-- doc_section "app"   (html)       -->
  <script>
    function boot() { start(); }   <!-- function "boot"     (javascript) -->
  </script>
  <style>
    .hero { color: crimson; }      <!-- class ".hero"       (css)        -->
  </style>
</main>

Grammar & dependencies

Uses the tree-sitter-html grammar. No runtime dependency on other language plugins; the test suite dev-depends on rbtr-lang-javascript and rbtr-lang-css so the sample's linked and injected js/css extract and the cross-file edges snapshot.

Metadata

Release files for rbtr-lang-html 2026.9.0.dev0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for rbtr-lang-html 2026.9.0.dev0
File Interpreter ABI Platform
rbtr_lang_html-2026.9.0.dev0-py3-none-any.whl Python 3 none any Details

Release files / rbtr_lang_html-2026.9.0.dev0-py3-none-any.whl

Download URL rbtr_lang_html-2026.9.0.dev0-py3-none-any.whl
Size 14.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8ef81d885cb6bfd6f7bb75eedc574837f2d177244e0bc5dc0922ab30dbc5dfed
BLAKE2b-256 checksum
How to use checksums
f7556710e565d05214e8793e71e8850bf4a23beceec4db9a39dc1266091eacff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.13 {"installer":{"name":"uv","version":"0.12.13","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page