Skip to main content
Pre-release

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

rbtr-lang-markdown

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

What it ingests

A custom chunker (not a tree-sitter query): it splits a document by its heading hierarchy — each section is a chunk, scoped by its ancestor headings. Links and fenced code blocks are extracted on top.

  • Sections — headings → doc sections; scope is the :: chain of enclosing headings. A headingless document falls back to plaintext chunks.
  • Links — local [text](path.md) and [text](path.md#fragment) → imports (the fragment becomes names). External and fragment-only links are skipped.
  • Fenced code — delegated to the block's language (see below).

Chunks produced

# Guide                    <!-- doc_section "Guide"                       -->
## Setup                   <!-- doc_section "Setup", scope "Guide"         -->
See [the API](api.md#run). <!-- import, metadata {module: api.md, names: run} -->

Embedded / injected chunks

A fenced block delegates to its language, extracted at real line numbers — and delegation recurses, so a block that itself embeds another language resolves all the way down (markdown → html → js):

```yaml
service: greeter       <!-- doc_section "service" (yaml)               -->
```
```html
<main>                 <!-- doc_section "main"    (html)               -->
  <script>
    function boot() {} <!-- function "boot"      (javascript, nested)  -->
  </script>
</main>
```

Grammar & dependencies

Uses the tree-sitter-markdown grammar. No runtime dependency on other language plugins; the test suite dev-depends on the plugins its sample's fenced blocks delegate to (bash, css, html, javascript, python, scss — plus svelte/toml/yaml via core until those are packaged).

Metadata

Release files for rbtr-lang-markdown 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-markdown 2026.9.0.dev0
File Interpreter ABI Platform
rbtr_lang_markdown-2026.9.0.dev0-py3-none-any.whl Python 3 none any Details

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

Download URL rbtr_lang_markdown-2026.9.0.dev0-py3-none-any.whl
Size 19.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a26cc4b6262883db42c4518157421131bc072becbde7847dc4c69824f56b3bdb
BLAKE2b-256 checksum
How to use checksums
212635e308eafa271d8fda177e7544badc6589d160dcca36fb19e8d1c6ec6405
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