Hi,I am trying to use pandoc to convert some documents to word docx format.
I found that when I use the --toc argument, I get a warning from Microsoft Word on windows about fields that are referring to other files.
I'm trying to figure out how can I avoid thi warning for the users of my generated document ?
Steps to reproduce:
Step1: Create a document of either markdown of html (I am using markdown as an example)
Here is my example markdown file:
$ cat test.md
# head1
## subhead1
# head2
## subhead2
Step 2: Convert to docx with pandoc with the --toc argument
pandoc --toc -o test.docx test.md
Step 3: Open the test.docx with Microsoft Word
PFA a screenshot of the warning I get.
- If I click "Yes" - the table of contents appears
- If I click "No" - the table of contents does not appear, and I have to click on "update TOC" to update it with the correct contents
Other info:
- Pandoc version: 2.10
- Windows: 10 Version 2004
- I use WSL with Ubuntu: 18.04.4
Any help appreciated
--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/69d0df29-46d5-4098-9e01-3485f17bcbd5n%40googlegroups.com.