sheldonhull / go-semantic-linebreaks

Use semantic line breaks with markdown files.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Go Semantic Line Breaks For Markdown

gopherbadger-tag-do-not-edit

Semantic Line Breaks

🚧 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+

go install github.com/sheldonhull/go-semantic-linebreaks/cmd/go-semantic-linebreaks@latest

Use

go-semantic-linebreaks -source ./markdowndirectory

Remotely Invoke

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).

About

Use semantic line breaks with markdown files.


Languages

Language:Go 95.1%Language:Dockerfile 4.9%