git.iko.soy/typeable/pandoc
on master help sign in
Handle native Underline in Powerpoint writer.

(Instead of old Span with underline class. Spans with `underline` will no longer be rendered as underlined text.)

commit7f8105159cab909fa9c803a73276c4b4981c8ebf authorJohn MacFarlane <jgm@berkeley.edu> dateMon 22 Jun 2020, 17:56 (6 years ago) parentb1561d8
3 files changed+1−1
src/Text/Pandoc/Writers/Powerpoint/Presentation.hs+1−1 test/pptx/inline_formatting.pptx test/pptx/inline_formatting_templated.pptx
src/Text/Pandoc/Writers/Powerpoint/Presentation.hs+1−1
@@ -370,7 +370,7 @@ inlineToParElems (Note blks) = do
370370 modify $ \st -> st { stNoteIds = M.insert curNoteId blks notes }
371371 local (\env -> env{envRunProps = (envRunProps env){rLink = Just $ InternalTarget endNotesSlideId}}) $
372372 inlineToParElems $ Superscript [Str $ tshow curNoteId]
373−inlineToParElems (Span (_, ["underline"], _) ils) =
373+inlineToParElems (Underline ils) =
374374 local (\r -> r{envRunProps = (envRunProps r){rPropUnderline=True}}) $
375375 inlinesToParElems ils
376376inlineToParElems (Span _ ils) = inlinesToParElems ils
test/pptx/inline_formatting.pptx

Binary file not shown.

test/pptx/inline_formatting_templated.pptx

Binary file not shown.