From 644bbf99145042266ea8cf2890cef5771bd04be4 Mon Sep 17 00:00:00 2001 From: MALO <57839069+MDLC01@users.noreply.github.com> Date: Tue, 30 May 2023 10:13:27 +0200 Subject: Add `fields` method to content (#1340) --- tests/typ/compiler/methods.typ | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests') diff --git a/tests/typ/compiler/methods.typ b/tests/typ/compiler/methods.typ index 8b36dea9..864ed8ad 100644 --- a/tests/typ/compiler/methods.typ +++ b/tests/typ/compiler/methods.typ @@ -48,3 +48,8 @@ --- // Error: 2-5 cannot mutate a constant: box #box.push(1) + +--- +// Test content fields method. +#test([a].fields(), (text: "a")) +#test([a *b*].fields(), (children: ([a], [ ], strong[b]))) -- cgit v1.2.3