╭ changed ──╮ │src/web.zig│ ╰───────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭────────────────────────────────────────────────────────────────────────────────────╮ │493 plain, // non-focusable, colored │ │494 │ │495 const a_prefix = "a:"; │ │496 + // an "in-page" anchor: rendered as a real <a href> so it works with js│ │497 + // disabled, but crossPageLink ignores it, so with wasm the click just │ │498 + // moves focus rather than navigating. │ │499 + const inpage_prefix = "ai:"; │ │500 │ │501 fn init(str: []const u8) @This() { │ │502 + if (std.mem.startsWith(u8, str, inpage_prefix)) { │ │503 + return .{ .a = str[inpage_prefix.len..] }; │ │504 + } │ │505 if (std.mem.startsWith(u8, str, a_prefix)) { │ │506 return .{ .a = str[a_prefix.len..] }; │ │507 } │ ╰────────────────────────────────────────────────────────────────────────────────────╯