mdld-parse 1.1.1 → 1.1.2

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
@@ -442,6 +442,8 @@ Generate deterministic MDLD from RDF quads.
442
442
 
443
443
  **Features:** Visual styling, label-in-heading, round-trip safe, diff generation, language preference.
444
444
 
445
+ **Canonical output:** `generate()` is a deterministic serializer — quads are normalized into a total order (subject → predicate → object → term type → datatype → language) before rendering, so the same quad *set* always produces byte-identical text regardless of input array order. This makes it usable for RDF graph comparison: `generate(g1).text === generate(g2).text` iff the graphs are equal (modulo blank nodes, which are out of scope, and named graphs, which MD-LD does not serialize). Note that options (`context`, `primarySubject`, `compactInline`, `renderReverse`, `lang`, `remove`) are part of the canonical form — compare outputs generated with the same options.
446
+
445
447
  **Example with language preference:**
446
448
  ```javascript
447
449
  const { text } = generate({
package/dist/crawl.js CHANGED
@@ -1,4 +1,4 @@
1
- //#region src/crawl.js
1
+ // src/crawl.js
2
2
  /**
3
3
  * crawl — a platform-agnostic linked-text-document crawler.
4
4
  *
@@ -656,5 +656,4 @@ async function crawl(startUrl, options = {}) {
656
656
  * status?: number, message: string}>} errors
657
657
  * @property {boolean} aborted
658
658
  */
659
- //#endregion
660
659
  export { crawl, extractLinks, memoryCache };