Skip to content

v0.1.0

Latest

Choose a tag to compare

@rahlk rahlk released this 25 Jun 21:22
· 15 commits to main since this release
61370dd

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:

  1. Extraction of fenced code blocks from Markdown files
  2. Language identification for code blocks with info strings
  3. Tree traversal using tree-sitter for efficient parsing
  4. 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