-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
markdown to odt conversion produces corrupt document #9287
Comments
I can't reproduce this on my end with pandoc 3.1.11 and LibreOffice for macOS:
I can try updating LibreOffice to see if it makes a difference. |
Upgrading to LibreOffice 7.6.4.1 -- I can still open basic.odt with no problems. |
These styles were going into an office:styles element in content.xml, but this is invalid. Instead they must go in styles.xml. See #9287. The variable `highlighting-styles` no longer has any effect on the default opendocument template, and highlighting styles are not included in opendocument output.
I've fixed the issue with styles, but this doesn't seem to be your original issue. |
Think I found the source of the problem; it was line 2 in the |
Running
pandoc -f markdown -t odt -o basic.odt basic.md
onbasic.md
, which is as follows...results in an odt file that LibreOffice is unable to open. The Libre Office error is: "The file 'basic.odt' is corrupt and therefore cannot be opened." The file can be opened in MSWord, but on save it warns "basic.odt may contain features that are not compatible with this format."
odfvalidator.org reports an error for the odt file as follows:
basic.odt/content.xml[2,1334]: Error: attribute "office:version" has a bad value
I am aware this may be an LO issue but pandoc-discuss is out of action so I thought I'd ask here.
Thanks.
Pandoc Version: 3.1.11
Libre Office: 7.6.4.1
Mac OS 14.1.2
The text was updated successfully, but these errors were encountered: