Files
pandoc/test/odt/native/referenceToChapter.native
T
John MacFarlane ec1b30be64 ODT reader: read text wrapped in metadata elements and fields.
Content of an element the reader did not recognize was discarded along
with the element, which silently lost text: fields such as
`text:page-number`, `text:author-name` or `text:chapter`, the RDFa
wrapper `text:meta`, the bibliographic wrapper `text:meta-field`, and
ruby annotations.  Add matchers for those; for ruby, keep the base text
and drop the gloss, which pandoc cannot represent.

The three near-identical lists of inline matchers for paragraphs,
headings and spans are merged into one, which also means `text:sequence`
is now read inside headings and spans.

The existing referenceToChapter test asserted the old behaviour: the
name of the referenced chapter was missing from its expected output.
2026-10-01 20:30:30 -07:00

2 lines
413 B
Plaintext

[Header 1 ("a-chapter",[],[]) [Span ("anchor",[],[]) [],Str "A",Space,Str "chapter"],Para [Str "Some",Space,Str "text."],Header 1 ("another-chapter",[],[]) [Str "Another",Space,Str "chapter"],Para [Str "A",Space,Str "reference",Space,Str "to",Space,Str "Another",Space,Str "chapter."],Para [Str "A",Space,Str "reference",Space,Str "to",Space,Link ("",[],[]) [Str "A",Space,Str "chapter"] ("#anchor",""),Str "."]]