Pandoc failing on context call #11065
-
It may be a little stupid, and in #9712 it's been asked but... Well, I'm working on converting something using TiefDownConverter. Specifically, I'm trying to make a songbook using TiefLied (Yes I really like naming my stuff after myself hehe). My approach was to make a typ file per song with the Regardless, I have a typst file like so: #import "@preview/tieflied:0.1.0": annotation, bridge, chorus, song, verse
#song(
title: "Dominoes",
author: "Anson Seabra",
)[
#verse[It hurts and I don't know why\
Was it something I did?\
Along the ride, in another life\
Is there something I missed?\
The generation's up in smoke\
We look like kids but feel like ghosts\
Just try and try to feel alive]
] (Shortened) And I'm running into issues with Pandoc. Simplified, when running
Lotsa preamble for this question: Why does Pandoc fail in this case? The typst is just updating a state: context authors-state.update(authors => {
if authors.keys().contains(author) {
authors.at(author).songs.push(title)
return authors
}
authors.insert(author.name, (songs: (title,)))
authors
}) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
I don't see why you don't just use |
Beta Was this translation helpful? Give feedback.
state
isn't yet supported.I don't see why you don't just use
cat
for this!Even without
state
, typst -> typst via pandoc will be lossy, because everything goes through pandoc's own less expressive document model.