Thank you for your reply @ssotoen
I actually should have specified the context of my quesiton as I knew about the atribution (which is a nice thing in Typst)
The context of my question is from mdbook-typst and particularly my branch of it. I have been using mdbook-typst to transform my mdbook to a final PDF A5 with custom typst template and it works really well. I can type my book in Obsidian with a mdbook structure and after compiling, I get a nice PDF with footnote, images, quotes etc. transformed from markdown to typst. This is a little dream for me, as I work on a boox tablet and I can generate my book from my obsidian vault via Termux.
Anyway, the thing is that there is no attribution in markdown by default, so I ended up doing:
> Text
> Text
>
> -- Atribution
in my markdown. Then via the typst template I was hoping to left align all my attributions in my quotes in markdown, hence my question.
When I do
show quote: it => {
panic(it.body)
}
in my template, I get this in my terminal:
error: panicked with: sequence(
sequence(
parbreak(),
[Subhuti, what is called Buddhism, is not Buddhism.],
parbreak(),
),
[ ],
sequence(
parbreak(),
sequence(
[— The Buddha,],
[ ],
emph(body: [Diamond Pranjaparamita Sutta]),
),
parbreak(),
),
[ ],
)
I thought I could access the different fields in the it.body
in the show
rule to apply different style via if
function. But the outcome is that sequence(...)
, is there a way to access the elements of that sequence? (there is an interesting example here that is even able to give an attribution)