feat(wiki): embed GHC-05 topology
This commit is contained in:
@@ -328,7 +328,9 @@ def extract_script_to_script_js(content):
|
||||
if not match:
|
||||
print("script_js_extracted=False")
|
||||
return content, ""
|
||||
script_js = match.group(1).strip()
|
||||
# Wiki.js injects scriptJs verbatim into the rendered page body, so the
|
||||
# payload must retain its script element instead of containing bare JS.
|
||||
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)}")
|
||||
return content_without_script, script_js
|
||||
@@ -535,4 +537,4 @@ if __name__ == "__main__":
|
||||
sys.exit(main())
|
||||
except WikiUpdateError as exc:
|
||||
print(f"wiki_update_error={exc}")
|
||||
sys.exit(2)
|
||||
sys.exit(2)
|
||||
|
||||
Reference in New Issue
Block a user