/markdown-covertor

Converts Github Markdown to Confluence Wiki Markup

Primary LanguageGo

Markdown convertor

Often times, we need to convert our docs on github readme to Confluence Wiki markup. This repo helps in converting it. This is still work in progress. Currently capable of converting headers, code blocks, bold, blockquotes, hyperlink messages. This needs to extend futher for Table, horizontal rule, images and Lists.

How to run this locally

go get git@github.com:manojbadam/markdown-covertor.git
cd $GOPATH/src/github.com/manojbadam/markdown-convertor
export FILE_PATH="<path/to/readme.md>"
go build
./markdown-covertor wiki -i /Users/badam/test/clone/gist/cilium-podcidr.md -o converted.md

How to run using docker

git clone git@github.com:manojbadam/markdown-covertor.git
cd markdown-convertor
docker build -t convertor .
docker run -it -v $PWD:/home convertor markdown-convertor wiki -i /home/sample.md
docker run -it -v $PWD:/home convertor markdown-convertor wiki -i /home/sample.md -o /home/output.wiki

Once the markdown is converted into output.wiki file, refer this page for how to insert the markdown

References