A Python script to generate a structured Markdown document from your project's source code. It automatically:
- ๐ Builds a directory tree โ Visualize your project structure.
- ๐ Embeds code files โ Supports syntax highlighting for multiple extensions.
- โ๏ธ Customizable filters โ Exclude directories, limit file extensions, and control recursion.
Perfect for sharing code snippets, documenting projects, or creating portable code reports!
- Recursive/non-recursive directory traversal
- Exclude specific folders (e.g.,
node_modules,venv) - Filter by file extensions (e.g.,
.py,.js,.html) - Clean Markdown output with code blocks
python code_to_markdown.py /your/project/path [--non-recursive] [--exclude-dirs dir1 dir2] [--extensions .py .js]