https://github.com/sheldonhull/go-semantic-linebreaks
Use semantic line breaks with markdown files.
https://github.com/sheldonhull/go-semantic-linebreaks
go markdown
Last synced: over 1 year ago
JSON representation
Use semantic line breaks with markdown files.
- Host: GitHub
- URL: https://github.com/sheldonhull/go-semantic-linebreaks
- Owner: sheldonhull
- Created: 2021-07-01T00:03:39.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2025-03-22T02:56:58.000Z (over 1 year ago)
- Last Synced: 2025-03-22T03:26:13.912Z (over 1 year ago)
- Topics: go, markdown
- Language: Go
- Homepage:
- Size: 91.8 KB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Go Semantic Line Breaks For Markdown
[Semantic Line Breaks](https://sembr.org/)
🚧 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.
## Install
Go 1.16+
```shell
go install github.com/sheldonhull/go-semantic-linebreaks/cmd/go-semantic-linebreaks@latest
```
## Use
```shell
go-semantic-linebreaks -source ./markdowndirectory
```
## Remotely Invoke
```shell
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).