Open Astro-Aionia opened 2 weeks ago
I couldn't reproduce the issue, following the steps above. I get the Title style even after modifying the Title style in the custom reference docx, saving, and using it to create a new docx.
Are you using Word to modify the docx, or something else? (e.g. LibreOffice)
Explain the problem.
When metadatas are included in a markdown file like below:
It can be converted to DOCX file correctly with:
pandoc input.md -o output.docx
pandoc input.md -o output.docx --reference-docx=custom-reference.docx
. The custom.docx file was generated bypandoc -o custom-reference.docx --print-default-data-file reference.docx
and nothing was changed.In above conversions, the metedata
title
will be associate with "Title" style in word. But if I change any styles in custom.docx file, metedatatitle
will be associate with "Normal" style.This bug only occured with yaml metadatas. Everything in the following text is correct.
Pandoc version?
Pandoc 3.3. In 3.1.11, everything is correct.