summaryrefslogtreecommitdiff
path: root/docs/modules
diff options
context:
space:
mode:
authorDiego Carrasco Gubernatis <557703+dacog@users.noreply.github.com>2021-02-28 22:52:59 +0100
committerGitHub <noreply@github.com>2021-02-28 14:52:59 -0700
commitbf32e7ab1dae3e1a80e9c7f782a438a834cb9bf3 (patch)
tree71a2d59d3ed2006168aff07f4b7403a482186380 /docs/modules
parent3c7d2e8255d2f75dede0aab42ca32948ca4360e4 (diff)
[docs] on MS Word migration page, add a pandoc command using docker and update command (PR #3956)
Diffstat (limited to 'docs/modules')
-rw-r--r--docs/modules/migrate/pages/ms-word.adoc14
1 files changed, 14 insertions, 0 deletions
diff --git a/docs/modules/migrate/pages/ms-word.adoc b/docs/modules/migrate/pages/ms-word.adoc
index 7936e787..4f855ff9 100644
--- a/docs/modules/migrate/pages/ms-word.adoc
+++ b/docs/modules/migrate/pages/ms-word.adoc
@@ -16,8 +16,22 @@ However, in this case, it's a good choice.
To perform the conversion from MS Word docx to AsciiDoc, you need to perform the following command:
+.pandoc < 2.11.2
+
$ pandoc --from=docx --to=asciidoc --wrap=none --atx-headers \
--extract-media=extracted-media input.docx > output.adoc
+
+.pandoc (2.11.2 or newer)
+
+ $ pandoc input.docx -f docx -t asciidoc --wrap=none --markdown-headings=atx \
+ --extract-media=extracted-media -o output2.adoc
+
+.pandoc (2.11.2 or newer) and docker
+
+If you use docker you can also use the latest version of pandoc with docker without installing it:
+
+ $ docker run --rm --volume "`pwd`:/data" --user `id -u`:`id -g` pandoc/core input.docx -f docx \
+ -t asciidoc --wrap=none --markdown-headings=atx --extract-media=extracted-media -o output2.adoc
Then, edit the output file to tidy it up.