github.com/swisspost/terratest@v0.0.0-20230214120104-7ec6de2e1ae0/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