Md2conflu converts Markdown document into Confluence wiki markup.
- Ruby (confirmed in 2.2, 2.4)
- Rake
- Bundler
$ git clone https://github.com/nemupm/md2conflu.git
$ cd md2conflu
$ rake install
You can input markdown file with -f option.
$ md2conflu -f ~/test.md
h1. title
* \[a\](http://localhost)
* {code}abc{code}
{code}
#comment
{code}
$
Standard input or simply string argument is also available.
$ md2conflu << 'EOS'
# abc
## edf
- 1
- 2
- 3
EOS
h1. abc
h2. edf
* 1
* 2
* 3
$
$ md2conflu "
> # abc
> ## bcd
> - 1
> - 2
> - 3
> "
h1. abc
h2. bcd
* 1
* 2
* 3
- In edit view, select "insert > markup" and you can get pop-up window.
- Select "Confluence Wiki" in pulldown menu and paste markup into the left text box.
- Click the insert button.
# .bashrc
alias m2c="pbpaste |md2conflu |pbcopy"
- joelmeyerhamme/commonmark_parslet(2015) Adapted.
MIT ©️ nemupm