Aider-AI / aider

aider is AI pair programming in your terminal
https://aider.chat/
Apache License 2.0
22.65k stars 2.11k forks source link

Add Tree-sitter Markdown Parser Support for Repository Map #965

Open lightningRalf opened 4 months ago

lightningRalf commented 4 months ago

Issue

I would like to request the addition of Tree-sitter support for Markdown to the aider repository map feature. The tree-sitter-markdown grammar provides parsing capabilities for Markdown files, which would be beneficial for projects using Markdown documentation.

Proposal:

Integration with Repository Map: Include the Tree-sitter Markdown parser to generate repository maps for Markdown files. This will allow aider to analyze and include Markdown file structure in the repository map, providing better context for documentation alongside code.

Required Changes:

Implement the tags.scm query file for Markdown as needed. Integrate the Markdown parser into the existing repository mapping infrastructure, ensuring compatibility with other supported languages. Benefits:

Enhanced understanding of Markdown documentation for AI-assisted programming and repository navigation. Improved cross-referencing between code and documentation, facilitating better context for users and AI. Thank you for considering this feature request.

Version and model info

No response

paul-gauthier commented 3 months ago

Thanks for trying aider and filing this issue.

Markdown is currently disabled for the repo map, because the tree-sitter markdown parser sometimes crashes and takes down the entire aider process.