mdld-parse 0.3.1 → 0.3.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.
Files changed (3) hide show
  1. package/README.md +8 -8
  2. package/index.js +1 -1
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -248,9 +248,9 @@ ex:book schema:hasPart ex:part .
248
248
  ### Prefix Declarations
249
249
 
250
250
  ```markdown
251
- [ex] {: http://example.org/}
252
- [foaf] {: http://xmlns.com/foaf/0.1/}
253
- [@vocab] {: http://schema.org/}
251
+ [ex] <http://example.org/>
252
+ [foaf] <http://xmlns.com/foaf/0.1/>
253
+ [@vocab] <http://schema.org/>
254
254
 
255
255
  # Person {=ex:alice .foaf:Person}
256
256
  ```
@@ -432,14 +432,14 @@ Therefore, the algebra is **closed**.
432
432
  ```markdown
433
433
  # Meeting Notes {=urn:note:2024-01-15 .Meeting}
434
434
 
435
- Attendees: {?attendee}
435
+ Attendees: {?attendee name}
436
436
 
437
- - Alice {=urn:person:alice name}
438
- - Bob {=urn:person:bob name}
437
+ - Alice {=urn:person:alice}
438
+ - Bob {=urn:person:bob}
439
439
 
440
- Action items: {?actionItem}
440
+ Action items: {?actionItem name}
441
441
 
442
- - Review proposal {=urn:task:1 name}
442
+ - Review proposal {=urn:task:1}
443
443
  ```
444
444
 
445
445
  ### Developer Documentation
package/index.js CHANGED
@@ -198,7 +198,7 @@ function scanTokens(text) {
198
198
  continue;
199
199
  }
200
200
 
201
- const prefixMatch = line.match(/^\[([^\]]+)\]\s*\{:\s*([^}]+)\}/);
201
+ const prefixMatch = line.match(/^\[([^\]]+)\]\s*<([^>]+)>/);
202
202
  if (prefixMatch) {
203
203
  tokens.push({ type: 'prefix', prefix: prefixMatch[1], iri: prefixMatch[2].trim() });
204
204
  continue;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mdld-parse",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
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",