md2confl is a CLI tool to convert the markdown text to confluence wiki format.
$ brew tap kentaro-m/homebrew-md2confl
$ brew install md2confl
$ GO111MODULE=on go get github.com/kentaro-m/md2confl
Output the confluence wiki text
Usage:
md2confl [file path] [flags]
Flags:
-h, --help Output usage information
-v, --version Output the version number
$ md2confl ~/sample.md
h1. Hello World
{code:language=go}
package main
import "fmt"
func main() {
fmt.Println("Hello World")
}
{code}
$ md2confl ~/sample.md > foo.txt
$ md2confl ~/sample.md | pbcopy
$ cat hoge.txt | md2confl
MIT