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;
scopeis 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 becomesnames). 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.dev3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| rbtr_lang_markdown-2026.9.0.dev3.tar.gz | 12.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| rbtr_lang_markdown-2026.9.0.dev3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 31.7 kB
Release files / rbtr_lang_markdown-2026.9.0.dev3.tar.gz
| Download URL | rbtr_lang_markdown-2026.9.0.dev3.tar.gz |
|---|---|
| Size | 12.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e45bda4d909c22d936dee53ec874e7f0b5c2fa4aa7ce9462d2b7e1a5d86f85d5
|
|
BLAKE2b-256 checksum How to use checksums |
795b1ddcf0a5dc9f082f016441732eb031e79c39042f1597e05333a59acc076b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.17 {"installer":{"name":"uv","version":"0.12.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / rbtr_lang_markdown-2026.9.0.dev3-py3-none-any.whl
| Download URL | rbtr_lang_markdown-2026.9.0.dev3-py3-none-any.whl |
|---|---|
| Size | 19.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
45a48f4e7012b169d2703c49349b51749ae3892c42c8575abba42690a532ffac
|
|
BLAKE2b-256 checksum How to use checksums |
49496d9100fb36560efcc26948d9f7969e675488514d0f4fb25934725d9577d9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.17 {"installer":{"name":"uv","version":"0.12.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|