Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

From word to AsciiDoc to docbook #4

Closed
proserviaadamprice opened this issue Feb 29, 2024 · 2 comments
Closed

From word to AsciiDoc to docbook #4

proserviaadamprice opened this issue Feb 29, 2024 · 2 comments

Comments

@proserviaadamprice
Copy link

Attach Word Document

sample.docx

@proserviaadamprice
Copy link
Author

proserviaadamprice commented Feb 29, 2024

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.

Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant