diff options
author | Jesse Rosenthal <jrosenthal@jhu.edu> | 2018-02-22 12:56:19 -0500 |
---|---|---|
committer | Jesse Rosenthal <jrosenthal@jhu.edu> | 2018-02-22 13:05:25 -0500 |
commit | 5262c0853acbef6dd25d9d6cbda26120859b45ff (patch) | |
tree | 7dc8328b5f381a251d47bf1b5d9d1bed207ae494 /test/pptx/images.native | |
parent | 88d17c6c66954be47bfa0f625323aca2ba48a9e9 (diff) | |
download | pandoc-5262c0853acbef6dd25d9d6cbda26120859b45ff.tar.gz |
Docx reader: read custom styles
This will read all paragraph and character classes as divs and spans,
respectively. Dependent styles will still be resolved, but will be
wrapped with appropriate style tags. It is controlled by the `+styles`
extension (`-f docx+styles`).
This can be used in conjunction with the `custom-style` feature in the
docx writer for a pandoc-docx editing workflow. Users can convert from
an input docx, reading the custom-styles, and then use that same input
docx file as a reference-doc for producing an output docx file. Styles
will be maintained across the conversion, even if pandoc doesn't
understand them.
Without the extension:
$ pandoc test/docx/custom-style-reference.docx -f docx -t markdown
This is some text.
This is text with an *emphasized* text style. And this is text with a
**strengthened** text style.
> Here is a styled paragraph that inherits from Block Text.
With the extension:
$ pandoc test/docx/custom-style-reference.docx -f docx+styles -t markdown
::: {custom-style="FirstParagraph"}
This is some text.
:::
::: {custom-style="BodyText"}
This is text with an
*[[emphasized]{custom-style="Emphatic"}]{custom-style="Emphatic"}* text
style. And this is text with a
**[[strengthened]{custom-style="Strengthened"}]{custom-style="Strengthened"}**
text style.
:::
::: {custom-style="MyBlockStyle"}
Closes: #1843
Diffstat (limited to 'test/pptx/images.native')
0 files changed, 0 insertions, 0 deletions