github.com/darmach/terratest@v0.34.8-0.20210517103231-80931f95e3ff/docs/scripts/convert_adoc_to_md.sh (about) 1 # Required: 2 # - asciidoctor 3 # - pandoc 4 # 5 # Install Asciidoctor: 6 # $ sudo apt-get install asciidoctor 7 # 8 # Install Pandoc 9 # https://pandoc.org/installing.html 10 # 11 # 1. Create input.adoc file 12 # 2. paste adoc-formatted content to input.adoc 13 # 3. run script 14 # 4. The output will be printed to the output.md file. 15 asciidoctor -b docbook input.adoc && pandoc -f docbook -t gfm input.xml -o output.md --wrap=none --atx-headers