╭──────────╮ │← previous│ ╰──────────╯ ╭ changed ──╮ │src/web.zig│ ╰───────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────╮ │1599 │ │1600 const a_prefix = "a:"; │ │1601 // an "in-page" anchor: rendered as a real <a href> so it works with js│ │1602 - // disabled, but crossPageLink ignores it, so with wasm the click just │ │1603 - // moves focus rather than navigating. │ │1604 - const inpage_prefix = "ai:"; │ │1605 - │ │1602 + // disabled, but wasm handles it without navigating. │ │1603 fn init(str: []const u8) @This() { │ │1604 if (std.mem.startsWith(u8, str, ui.raw_link_prefix)) { │ │1605 return .{ .a = str[ui.raw_link_prefix.len..] }; │ ╰─────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────╮ │1606 } │ │1610 - if (std.mem.startsWith(u8, str, inpage_prefix)) { │ │1611 - return .{ .a = str[inpage_prefix.len..] }; │ │1607 + if (std.mem.startsWith(u8, str, ui.in_page_link_prefix)) {│ │1608 + return .{ .a = str[ui.in_page_link_prefix.len..] }; │ │1609 } │ │1610 if (std.mem.startsWith(u8, str, a_prefix)) { │ │1611 return .{ .a = str[a_prefix.len..] }; │ ╰────────────────────────────────────────────────────────────────────────────╯