@plurnk/plurnk-mimetypes-text-markdown 2.0.0 → 2.0.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 +6 -22
- package/SPEC.md +27 -0
- package/dist/TextMarkdown.d.ts +1 -2
- package/dist/TextMarkdown.d.ts.map +1 -1
- package/dist/TextMarkdown.js +7 -23
- package/dist/TextMarkdown.js.map +1 -1
- package/package.json +6 -5
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @plurnk/plurnk-mimetypes-text-markdown
|
|
2
2
|
|
|
3
|
-
`text/markdown` mimetype handler for the [plurnk](https://github.com/plurnk) ecosystem.
|
|
3
|
+
`text/markdown` mimetype handler for the [plurnk](https://github.com/plurnk) ecosystem, over [marked](https://marked.js.org/)'s lexer.
|
|
4
4
|
|
|
5
5
|
## install
|
|
6
6
|
|
|
@@ -8,29 +8,13 @@
|
|
|
8
8
|
npm i @plurnk/plurnk-mimetypes-text-markdown
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
## what it does
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
- `extractRaw(content)` — headings and code blocks as symbols, nested by heading level ({§markdown-symbols}).
|
|
14
|
+
- `deepJson(content)` — the block-token tree that JSONPath and XPath query ({§markdown-tree}): `$..[?(@.type=='heading' && @.level==2)]`, or `//heading[@level='2']`.
|
|
15
|
+
- `summary(content)` — a frontmatter `description` or the `## Summary` paragraph ({§mimetype-summary}).
|
|
14
16
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
- **Headings** — ATX (`# Title`) and setext (`Title\n=====`), every depth, with `level` 1-6 — also a content attribute, so `//heading[@level='2']` selects by level and `$..[?(@.type=='heading' && @.level==2)]` is the jsonpath form.
|
|
18
|
-
- **Fenced code blocks** — emitted as `module` symbols named by their language tag (or `code` when no language), with line range covering the full fence.
|
|
19
|
-
|
|
20
|
-
Everything else (paragraphs, lists, links, inline code, blockquotes, tables) is *content*, not structure — not emitted.
|
|
21
|
-
|
|
22
|
-
`validate()` is a no-op: any string is valid markdown.
|
|
23
|
-
|
|
24
|
-
Discovery summaries use a leading YAML frontmatter `description`, or the first
|
|
25
|
-
paragraph under an exact `## Summary` heading. The source document is unchanged.
|
|
26
|
-
|
|
27
|
-
## development
|
|
28
|
-
|
|
29
|
-
```sh
|
|
30
|
-
npm install
|
|
31
|
-
npm run build
|
|
32
|
-
npm test
|
|
33
|
-
```
|
|
17
|
+
Top-level blocks carry exact source regions; nested tokens carry their block's ({§markdown-block-regions}).
|
|
34
18
|
|
|
35
19
|
## license
|
|
36
20
|
|
package/SPEC.md
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Markdown handler
|
|
2
|
+
|
|
3
|
+
§markdown-symbols `text/markdown` structure is headings and code blocks, located by
|
|
4
|
+
marked's lexer. Every ATX or setext heading is a `heading` symbol with `level` 1
|
|
5
|
+
through 6; every code block, fenced or indented, is a `module` spanning the whole
|
|
6
|
+
block, named by its fence's language tag or `code` when it has none. Paragraphs,
|
|
7
|
+
lists, links, inline code, blockquotes and tables are content, not symbols. A
|
|
8
|
+
heading's container is the dotted path of its open ancestor headings, a heading at
|
|
9
|
+
level N closing every open heading at level N or deeper; a code block's container is
|
|
10
|
+
the innermost open heading path ({§mimetype-symbol-container}).
|
|
11
|
+
|
|
12
|
+
§markdown-block-regions Marked lexes a line-ending-normalized copy and transforms
|
|
13
|
+
nested block input, so a top-level block token is located by the tokenizer callback
|
|
14
|
+
that produced it and carries its complete region in the source's line and column
|
|
15
|
+
coordinates, whatever its line separator; a nested token (a list item's paragraph, a
|
|
16
|
+
`strong` run) has only its enclosing block's lines. No region is invented for a token
|
|
17
|
+
the source cannot locate ({§mimetype-query}).
|
|
18
|
+
|
|
19
|
+
| Surface | Contract |
|
|
20
|
+
|---|---|
|
|
21
|
+
| `validate` | The no-op default: any string is Markdown ({§mimetype-validation}). |
|
|
22
|
+
| `extractRaw` | The symbols above. |
|
|
23
|
+
| §markdown-tree `deepJson` | `{ type: "document", children }` of marked's block tokens: each node carries its token `type`, its region or enclosing lines, `level` (mirrored as `attrs.level` so `//heading[@level='2']` selects by level), and `text`, `lang`, `href`, `title`, `ordered` and nested `children` as the token has them. A `Uint8Array` projects `null`. |
|
|
24
|
+
| `summary` | Document metadata as {§mimetype-summary} defines it. |
|
|
25
|
+
| JSONPath / XPath | The default dispatch over that tree ({§mimetype-query}); regex and glob run over the raw body. |
|
|
26
|
+
|
|
27
|
+
Raw source text remains unchanged.
|
package/dist/TextMarkdown.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { BaseHandler } from "@plurnk/plurnk-mimetypes";
|
|
2
|
-
import type { HandlerContent, MimeSymbol } from "@plurnk/plurnk-mimetypes";
|
|
1
|
+
import { BaseHandler, type HandlerContent, type MimeSymbol } from "@plurnk/plurnk-mimetypes";
|
|
3
2
|
export default class TextMarkdown extends BaseHandler {
|
|
4
3
|
summary(content: HandlerContent): string | undefined;
|
|
5
4
|
extractRaw(content: string): MimeSymbol[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextMarkdown.d.ts","sourceRoot":"","sources":["../src/TextMarkdown.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAoC,
|
|
1
|
+
{"version":3,"file":"TextMarkdown.d.ts","sourceRoot":"","sources":["../src/TextMarkdown.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAoC,KAAK,cAAc,EAAE,KAAK,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAO/H,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,WAAW;IACxC,OAAO,CAAC,OAAO,EAAE,cAAc,GAAG,MAAM,GAAG,SAAS,CA0B5D;IAEQ,UAAU,CAAC,OAAO,EAAE,MAAM,GAAG,UAAU,EAAE,CAWjD;IAGQ,QAAQ,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAMlD;CACJ"}
|
package/dist/TextMarkdown.js
CHANGED
|
@@ -2,21 +2,8 @@ import { BaseHandler, TextCoordinates } from "@plurnk/plurnk-mimetypes";
|
|
|
2
2
|
import { Lexer } from "marked";
|
|
3
3
|
import { parseDocument } from "yaml";
|
|
4
4
|
import MarkdownSource from "./MarkdownSource.js";
|
|
5
|
-
// text/markdown handler
|
|
6
|
-
//
|
|
7
|
-
//
|
|
8
|
-
// Symbols emitted:
|
|
9
|
-
// - heading: every heading at every depth, with `level` from token.depth
|
|
10
|
-
// - module: every fenced code block, named by its language tag (or "code"
|
|
11
|
-
// when no language), with line range covering the full fence
|
|
12
|
-
//
|
|
13
|
-
// container ({§mimetype-symbol-container}): the dotted path of the open ancestor
|
|
14
|
-
// headings — a lower `level` opens an ancestor scope; a heading at level N
|
|
15
|
-
// closes every open heading at level >= N. Top-level symbols omit the key.
|
|
16
|
-
// Heading names are used verbatim as path segments (may contain dots).
|
|
17
|
-
// Source spans come from the lexer callbacks, not rendered Markdown.
|
|
18
|
-
//
|
|
19
|
-
// validate() inherits BaseHandler's no-op default (any string is valid markdown).
|
|
5
|
+
// text/markdown handler over marked's lexer. Symbols are {§markdown-symbols}; deepJson is
|
|
6
|
+
// {§markdown-tree}; block coordinates come from the lexer callbacks ({§markdown-block-regions}).
|
|
20
7
|
export default class TextMarkdown extends BaseHandler {
|
|
21
8
|
summary(content) {
|
|
22
9
|
if (typeof content !== "string")
|
|
@@ -35,6 +22,7 @@ export default class TextMarkdown extends BaseHandler {
|
|
|
35
22
|
const headingIndex = tokens.findIndex((token) => {
|
|
36
23
|
if (token.type !== "heading")
|
|
37
24
|
return false;
|
|
25
|
+
// oxlint-disable-next-line typescript/no-unsafe-type-assertion -- marked's Token union carries a generic member, so a heading's fields are read through the shape its typed member names
|
|
38
26
|
const heading = token;
|
|
39
27
|
return heading.depth === 2 && heading.text === "Summary";
|
|
40
28
|
});
|
|
@@ -45,6 +33,7 @@ export default class TextMarkdown extends BaseHandler {
|
|
|
45
33
|
continue;
|
|
46
34
|
if (token.type !== "paragraph")
|
|
47
35
|
return undefined;
|
|
36
|
+
// oxlint-disable-next-line typescript/no-unsafe-type-assertion -- marked's Token union carries a generic member, so a paragraph's text is read through its typed member's shape
|
|
48
37
|
return token.text;
|
|
49
38
|
}
|
|
50
39
|
return undefined;
|
|
@@ -61,14 +50,7 @@ export default class TextMarkdown extends BaseHandler {
|
|
|
61
50
|
}
|
|
62
51
|
return symbols;
|
|
63
52
|
}
|
|
64
|
-
//
|
|
65
|
-
// paragraph, list, code block, blockquote, etc. — preserves enough
|
|
66
|
-
// structure for jsonpath like `$..[?(@.type=='code' && @.lang=='ts')]` or
|
|
67
|
-
// `$..[?(@.type=='heading' && @.level==1)]`. Each node carries `type`, `line`, `endLine`,
|
|
68
|
-
// plus its native marked fields (depth/text/lang/items/etc.).
|
|
69
|
-
//
|
|
70
|
-
// Returned as `{ type: "document", children: [...] }` so it presents as a
|
|
71
|
-
// single rooted tree (matches the deep-xml projection: <document>...</document>).
|
|
53
|
+
// {§markdown-tree}: one rooted tree, so the deep-xml projection is <document>...</document>.
|
|
72
54
|
deepJson(content) {
|
|
73
55
|
if (typeof content !== "string")
|
|
74
56
|
return null;
|
|
@@ -82,6 +64,7 @@ export default class TextMarkdown extends BaseHandler {
|
|
|
82
64
|
// users actually want to query (type, depth, text, lang, items) into named
|
|
83
65
|
// properties; drops parser-internal cursors that aren't queryable.
|
|
84
66
|
function tokenToDeep(token, region, enclosing) {
|
|
67
|
+
// oxlint-disable-next-line typescript/no-unsafe-type-assertion -- marked's Token union carries a generic member, so a token's fields are read through the shapes its typed members name
|
|
85
68
|
const t = token;
|
|
86
69
|
const node = {
|
|
87
70
|
type: t.type,
|
|
@@ -113,6 +96,7 @@ function tokenToDeep(token, region, enclosing) {
|
|
|
113
96
|
}
|
|
114
97
|
function emitFor(token, region, into, open) {
|
|
115
98
|
if (token.type === "heading") {
|
|
99
|
+
// oxlint-disable-next-line typescript/no-unsafe-type-assertion -- marked's Token union carries a generic member, so a heading's fields are read through the shape its typed member names
|
|
116
100
|
const headingToken = token;
|
|
117
101
|
// A heading at level N closes every open heading at level >= N; its
|
|
118
102
|
// container is the dotted path of what remains open.
|
package/dist/TextMarkdown.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextMarkdown.js","sourceRoot":"","sources":["../src/TextMarkdown.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,eAAe,
|
|
1
|
+
{"version":3,"file":"TextMarkdown.js","sourceRoot":"","sources":["../src/TextMarkdown.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,eAAe,EAAyD,MAAM,0BAA0B,CAAC;AAC/H,OAAO,EAAE,KAAK,EAAc,MAAM,QAAQ,CAAC;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,MAAM,CAAC;AACrC,OAAO,cAAc,MAAM,qBAAqB,CAAC;AAEjD,0FAA0F;AAC1F,iGAAiG;AACjG,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,WAAW;IACxC,OAAO,CAAC,OAAuB;QACpC,IAAI,OAAO,OAAO,KAAK,QAAQ;YAAE,OAAO,SAAS,CAAC;QAClD,MAAM,WAAW,GAAG,sCAAsC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACzE,IAAI,WAAW,EAAE,KAAK,KAAK,CAAC,EAAE,CAAC;YAC3B,MAAM,QAAQ,GAAG,aAAa,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,CAAC;YACrE,mEAAmE;YACnE,IAAI,QAAQ,CAAC,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;gBAC/B,MAAM,WAAW,GAAG,QAAQ,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;gBAChD,IAAI,OAAO,WAAW,KAAK,QAAQ,IAAI,WAAW,CAAC,IAAI,EAAE,CAAC,MAAM,GAAG,CAAC;oBAAE,OAAO,W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AS,CAAC,MAAM,GAAG,CAAC,IAAI,EAAE,SAAS,EAAE,CAAC;SAC7C,CAAC,CAAC;IACP,CAAC;AACL,CAAC;AAED,SAAS,WAAW,CAAC,MAAkB;IACnC,OAAO,EAAE,IAAI,EAAE,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC,WAAW,EAAE,OAAO,EAAE,MAAM,CAAC,OAAO,EAAE,SAAS,EAAE,MAAM,CAAC,SAAS,EAAE,CAAC;AACxH,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plurnk/plurnk-mimetypes-text-markdown",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.2",
|
|
4
4
|
"description": "text/markdown mimetype handler for plurnk-service.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"plurnk",
|
|
@@ -39,11 +39,12 @@
|
|
|
39
39
|
},
|
|
40
40
|
"files": [
|
|
41
41
|
"dist/**/*",
|
|
42
|
-
"README.md"
|
|
42
|
+
"README.md",
|
|
43
|
+
"SPEC.md"
|
|
43
44
|
],
|
|
44
45
|
"scripts": {
|
|
45
46
|
"test:lint": "tsc --noEmit",
|
|
46
|
-
"test:unit": "node --conditions=plurnk-dev --test src/**/*.test.ts",
|
|
47
|
+
"test:unit": "node --conditions=plurnk-dev --test ${PLURNK_TEST_CONCURRENCY:+--test-concurrency=$PLURNK_TEST_CONCURRENCY} 'src/**/*.test.ts'",
|
|
47
48
|
"test": "npm run test:lint && npm run test:unit",
|
|
48
49
|
"build:clean": "rm -rf dist",
|
|
49
50
|
"build:dist": "tsc -p tsconfig.build.json",
|
|
@@ -56,7 +57,7 @@
|
|
|
56
57
|
"yaml": "^2.9.0"
|
|
57
58
|
},
|
|
58
59
|
"peerDependencies": {
|
|
59
|
-
"@plurnk/plurnk-mimetypes": "^
|
|
60
|
+
"@plurnk/plurnk-mimetypes": "^3.0.0"
|
|
60
61
|
},
|
|
61
62
|
"homepage": "https://github.com/plurnk/plurnk-service/tree/main/plurnk-mimetypes-text-markdown#readme",
|
|
62
63
|
"bugs": {
|
|
@@ -67,5 +68,5 @@
|
|
|
67
68
|
"url": "git+https://github.com/plurnk/plurnk-service.git",
|
|
68
69
|
"directory": "plurnk-mimetypes-text-markdown"
|
|
69
70
|
},
|
|
70
|
-
"gitHead": "
|
|
71
|
+
"gitHead": "d2647f7ec0d352b276714f22a93267aac04634b3"
|
|
71
72
|
}
|