Repository navigation
Release 0.1.0 - yank_code a Tree-sitter based Markdown Code Extractor
This is the initial release of yank_code, a tool for extracting code fragments from Markdown files.
Features:
- Extraction of fenced code blocks from Markdown files
- Language identification for code blocks with info strings
- Tree traversal using tree-sitter for efficient parsing
- Output of extracted code as list of dictionary objects (each object has two keys
"code"and"language")
Key Functionalities:
- Parses Markdown files into an Abstract Syntax Tree (AST) using tree-sitter
- Traverses the AST to identify and extract fenced code blocks
- Retains language information when available
- Processes multiple code blocks within a single Markdown file
Planned Functionalities:
- Code syntax verification
- inline code extraction