mdld-parse 0.7.7 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -123,7 +123,7 @@ Each predicate form determines the graph edge:
123
123
  | `?p` | S → O | `[NASA] {=ex:nasa ?org}` | object property |
124
124
  | `!p` | O → S | `[Parent] {=ex:p !hasPart}` | reverse object |
125
125
 
126
- ## � Elevated Statements
126
+ ## 📍 Elevated Statements
127
127
 
128
128
  MD-LD automatically detects `rdf:Statement` patterns during parsing and extracts elevated SPO quads for convenient consumption by applications.
129
129
 
@@ -138,9 +138,9 @@ When the parser encounters a complete `rdf:Statement` pattern with `rdf:subject`
138
138
  **Alice** {+ex:alice ?rdf:subject} *knows* {+ex:knows ?rdf:predicate} **Bob** {+ex:bob ?rdf:object}
139
139
 
140
140
  Direct statement:**Alice** {=ex:alice} knows **Bob** {?ex:knows +ex:bob}
141
- ``
141
+ ```
142
142
 
143
- ## �🎨 Syntax Quick Reference
143
+ ## 🎨 Syntax Quick Reference
144
144
 
145
145
  ### Subject Declaration
146
146
  Set current subject (emits no quads):
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mdld-parse",
3
- "version": "0.7.7",
3
+ "version": "0.8.0",
4
4
  "description": "A standards-compliant parser for **MD-LD (Markdown-Linked Data)** — a human-friendly RDF authoring format that extends Markdown with semantic annotations.",
5
5
  "type": "module",
6
6
  "main": "index.js",
package/src/merge.js CHANGED
@@ -31,7 +31,7 @@ function normalizeInput(input, options, docContext) {
31
31
 
32
32
  /**
33
33
  * Merges multiple MDLD documents with diff polarity resolution
34
- * @param {Array<string|ParseResult>} docs
34
+ * @param {Array<string|ParseResult>} docs
35
35
  * @param {Object} options
36
36
  * @returns {Object} Merge result with quads, remove, statements, origin, and context
37
37
  */
package/src/parse.js CHANGED
@@ -542,6 +542,7 @@ function detectStatementPatternSinglePass(quad, dataFactory, meta, statements =
542
542
  }
543
543
  }
544
544
 
545
+
545
546
  const createTypeQuad = (typeIRI, subject, state, block, entryIndex = null) => {
546
547
  const expandedType = expandIRI(typeIRI, state.ctx);
547
548
  const typeInfo = typeof entryIndex === 'object' ? entryIndex : { entryIndex, remove: false };