Closed matklad closed 11 months ago
One thing I've been thinking about is that perhaps, rather than additing captions to the table, we should have
interface Table extends HasAttributes {
tag: "table";
children: Row[];
}
interface Figure extends HasAttributes {
tag: "figure";
children: [Block, Caption]
}
and allow catptions on any block. I certainly would like to be able to caption my code block at times!
This is how typst is doing it, if I recall correctly. Captions on code blocks are a common request in pandoc.
I think I've fixed the bug. Perhaps the suggestion about generalizing captions could go in a separate issue so we don't lose track.
Ast:
Two problems here: