Purpose:
littlewill is a tool for cleaning up Markdown links by removing extra spaces within the link text.
littlewill input.md > output.md
On macOS/Linux:
brew install gkwa/homebrew-tools/littlewill
On Windows:
TBD
To run the tests for littlewill, follow these steps:
- Ensure you have Go installed on your system.
- Navigate to the project root directory.
- Run the following command:
go test ./...
This will run all tests in the project, including the ones in the core
package.
To run tests with verbose output:
go test -v ./...
To run a specific test:
go test -v ./core -run TestCleanupMarkdownLinks
Replace TestCleanupMarkdownLinks
with the name of the specific test you want to run.
The main functionality is implemented in the core/cleanup.go
file. Tests are located in core/cleanup_test.go
.
To contribute or modify the code, make sure to run the tests after any changes to ensure everything is working as expected.