Install pandoc in your system

sudo apt-get install pandoc

To convert md file to adoc

pandoc -s -S readme.md -t asciidoc -o readme.adoc

OR

Install IntelliJ asciidoc plugin