From e23f5ed5f95e0ecb84cb471f12e273ba5c646515 Mon Sep 17 00:00:00 2001 From: Matt Van Horn <455140+mvanhorn@users.noreply.github.com> Date: Sat, 13 Jun 2026 02:14:51 -0700 Subject: [PATCH 1/2] fix: replace iframe with link in build_inspect_data cppreference.com sets X-Frame-Options: DENY (MediaWiki default), which causes every browser to block the )"; + // Note: cppreference.com sets X-Frame-Options: DENY, so an )"; auto data = nl::json::object({{"text/plain", inspect_result}, {"text/html", html_content}}); return data; diff --git a/test/test_interpreter.cpp b/test/test_interpreter.cpp index 159a8e01..f10097b4 100644 --- a/test/test_interpreter.cpp +++ b/test/test_interpreter.cpp @@ -1015,17 +1015,29 @@ TEST_SUITE("xinspect"){ REQUIRE(cmp(node) == false); } - TEST_CASE("build_inspect_data_link_not_iframe"){ - // cppreference.com sets X-Frame-Options: DENY, so the output must use - // an link instead of an