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.dev1

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

Source distribution (sdist)

Source distribution for rbtr-lang-markdown 2026.9.0.dev1
File Size Uploaded
rbtr_lang_markdown-2026.9.0.dev1.tar.gz 12.4 kB Details

Built distribution (wheel)

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

Total release size: 31.7 kB

Release files / rbtr_lang_markdown-2026.9.0.dev1.tar.gz

Download URL rbtr_lang_markdown-2026.9.0.dev1.tar.gz
Size 12.4 kB
Tags Source
SHA-256 checksum
How to use checksums
5b0b2db596482b15f968730bb902ccd1e2f3bb90fd0b85a8a7dc7063ddb58223
BLAKE2b-256 checksum
How to use checksums
2891ec411650ee386b346e41ed0fe955f68570be175eb40080b4b0504a56d898
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}

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

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