Conversation
There was a problem hiding this comment.
Pull request overview
This PR initializes a new Go-based command-line tool called "codemd" (with CLI name "md-code-lite") that converts between markdown files containing code blocks and individual source code files. The tool supports bidirectional conversion: extracting code blocks from markdown into separate source files, and consolidating source files into a single markdown document with properly formatted code blocks.
Changes:
- Added core conversion logic for markdown ↔ source files with language detection for 40+ file types
- Implemented CLI commands (
tocodeandtomd) using the Cobra framework for user interaction - Included comprehensive test coverage with golden file testing approach and GitHub Actions CI workflows
Reviewed changes
Copilot reviewed 14 out of 15 changed files in this pull request and generated 8 comments.
Show a summary per file
| File | Description |
|---|---|
| go.mod | Module definition with dependencies (cobra, testify) |
| go.sum | Dependency checksums |
| main.go | CLI command definitions and file system utilities |
| codemd.go | Core conversion logic between markdown and source files |
| markdown.go | Language detection utilities based on file extensions |
| codemd_test.go | Test suite for markdown/source file conversions |
| testdata/* | Test fixtures including golden files and sample code |
| .golangci.yml | Linting configuration for code quality |
| .github/workflows/* | CI/CD workflows for tests and linting |
| README.md | Basic project description |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.