Files
pandoc/test/pptx-reader/notes.native
T
Nacho García baca29c3ef Pptx reader: read speaker notes.
The reader never opened the notes slides. Each slide's notes are now
read into a `notes` div at the end of the slide's blocks, the form the
pptx writer turns into speaker notes, so pptx -> Markdown -> pptx keeps
them.

The notes slide is found through the slide's own relationship, since
notesSlideN.xml often isn't slide N's. Its text is in the shape with
the body placeholder; the slide image and slide number placeholders are
ignored. Notes without text yield no div, and a missing or unreadable
notes part never fails the conversion.

The test fixture was written with python-pptx 1.0.2. Its notes parts
are numbered out of order, one has no text, and one slide is hidden.

Discussed in #12023.
2026-11-04 08:50:55 -08:00

61 lines
1.1 KiB
Plaintext

Pandoc
Meta { unMeta = fromList [] }
[ Header
2
( "slide-1" , [] , [] )
[ Str "Notes"
, Space
, Str "on"
, Space
, Str "two"
, Space
, Str "paragraphs"
]
, Div
( "" , [ "notes" ] , [] )
[ Para
[ Str "First"
, Space
, Str "paragraph"
, Space
, Str "of"
, Space
, Str "the"
, Space
, Str "notes."
]
, Para [ Str "Second" , Space , Str "paragraph." ]
]
, Header
2 ( "slide-2" , [] , [] ) [ Str "No" , Space , Str "notes" ]
, Header
2
( "slide-3" , [] , [] )
[ Str "Empty" , Space , Str "notes" ]
, Header
2
( "slide-4" , [ "hidden" ] , [] )
[ Str "Hidden"
, Space
, Str "slide"
, Space
, Str "with"
, Space
, Str "notes"
]
, Div
( "" , [ "notes" ] , [] )
[ Para
[ Str "Notes"
, Space
, Str "on"
, Space
, Str "the"
, Space
, Str "hidden"
, Space
, Str "slide."
]
]
]