feat(PR-02): DocumentModel, Analysis v2 projection, single renderer and Live browsing
- document.rs: comrak marqdo.md.v1 parse -> DocBlock/Inline with exact UTF-8 spans - semantic.rs: typed Analysis v2 validation (schema/profile/root_id/source_digest, units/functions/statements/resources/imports/references/calls/diagnostics, per-span UTF-8 checks with explicit view.source_span_invalid warnings) - presentation.rs: one PresentationModel/Outline with source status matrix - render.rs: one ReaderRenderer; sanitized GFM, statement anchors, heading mode badges (display-only prefix strip), source pane, docs/Live|Static link policy, CSP meta, no inline scripts, no raw HTML execution - server.rs: loopback-only Live reader with Host/DNS-rebinding checks, strict percent decoding, project path boundary, security headers, read-only APIs - app.rs: AppContext degradation (core missing -> prose-only, check error -> diagnostics + revoked semantics, protocol mismatch -> hard error) - assets: single reader.css/reader.js + embedded SHA-256 AssetBundle, copied legacy logo/blossom/feather with provenance - examples + frozen-CLI Analysis goldens + rendering/HTTP/asset/no-coupling tests - ADR-0003 heading prefix/anchor identity; docs updated
This commit is contained in:
1 parent
8ba20a5c67
commit
80ce564f09
47 files changed
+26127
-203
No files matched your search
@@ -0,0 +1,21 @@
|
||||
# @knowledge 表格、公式与惰性资源
|
||||
|
||||
| 名称 | 值 | 说明 |
|
||||
| --- | ---: | --- |
|
||||
| 甲 | 1 | 第一行 |
|
||||
| 乙 | 2 | 第二行 |
|
||||
|
||||
行内公式 $E = mc^2$;块公式:
|
||||
|
||||
$$
|
||||
\sum_{i=1}^{n} i = \frac{n(n+1)}{2}
|
||||
$$
|
||||
|
||||
```python
|
||||
print("代码围栏永远是惰性资源")
|
||||
```
|
||||
|
||||
- [x] 任务列表可读
|
||||
- [ ] 不会触发任何执行
|
||||
|
||||
外部链接:[Marqdo CLI](https://github.com/cflmy/marqdo-cli)。
|
||||
@@ -0,0 +1,3 @@
|
||||
project:
|
||||
name: tables-math
|
||||
version: 0.1.0
|
||||
Reference in new issue
Block a user