Converts Markdown to Gemini gemtext with Go. Working with streams and UNIX pipes, utilizing Go channels. Processes streams of input line by line and forwards blocks to the next pipeline stage.
Find a file
2021-07-04 00:18:57 +08:00
main.go start state machine parser 2021-07-03 23:58:03 +08:00
parser.go parse fences and paragraphs 2021-07-04 00:18:57 +08:00
README.md parse fences and paragraphs 2021-07-04 00:18:57 +08:00

md2gmi

Convert Markdown to Gemini Gemini "gemtext" markup with Go. Working with streams and pipes for UNIX like behavior utilizing Go channels.

Usage

Usage of ./md2gmi:
  -in string
        specify a .md (Markdown) file to read from, otherwise stdin (default)
  -out string
        specify a .gmi (gemtext) file to write to, otherwise stdout (default)

Example

go get github.com/n0x1m/md2gmi
cat file.md | md2gmi
md2gmi -in file.md -out file.gmi