{"version":"2.1.212","anchor":"artifact-syntax-highlighting-tengu-artifact-hljs-highlight","canonical_anchor":"artifact-syntax-highlighting-tengu-artifact-hljs-highlight","heading":"Artifact Syntax Highlighting (tengu_artifact_hljs_highlight)","tier":null,"area":null,"scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.212\/e\/artifact-syntax-highlighting-tengu-artifact-hljs-highlight","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.212","markdown":"### Artifact Syntax Highlighting (tengu_artifact_hljs_highlight)\n\nPublished artifacts that contain fenced code blocks now include an inline highlight.js (hljs) runtime for client-side syntax highlighting. The runtime is appended only when the artifact contains recognizable language classes.\n\n**Details**\n\n- Feature-flagged via `tengu_artifact_hljs_highlight` (default: true).\n- The hljs bundle is loaded from `\/$bunfs\/root\/hljsBundle.generated.min.js` and embedded inline so artifacts remain standalone.\n- A per-artifact token budget limits how much code gets highlighted to keep page load fast.\n- The runtime is validated before injection; unsafe bundles are rejected.\n- The artifact footer note now reads: \"\u2014 includes the inline syntax-highlight runtime (~1MB), appended because the page contains fenced code\"\n\n**Evidence**\n\n\"bundle contains an hljs runtime sentinel\" (search for `\"tengu_artifact_hljs_highlight\"`)\n\n- Flag `tengu_artifact_hljs_highlight`: Not enough to say (read for one account on one subscription tier against v2.1.212; this account: no value returned, anonymous baseline: no value returned, compiled default: on) These values were read against a different version of Claude Code, so treat them as the nearest reading available instead of one taken on this release."}