Skip to content

Init tool codemd#1

Merged
kahlys merged 1 commit intomainfrom
alpha
Feb 3, 2026
Merged

Init tool codemd#1
kahlys merged 1 commit intomainfrom
alpha

Conversation

@kahlys
Copy link
Copy Markdown
Contributor

@kahlys kahlys commented Feb 3, 2026

No description provided.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 (tocode and tomd) 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.

Comment thread main.go Outdated
Comment thread main.go Outdated
Comment thread codemd.go Outdated
Comment thread main.go
Comment thread main.go
Comment thread codemd.go
Comment thread codemd.go
Comment thread .github/workflows/test.yml Outdated
@kahlys kahlys merged commit 5e61bb8 into main Feb 3, 2026
2 checks passed
@kahlys kahlys deleted the alpha branch February 3, 2026 13:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants