diff options
| author | Michael Stahl <[email protected]> | 2023-04-25 14:33:19 +0200 |
|---|---|---|
| committer | John MacFarlane <[email protected]> | 2023-05-01 20:39:47 -0700 |
| commit | 013351f6023a6b8b83e9f8c45d8a8fbc6dcd46f1 (patch) | |
| tree | 74ccd2518a78235c6469843fc8077da1baf4042f /src | |
| parent | a34a4d8e4a06f3595be30dcd117bb204838335e2 (diff) | |
Writers.OpenDocument: fix invalid text:p inside text:p from meta
The only element in meta for which data/templates/default.opendocument
allows block element content appears to be "abstract", which is already
filtered out of meta' at this point, so simply convert all blocks to
linebreak-separated inlines.
Fixes: #8256
Diffstat (limited to 'src')
| -rw-r--r-- | src/Text/Pandoc/Writers/OpenDocument.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Writers/OpenDocument.hs b/src/Text/Pandoc/Writers/OpenDocument.hs index 1c8417c47..e844d91f7 100644 --- a/src/Text/Pandoc/Writers/OpenDocument.hs +++ b/src/Text/Pandoc/Writers/OpenDocument.hs @@ -255,7 +255,7 @@ writeOpenDocument opts (Pandoc meta blocks) = do collectBlockIdent _ = [] modify $ \s -> s{ stIdentTypes = query collectBlockIdent blocks } m <- metaToContext opts - (blocksToOpenDocument opts) + (inlinesToOpenDocument opts . blocksToInlines) (fmap chomp . inlinesToOpenDocument opts) meta' b <- blocksToOpenDocument opts blocks |
