Creating a DOCX file from an AsciiDoc file
Create a DOCX file for Microsoft Word and LibreOffice from an AsciiDoc file directly in the IDE.
This feature is available since plugin version 0.37.26.
The user can choose Create DOCX from current file from the editor’s action toolbar to convert the current file to the DOCX format. If creation of the DOCX file succeeds, the exported file is opened in the system’s default application, for example, Microsoft Word or LibreOffice.
The conversion is done using Pandoc. On first use the plugin downloads a version of Pandoc that is compatible with the plugin.
The conversion the plugin performs has two steps:
Convert the AsciiDoc file to DocBook using the Asciidoctor DocBook backend.
Convert the DocBook output to DOCX using Pandoc.
How this can be automated shows the DocToolchain collection in the convertToDocx Gradle snippet.