Closed raducoravu closed 4 years ago
@jason-fox I confirm it works for me 👍 One small thing, somehow in the generated TOC the title of the word document which appears there contains %20 instead of spaces. Btw, as pandoc does not support ASCIIDoc conversions I recently worked on a plugin for converting ASCII Doc to DITA:
https://github.com/oxygenxml/dita-asciidoc
I liked your idea to use ANT build files as a way to do the actual conversion so what my "dita-asciidoc" plugin does is that its XMLReader implementation class actually runs an ANT build file passing to it parameters for the input and output files:
So instead of having the custom build.xml as part of the preprocessing stage, the custom build.xml is called for each conversion and is giving a parameter for the input file and a parameter for the output file. Probably your way of doing things is faster though because the processing is done for all resources from a single build file.
I had success in converting Markdown to DITA using the plugin. I'm attaching a Word Document (DOCX).
Word File with various structures.docx
If I refer to it from a DITA Map:
the publishing is not able to convert it to DITA:
Running pandoc from the command line on the same Word document seems to work for me: