Files
marqdo-view/tests/fixtures/security-project/index.mq.md
T
marqdo-view dev 1f34daffb0 feat(PR-05): pure static export and hardened Live boundary
- export.rs: marqdo view export PATH --out DIR through the same ReaderRenderer;
  index.html + pages/<relative>.html + hash-named assets + manifest.json
- export never calls Core run; refuses output inside project root and unrelated
  non-empty dirs; staging + atomic rename replaces only prior View exports
- offline by construction: embedded asset bytes, data-URI images, relative
  links, no remote subresources; --no-annotations hides anchors only
- HTTP hardening: max 32 concurrent requests (503), detail-free public error
  JSON/pages (no absolute paths/subprocess text), 30s page check budget
- tools/test-export.sh (manifest hashes + file:// Chromium offline check),
  tools/test-security.sh, adversarial security-project browser fixture
- tests/export.rs export contracts; ADR-0005; docs updated
2026-11-22 11:52:22 +08:00

18 lines
360 B
Markdown

# @knowledge 安全测试页
<script>alert('xss')</script>
<img src=x onerror="alert(1)">
<svg onload="alert(1)"></svg>
[危险链接](javascript:alert(2))
[数据链接](data:text/html;base64,PHNjcmlwdD5hbGVydCgzKTwvc2NyaXB0Pg==)
普通正文仍然必须可读:**加粗** 与 `代码`。
| 安全 | 说明 |
| --- | --- |
| 原始 HTML | 已忽略 |