From b45156082cfa08bf7e390d71c4a9c101eb460858 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Thu, 11 Sep 2025 05:51:29 +0000 Subject: fix(ast): Gracefully handle malformed link lines --- src/ast/container.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/ast/container.rs b/src/ast/container.rs index 0d20193..bf4166c 100644 --- a/src/ast/container.rs +++ b/src/ast/container.rs @@ -206,7 +206,7 @@ impl Ast { .into_iter(); nodes.push(Node::Link { - to: split.next().expect("no location in link"), + to: split.next().unwrap_or_default(), text: { let rest = split.collect::>().join(" "); -- cgit v1.2.3