🚧 This is a work in progress.
- Used to test creating a simple linter cli using TDD.
- Doesn't have any intelligence on parsing a markdown, just raw text, so might break snippet code blocks in some language I haven't seen yet, though my initial tests for my blog worked well.
Go 1.16+
go install github.com/sheldonhull/go-semantic-linebreaks/cmd/go-semantic-linebreaks@latest
go-semantic-linebreaks -source ./markdowndirectory
go run github.com/sheldonhull/go-semantic-linebreaks/cmd/go-semantic-linebreaks@latest -source $markdownfile -write
Make sure to compare the before, and after, as this project is just regex based right now (eventually I want to use goldmark for parsing block objects, but haven't made time yet).