-
v0.1.1 Stable
released this
2025-12-04 06:30:04 +08:00 | 1 commits to main since this releaseLitBlock v0.1.1
Released 2025-04-12
This provides a tool for authoring literate, token-addressable code-blocks inside Markdown for POSIX compatible systems.
Features
Single-binary CLI (
bin/litblock)- Written in portable
sh, no external runtime required. - Treats any fenced code-block that starts at column 0 and ends with a guillemet label (
«label») as an addressable “litblock”.
Two core operations
litblock "<pattern>" [file]→ extract the matching block.litblock --list [file]→ enumerate all labels.
Flexible I/O paths
- Works on a file, on
stdin, or via the environment (LITBLOCK_SRC). - Output can be redirected with
LITBLOCK_DESTand suppressed/forced withLITBLOCK_STDOUT.
Deterministic extraction
- Uses a single
sedrange expression, guaranteeing contiguous multi-block matches when the same label is reused. - Result is pipable straight into interpreters, compilers, renderers, etc.
A install script for local installs (pending a
PKGBUILD)./install.sh [install|uninstall]drops the binary under$HOME/.local/bin(overridable withPREFIX).
Downloads
-
Source code (ZIP)
0 downloads
-
Source code (TAR.GZ)
2 downloads
- Written in portable