-
I asked ChatGPT how to convent XML I export from WordPress to DOCX so people can review the text and it offer your tool. I run it and got the message |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 8 replies
-
The extension xml is generic so you'll have to provide more details about the format used. For example, if you use jats you'd say -f jats.
Don't know if WordPress XML is supported though.
Gesendet von Outlook für Android<https://aka.ms/AAb9ysg>
…________________________________
From: mstudio ***@***.***>
Sent: Sunday, September 1, 2024 11:15:36 AM
To: jgm/pandoc ***@***.***>
Cc: Subscribed ***@***.***>
Subject: [jgm/pandoc] Convent XML to DOCX (Discussion #10136)
I asked ChatGPT how to convent XML I export from WordPress to DOCX so people can review the text and it offer your tool. I run it and got the message
"[WARNING] Could not deduce format from file extension .xml
Defaulting to markdown"
I used this the "pandoc WordPress.2024-09-01.xml -o WordPress.2024-09-01.docx" I run it on the file folder.
How do I fix this?
—
Reply to this email directly, view it on GitHub<#10136>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ABDTWJQQFMC5QORB4S2QYM3ZULLLRAVCNFSM6AAAAABNOVFFL2VHI2DSMVQWIX3LMV43ERDJONRXK43TNFXW4OZXGEYTOMZTGQ>.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Not me. I meant this: pandoc usually can infer the format from the file ending. But in this case you need to specify the format explicitly since XML can be many things.
Gesendet von Outlook für Android<https://aka.ms/AAb9ysg>
…________________________________
From: mstudio ***@***.***>
Sent: Sunday, September 1, 2024 11:45:13 AM
To: jgm/pandoc ***@***.***>
Cc: Maier, Denis Christian (UB) ***@***.***>; Comment ***@***.***>
Subject: Re: [jgm/pandoc] Convent XML to DOCX (Discussion #10136)
Thanks for the answer, what details can I give you, so you can help me better?
—
Reply to this email directly, view it on GitHub<#10136 (reply in thread)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ABDTWJR5C7EZ6W4CHL3GL7LZULO2TAVCNFSM6AAAAABNOVFFL2VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTANJRGEZDQNI>.
You are receiving this because you commented.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Thanks, I also got this error , but I got the images on the doc, how do I install the addon? do I need it? |
Beta Was this translation helpful? Give feedback.
I don't have a lot of time to help you, but I can add the following.
I have never needed
rsvg-convert
and I can't find any mention of it in the pandoc manual, so I don't know what function it serves. I would say that if the output doesn't seem to be missing any of the images from the article, you shouldn't worry about it. If you do want to install it, see the pandoc installation instructions for your platform.A quick experiment shows me that pandoc doesn't represent
<header></header>
and<footer></footer>
tags in its AST, so if you want to use those, you'll have preprocess the HTML with something that can work on the DOM before you pass it to pandoc. Alternatively, you can look at the HT…