aboutsummaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorJohn MacFarlane <[email protected]>2024-12-17 12:10:40 -0800
committerJohn MacFarlane <[email protected]>2024-12-17 17:33:17 -0800
commit7a66c946e27468912df946daa5e814b10b76c724 (patch)
tree9177030f3c3435d6646e4194dc189c7edb9e7b8e /data
parentd6edb57797b2d043715a23ba1de19c0c654b0f37 (diff)
Docx writer: use styleIds not styleNames for Title, Subtitle, etc.
This change affects the default openxml template as well as the OpenXML writer. Closes #10282 (regression introduced in pandoc 3.5).
Diffstat (limited to 'data')
-rw-r--r--data/templates/default.openxml10
1 files changed, 5 insertions, 5 deletions
diff --git a/data/templates/default.openxml b/data/templates/default.openxml
index 0cfc6e1a2..000609df7 100644
--- a/data/templates/default.openxml
+++ b/data/templates/default.openxml
@@ -4,7 +4,7 @@
$if(title)$
<w:p>
<w:pPr>
- <w:pStyle w:val="Title" />
+ <w:pStyle w:val="$title-style-id$" />
</w:pPr>
$title$
</w:p>
@@ -12,7 +12,7 @@ $endif$
$if(subtitle)$
<w:p>
<w:pPr>
- <w:pStyle w:val="Subtitle" />
+ <w:pStyle w:val="$subtitle-style-id$" />
</w:pPr>
$subtitle$
</w:p>
@@ -20,7 +20,7 @@ $endif$
$for(author)$
<w:p>
<w:pPr>
- <w:pStyle w:val="Author" />
+ <w:pStyle w:val="$author-style-id$" />
</w:pPr>
$author$
</w:p>
@@ -28,7 +28,7 @@ $endfor$
$if(date)$
<w:p>
<w:pPr>
- <w:pStyle w:val="Date" />
+ <w:pStyle w:val="$date-style-id$" />
</w:pPr>
$date$
</w:p>
@@ -37,7 +37,7 @@ $if(abstract)$
$if(abstract-title)$
<w:p>
<w:pPr>
- <w:pStyle w:val="AbstractTitle" />
+ <w:pStyle w:val="$abstract-title-style-id$" />
</w:pPr>
<w:r><w:t xml:space="preserve">$abstract-title$</w:t></w:r>
</w:p>