diff options
author | Jesse Rosenthal <jrosenthal@jhu.edu> | 2016-07-01 01:14:16 -0400 |
---|---|---|
committer | Jesse Rosenthal <jrosenthal@jhu.edu> | 2016-07-01 01:14:16 -0400 |
commit | b103f829f0d14055744998a6a6f624797fbd0d40 (patch) | |
tree | f8291ecbe4ce05d6cc7b8b9deb12a380a026b680 /src | |
parent | 2c62f0e122d71dad356cba949269377ce98ed3f8 (diff) | |
download | pandoc-b103f829f0d14055744998a6a6f624797fbd0d40.tar.gz |
Docx writer: set paragraph to FirstPara after display math
We treat display math like block quotes, and apply FirstParagraph style
to paragraphs that follow them. These can be styled as the user
wishes. (But, when the user is using indentation, this allows for
paragraphs to continue after display math without indentation.)
Diffstat (limited to 'src')
-rw-r--r-- | src/Text/Pandoc/Writers/Docx.hs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Text/Pandoc/Writers/Docx.hs b/src/Text/Pandoc/Writers/Docx.hs index a841e1b66..8cfe24199 100644 --- a/src/Text/Pandoc/Writers/Docx.hs +++ b/src/Text/Pandoc/Writers/Docx.hs @@ -1045,6 +1045,7 @@ inlineToOpenXML opts (Math mathType str) = do let displayType = if mathType == DisplayMath then DisplayBlock else DisplayInline + when (displayType == DisplayBlock) setFirstPara case writeOMML displayType <$> readTeX str of Right r -> return [r] Left _ -> inlinesToOpenXML opts (texMathToInlines mathType str) |