feat(document): normalized AST and plain Markdown projection
- add the closed normalized AST shape shared by the plain projection and upstream Analysis, with required-attribute, UTF-8 span and depth validation - parse plain .md with pinned comrak 1.0.0 fixed options (GFM tables, footnotes, task lists, strikethrough, autolink, dollar math, front matter) - convert parser line/column positions to exact half-open byte spans and keep BOM/CRLF/CJK byte identity - build heading units (complete section spans, parents, occurrence-indexed duplicate paths), fixed-rule anchors, raw link facts and searchable blocks - parse front matter as bounded YAML to JSON with alias/depth/size rejection while preserving the raw literal; plain @exec text stays inert - add shared DocumentFacts vocabulary with serde caching shape
This commit is contained in:
1 parent
f2f3b38eca
commit
682717a610
5 files changed
+1648
-4
No files matched your search
+2
-1
@@ -167,7 +167,8 @@ impl fmt::Display for Diagnostic {
|
||||
}
|
||||
|
||||
/// A deterministic diagnostic collection.
|
||||
#[derive(Debug, Clone, Default, PartialEq, Eq)]
|
||||
#[derive(Debug, Clone, Default, PartialEq, Eq, Serialize, Deserialize)]
|
||||
#[serde(transparent)]
|
||||
pub struct DiagnosticSet {
|
||||
items: Vec<Diagnostic>,
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user