feat(wiki): 新增 GHC06 任务页与图库发布体系,级联更新既有页面

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2026-08-11 15:03:14 +08:00
co-authored by Claude
parent 26d2fcd0b1
commit 4ef15545e3
34 changed files with 3515 additions and 1572 deletions
+2 -2
View File
@@ -328,8 +328,8 @@ def extract_script_to_script_js(content):
if not match:
print("script_js_extracted=False")
return content, ""
# Wiki.js injects scriptJs verbatim into the rendered page body, so the
# payload must retain its script element instead of containing bare JS.
# Wiki.js injects scriptJs verbatim into the rendered body. Preserve the
# script element; a bare payload is parsed as body text instead of executed.
script_js = match.group(0).strip()
content_without_script = (content[: match.start()] + content[match.end() :]).rstrip()
print(f"script_js_extracted=True length={len(script_js)}")