From ada0f5da65ef41ac8fa11111839437c76edd3c68 Mon Sep 17 00:00:00 2001 From: Yip Coekjan <69834864+Coekjan@users.noreply.github.com> Date: Tue, 4 Jun 2024 23:33:08 +0800 Subject: Hint for labels in code mode (#4319) --- tests/suite/foundations/label.typ | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests') diff --git a/tests/suite/foundations/label.typ b/tests/suite/foundations/label.typ index 2cde102c..28c6383b 100644 --- a/tests/suite/foundations/label.typ +++ b/tests/suite/foundations/label.typ @@ -68,3 +68,9 @@ _Visible_ #test(str(), "hey") #test(str(label("hey")), "hey") #test(str([Hmm].label), "hey") + +--- label-in-code-mode-hint --- +// Error: 7-7 expected semicolon or line break +// Hint: 7-7 labels can only be applied in markup mode +// Hint: 7-7 try wrapping your code in a markup block (`[ ]`) +#{ [A] } -- cgit v1.2.3