admin-shell-io / word2asciidoc

Apache License 2.0
2 stars 2 forks source link

From word to AsciiDoc to docbook #4

Closed proserviaadamprice closed 8 months ago

proserviaadamprice commented 8 months ago

Attach Word Document

sample.docx

proserviaadamprice commented 8 months ago

This is my workflow:-

!/bin/bash

pandoc sample.docx -f docx -t asciidoctor --wrap=none --extract-media=. --markdown-headings=atx -o ./input.adoc

fix_adoc --adoc_input ./input.adoc --adoc_output ./output.adoc

asciidoctor -b docbook output.adoc

pandoc -r docbook -t docx -o output.docx output.xml

Last stage fails because the xml is not valid.

Not sure if this is something you can help with.

github-actions[bot] commented 8 months ago

🚀 Transformation initiated! Once complete, the bot will comment with a link to the converted files.