-- align-figures.luaifFORMAT~="typst"thenreturn{}endfunctionFigure(fig)localbefore=""localalign=fig.content[1].content[1].attrandfig.content[1].content[1].attr.attributes["align"]ifalignthenbefore="#show figure: set align("..align..")\n"endifbefore~=""thenlocalout={}table.insert(out,pandoc.Plain{pandoc.RawInline("typst","#[")})table.insert(out,pandoc.Plain{pandoc.RawInline("typst",before)})table.insert(out,pandoc.Figure(fig.content,fig.caption,fig.attr))table.insert(out,pandoc.Plain{pandoc.RawInline("typst","]")})returnoutendreturnfigend