Replies: 2 comments 3 replies
-
Typst doesn't use metadata per se, it uses Typst templates and you complete the function by passing Typst arrays (see https://github.com/jgm/pandoc-templates/blob/master/default.typst#L23 for how the title/author etc. get into the typst output). If you need to extract these values, you would probably need a preparser of some kind; you can then use defaults and/or metadata passed to Pandoc for the conversion to HTML? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks for your reply. I was thinking I would have to add these values in a
separate file and pass them in using metadata-file.
I like the pre-parsing method a lot more as it reduces the need for a
separate file.
…On Tue, 2 Jul, 2024, 18:53 Ian Max Andolina, ***@***.***> wrote:
Typst doesn't use metadata per se, it uses Typst templates and you
complete the function by passing Typst arrays (see
https://github.com/jgm/pandoc-templates/blob/master/default.typst#L23 for
how the title/author etc. get into the typst output). If you need to
extract these values, you would probably need a preparser of some kind; you
can then use defaults and/or metadata passed to Pandoc for the conversion
to HTML?
—
Reply to this email directly, view it on GitHub
<#9937 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAGSJ4ONAR76LZH5SVKGA3LZKKSUJAVCNFSM6AAAAABKHOMND2VHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4TSMZWHA4DO>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Dear Folks,
I am trying to add support for Typst documents for a plugin used by the Pelican Static Site Generator.
The plugin only supports Markdown variants and I would like to add support to convert Typst to HTML5.
The issue I am having is how to add metadata to a Typst document without using a YAML block. How does Typst handle metadata? How does the whole metadata thing work with Pandoc?
Any insights on how this works would be greatly appreciated.
Many thanks
Beta Was this translation helpful? Give feedback.
All reactions