mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-28 17:20:47 +08:00
b69e9dbb81
See jgm/typst-hs#80. Note that previously, the typst reader never returned document metadata. Now it does, even if the typst document does not contain a `#title` function that would result in actually printing the title block.
746 B
746 B
% pandoc -f typst -t native -s
#set document(
title: [My Title],
)
#title()
^D
Pandoc
Meta
{ unMeta =
fromList
[ ( "title"
, MetaInlines [ Str "My" , Space , Str "Title" ]
)
]
}
[]
% pandoc -f typst -t native -s
#set document(
title: [ignored],
)
#title[My Title]
^D
Pandoc
Meta
{ unMeta =
fromList
[ ( "title"
, MetaInlines [ Str "My" , Space , Str "Title" ]
)
]
}
[]
% pandoc -f typst -t native -s
#title[My Title]
^D
Pandoc
Meta
{ unMeta =
fromList
[ ( "title"
, MetaInlines [ Str "My" , Space , Str "Title" ]
)
]
}
[]