podlite 0.0.95 → 0.0.97
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/CHANGELOG.podlite +12 -0
- package/esm/lint/grammar/scan.js +0 -3
- package/esm/lint/grammar/scan.js.map +1 -1
- package/esm/lint/rules/index.js +4 -0
- package/esm/lint/rules/index.js.map +1 -1
- package/esm/lint/rules/list-depth.d.ts +3 -0
- package/esm/lint/rules/list-depth.js +10 -0
- package/esm/lint/rules/list-depth.js.map +1 -0
- package/esm/lint/rules/table-column-width.d.ts +2 -3
- package/esm/lint/rules/table-column-width.js +8 -112
- package/esm/lint/rules/table-column-width.js.map +1 -1
- package/esm/version.d.ts +1 -1
- package/esm/version.js +1 -1
- package/lib/lint/grammar/scan.js +0 -3
- package/lib/lint/grammar/scan.js.map +1 -1
- package/lib/lint/rules/index.js +4 -0
- package/lib/lint/rules/index.js.map +1 -1
- package/lib/lint/rules/list-depth.d.ts +3 -0
- package/lib/lint/rules/list-depth.js +13 -0
- package/lib/lint/rules/list-depth.js.map +1 -0
- package/lib/lint/rules/table-column-width.d.ts +2 -3
- package/lib/lint/rules/table-column-width.js +8 -113
- package/lib/lint/rules/table-column-width.js.map +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +10 -10
package/CHANGELOG.podlite
CHANGED
|
@@ -2,6 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
=head1 Upcoming
|
|
4
4
|
|
|
5
|
+
=head1 0.0.97
|
|
6
|
+
|
|
7
|
+
=item C<podlite lint> rule C<list-depth> passes on the parser report about a list nested deeper than 50 levels
|
|
8
|
+
|
|
9
|
+
=item C<podlite lint> rule C<table-column-width> no longer compares the bars of a row with the places of the separator line, which need not line up; it keeps its name for what the parser reports under it
|
|
10
|
+
|
|
11
|
+
=head1 0.0.96
|
|
12
|
+
|
|
13
|
+
=item React 19 is accepted as a peer: C<react> and C<react-dom> are C<^16.0.0 || ^17.0.0 || ^18 || ^19>
|
|
14
|
+
|
|
15
|
+
=item C<nanoid> 3.3.20 or later instead of exactly 3.1.30: in 3.1.30 a call with a fractional size anywhere in the process left every next id the same
|
|
16
|
+
|
|
5
17
|
=head1 0.0.94
|
|
6
18
|
|
|
7
19
|
=item a block included from the same document takes an id of its own, made from the id of the block it copies (C<id-1>, C<id-2>), so the output no longer holds two elements with one id; a heading keeps the address of its text and an id the author wrote stays as written
|
package/esm/lint/grammar/scan.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { VERBATIM_BLOCKS, isVerbatimBlock } from '@podlite/schema';
|
|
2
|
-
import { scanTableColumns, tableColumnWidthRule } from '../rules/table-column-width.js';
|
|
3
2
|
import { scanAbbreviatedAttrs, abbreviatedAttrsRule } from '../rules/abbreviated-attrs.js';
|
|
4
3
|
import { scanMarkdownInPod, markdownInPodRule } from '../rules/markdown-in-pod.js';
|
|
5
4
|
import { scanUnclosedMarkupCodes, unclosedMarkupCodeRule } from '../rules/unclosed-markup-code.js';
|
|
@@ -23,7 +22,6 @@ export const SOURCE_RULES = [
|
|
|
23
22
|
attrNestedAngleRule,
|
|
24
23
|
delimitedBlockBalanceRule,
|
|
25
24
|
attrContinuationDroppedRule,
|
|
26
|
-
tableColumnWidthRule,
|
|
27
25
|
abbreviatedAttrsRule,
|
|
28
26
|
markdownInPodRule,
|
|
29
27
|
unclosedMarkupCodeRule,
|
|
@@ -52,7 +50,6 @@ export function scanSourceRules(content, fileType = 'podlite') {
|
|
|
52
50
|
location: item.location,
|
|
53
51
|
});
|
|
54
52
|
}
|
|
55
|
-
opts.diagnostics.push(...scanTableColumns(content));
|
|
56
53
|
opts.diagnostics.push(...scanAbbreviatedAttrs(content));
|
|
57
54
|
// text outside blocks in the default mode is neither Podlite nor Markdown
|
|
58
55
|
if (fileType === 'podlite')
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scan.js","sourceRoot":"","sources":["../../../src/lint/grammar/scan.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,eAAe,EAAiB,MAAM,iBAAiB,CAAA;AACjF,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"scan.js","sourceRoot":"","sources":["../../../src/lint/grammar/scan.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,eAAe,EAAiB,MAAM,iBAAiB,CAAA;AACjF,OAAO,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAA;AACvF,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAA;AAC/E,OAAO,EAAE,uBAAuB,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAA;AAC/F,OAAO,WAAW,MAAM,WAAW,CAAA;AAEnC,MAAM,CAAC,MAAM,yBAAyB,GAAG,mBAAmB,CAAA;AAC5D,MAAM,CAAC,MAAM,+BAA+B,GAAG,yBAAyB,CAAA;AACxE,MAAM,CAAC,MAAM,iCAAiC,GAAG,2BAA2B,CAAA;AAE5E,MAAM,CAAC,MAAM,mBAAmB,GAAe;IAC7C,EAAE,EAAE,yBAAyB;IAC7B,QAAQ,EAAE,OAAO;CAClB,CAAA;AAED,MAAM,CAAC,MAAM,yBAAyB,GAAe;IACnD,EAAE,EAAE,+BAA+B;IACnC,QAAQ,EAAE,OAAO;CAClB,CAAA;AAED,MAAM,CAAC,MAAM,2BAA2B,GAAe;IACrD,EAAE,EAAE,iCAAiC;IACrC,QAAQ,EAAE,SAAS;CACpB,CAAA;AAED,MAAM,CAAC,MAAM,YAAY,GAAiB;IACxC,mBAAmB;IACnB,yBAAyB;IACzB,2BAA2B;IAC3B,oBAAoB;IACpB,iBAAiB;IACjB,sBAAsB;CACvB,CAAA;AAWD,4EAA4E;AAC5E,4DAA4D;AAC5D,MAAM,UAAU,eAAe,CAAC,OAAe,EAAE,WAAyC,SAAS;IACjG,MAAM,IAAI,GAAmB;QAC3B,WAAW,EAAE,EAAE;QACf,WAAW,EAAE,EAAE;QACf,YAAY,EAAE,KAAK;QACnB,cAAc,EAAE,CAAC,GAAG,eAAe,CAAC;QACpC,UAAU,EAAE,eAAe;KAC5B,CAAA;IACD,IAAI,CAAC;QACH,WAAW,CAAC,KAAK,CAAC,OAAO,EAAE,IAAI,CAAC,CAAA;IAClC,CAAC;IAAC,MAAM,CAAC;QACP,uFAAuF;IACzF,CAAC;IACD,KAAK,MAAM,IAAI,IAAI,IAAI,CAAC,WAAW,EAAE,CAAC;QACpC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC;YACpB,IAAI,EAAE,+BAA+B;YACrC,QAAQ,EAAE,OAAO;YACjB,OAAO,EAAE,UAAU,IAAI,CAAC,IAAI,mCAAmC;YAC/D,QAAQ,EAAE,IAAI,CAAC,QAAQ;SACxB,CAAC,CAAA;IACJ,CAAC;IACD,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,GAAG,oBAAoB,CAAC,OAAO,CAAC,CAAC,CAAA;IACvD,0EAA0E;IAC1E,IAAI,QAAQ,KAAK,SAAS;QAAE,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC,CAAA;IAChF,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,GAAG,uBAAuB,CAAC,OAAO,CAAC,CAAC,CAAA;IAC1D,OAAO,IAAI,CAAC,WAAW,CAAA;AACzB,CAAC"}
|
package/esm/lint/rules/index.js
CHANGED
|
@@ -9,6 +9,8 @@ import { linkFileResolvesRule } from './link-file-resolves.js';
|
|
|
9
9
|
import { linkNotEmptyRule } from './link-not-empty.js';
|
|
10
10
|
import { attrValueDroppedRule } from './attr-value-dropped.js';
|
|
11
11
|
import { tableShapeRule } from './table-shape.js';
|
|
12
|
+
import { tableColumnWidthRule } from './table-column-width.js';
|
|
13
|
+
import { listDepthRule } from './list-depth.js';
|
|
12
14
|
import { markupCodeTooDeepRule } from './markup-code-too-deep.js';
|
|
13
15
|
import { deadDefinitionsRule } from './dead-definitions.js';
|
|
14
16
|
import { includeResolvesRule } from './include-resolves.js';
|
|
@@ -27,6 +29,8 @@ export const DEFAULT_RULES = [
|
|
|
27
29
|
linkNotEmptyRule,
|
|
28
30
|
attrValueDroppedRule,
|
|
29
31
|
tableShapeRule,
|
|
32
|
+
tableColumnWidthRule,
|
|
33
|
+
listDepthRule,
|
|
30
34
|
markupCodeTooDeepRule,
|
|
31
35
|
deadDefinitionsRule,
|
|
32
36
|
includeResolvesRule,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/lint/rules/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAChD,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAA;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAA;AACpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAA;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAC1C,OAAO,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAA;AAC7D,OAAO,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAA;AAC/D,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAA;AACnD,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAC3D,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAC9C,OAAO,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAA;AAC9D,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAA;AACxD,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAA;AACxD,OAAO,EAAE,uBAAuB,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAA;AAC7E,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAA;AACxD,OAAO,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAA;AAE7D,MAAM,CAAC,MAAM,aAAa,GAAW;IACnC,eAAe;IACf,oBAAoB;IACpB,iBAAiB;IACjB,iBAAiB;IACjB,YAAY;IACZ,qBAAqB;IACrB,sBAAsB;IACtB,oBAAoB;IACpB,gBAAgB;IAChB,oBAAoB;IACpB,cAAc;IACd,qBAAqB;IACrB,mBAAmB;IACnB,mBAAmB;IACnB,uBAAuB;IACvB,mBAAmB;IACnB,mBAAmB;IACnB,qBAAqB;CACtB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/lint/rules/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAChD,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAA;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAA;AACpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAA;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAC1C,OAAO,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAA;AAC7D,OAAO,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAA;AAC/D,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAA;AACnD,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAC3D,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAC9C,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAC3D,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AAC5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAA;AAC9D,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAA;AACxD,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAA;AACxD,OAAO,EAAE,uBAAuB,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAA;AAC7E,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAA;AACxD,OAAO,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAA;AAE7D,MAAM,CAAC,MAAM,aAAa,GAAW;IACnC,eAAe;IACf,oBAAoB;IACpB,iBAAiB;IACjB,iBAAiB;IACjB,YAAY;IACZ,qBAAqB;IACrB,sBAAsB;IACtB,oBAAoB;IACpB,gBAAgB;IAChB,oBAAoB;IACpB,cAAc;IACd,oBAAoB;IACpB,aAAa;IACb,qBAAqB;IACrB,mBAAmB;IACnB,mBAAmB;IACnB,uBAAuB;IACvB,mBAAmB;IACnB,mBAAmB;IACnB,qBAAqB;CACtB,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export const LIST_DEPTH_RULE_ID = 'list-depth';
|
|
2
|
+
// passes on what the parser reports about a list nested deeper than it builds
|
|
3
|
+
export const listDepthRule = {
|
|
4
|
+
id: LIST_DEPTH_RULE_ID,
|
|
5
|
+
severity: 'warning',
|
|
6
|
+
check: (ast, _ctx) => (ast.diagnostics || [])
|
|
7
|
+
.filter(d => d.code === 'list-too-deep')
|
|
8
|
+
.map(d => ({ rule: LIST_DEPTH_RULE_ID, severity: d.severity, message: d.message, location: d.location })),
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=list-depth.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-depth.js","sourceRoot":"","sources":["../../../src/lint/rules/list-depth.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,MAAM,kBAAkB,GAAG,YAAY,CAAA;AAE9C,8EAA8E;AAC9E,MAAM,CAAC,MAAM,aAAa,GAAS;IACjC,EAAE,EAAE,kBAAkB;IACtB,QAAQ,EAAE,SAAS;IACnB,KAAK,EAAE,CAAC,GAAoB,EAAE,IAAiB,EAAe,EAAE,CAC9D,CAAC,GAAG,CAAC,WAAW,IAAI,EAAE,CAAC;SACpB,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,eAAe,CAAC;SACvC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,kBAAkB,EAAE,QAAQ,EAAE,CAAC,CAAC,QAAQ,EAAE,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE,QAAQ,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC;CAC9G,CAAA"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Rule } from '../types';
|
|
2
2
|
export declare const TABLE_COLUMN_WIDTH_RULE_ID = "table-column-width";
|
|
3
|
-
export declare const tableColumnWidthRule:
|
|
4
|
-
export declare function scanTableColumns(content: string): Violation[];
|
|
3
|
+
export declare const tableColumnWidthRule: Rule;
|
|
@@ -1,118 +1,14 @@
|
|
|
1
|
-
import { isVerbatimBlock } from '@podlite/schema';
|
|
2
1
|
export const TABLE_COLUMN_WIDTH_RULE_ID = 'table-column-width';
|
|
2
|
+
const named = (d) => d.code === TABLE_COLUMN_WIDTH_RULE_ID;
|
|
3
|
+
// passes on what the parser reports under this name
|
|
3
4
|
export const tableColumnWidthRule = {
|
|
4
5
|
id: TABLE_COLUMN_WIDTH_RULE_ID,
|
|
5
6
|
severity: 'warning',
|
|
7
|
+
check: (ast, _ctx) => (ast.diagnostics || []).filter(named).map(d => ({
|
|
8
|
+
rule: TABLE_COLUMN_WIDTH_RULE_ID,
|
|
9
|
+
severity: d.severity,
|
|
10
|
+
message: d.message,
|
|
11
|
+
location: d.location,
|
|
12
|
+
})),
|
|
6
13
|
};
|
|
7
|
-
const SEPARATOR_LINE = /^[\s=+|_-]*[|+][\s=+|_-]*$/;
|
|
8
|
-
const hasBar = (line) => line.includes('|') || line.includes('+');
|
|
9
|
-
// A table with visible bars is cut by the column positions its separator line
|
|
10
|
-
// sets, not by the bars in the row itself. A cell that reaches the boundary
|
|
11
|
-
// pushes the column open for the whole table, so every row loses its last
|
|
12
|
-
// column at once — and the document still parses, silently.
|
|
13
|
-
const boundaries = (separator) => {
|
|
14
|
-
const out = [];
|
|
15
|
-
for (let i = 0; i < separator.length; i++) {
|
|
16
|
-
if (separator[i] === '|' || separator[i] === '+')
|
|
17
|
-
out.push(i);
|
|
18
|
-
}
|
|
19
|
-
return out;
|
|
20
|
-
};
|
|
21
|
-
const isEdge = (char) => char === '|' || char === '+' || char === ' ';
|
|
22
|
-
const collides = (line, boundary) => {
|
|
23
|
-
if (boundary >= line.length)
|
|
24
|
-
return false;
|
|
25
|
-
// content standing on the boundary is wrong however the row is written
|
|
26
|
-
if (!isEdge(line[boundary]))
|
|
27
|
-
return true;
|
|
28
|
-
// pressed against the boundary only matters where the row draws a bar of its
|
|
29
|
-
// own: a row whose cells are held apart by spaces may fill its column to the
|
|
30
|
-
// last position, and the parser reads it correctly
|
|
31
|
-
const drawsBar = line[boundary] === '|' || line[boundary] === '+';
|
|
32
|
-
return drawsBar && boundary > 0 && !isEdge(line[boundary - 1]);
|
|
33
|
-
};
|
|
34
|
-
const checkTable = (lines) => {
|
|
35
|
-
const separator = lines.find(l => SEPARATOR_LINE.test(l.text) && hasBar(l.text));
|
|
36
|
-
if (!separator)
|
|
37
|
-
return [];
|
|
38
|
-
const columns = boundaries(separator.text);
|
|
39
|
-
if (columns.length === 0)
|
|
40
|
-
return [];
|
|
41
|
-
const violations = [];
|
|
42
|
-
for (const row of lines) {
|
|
43
|
-
if (row === separator || row.text.trim() === '')
|
|
44
|
-
continue;
|
|
45
|
-
if (SEPARATOR_LINE.test(row.text))
|
|
46
|
-
continue;
|
|
47
|
-
const hit = columns.find(b => collides(row.text, b));
|
|
48
|
-
if (hit === undefined)
|
|
49
|
-
continue;
|
|
50
|
-
violations.push({
|
|
51
|
-
rule: TABLE_COLUMN_WIDTH_RULE_ID,
|
|
52
|
-
severity: 'warning',
|
|
53
|
-
message: `cell reaches the column boundary at column ${hit + 1}; leave a space before the bar or the table loses a column`,
|
|
54
|
-
location: {
|
|
55
|
-
start: { line: row.line, column: hit + 1, offset: 0 },
|
|
56
|
-
end: { line: row.line, column: hit + 1, offset: 0 },
|
|
57
|
-
},
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
return violations;
|
|
61
|
-
};
|
|
62
|
-
export function scanTableColumns(content) {
|
|
63
|
-
const lines = content.split(/\r?\n/);
|
|
64
|
-
// a table keeps its content verbatim too, and it is the one being read here
|
|
65
|
-
const verbatim = (name) => name !== 'table' && isVerbatimBlock(name);
|
|
66
|
-
const openBlocks = [];
|
|
67
|
-
const violations = [];
|
|
68
|
-
let table = null;
|
|
69
|
-
// the form of the table being read, not of a table around it: an abbreviated
|
|
70
|
-
// one ends where the parser ends it, inside a delimited table too
|
|
71
|
-
let abbreviatedForm = false;
|
|
72
|
-
const closeTable = () => {
|
|
73
|
-
if (table)
|
|
74
|
-
violations.push(...checkTable(table));
|
|
75
|
-
table = null;
|
|
76
|
-
};
|
|
77
|
-
for (let i = 0; i < lines.length; i++) {
|
|
78
|
-
const text = lines[i];
|
|
79
|
-
const begin = text.match(/^\s*=begin\s+([\w-]+)/);
|
|
80
|
-
const end = text.match(/^\s*=end\s+([\w-]+)/);
|
|
81
|
-
const abbreviated = text.match(/^\s*=(?:for\s+)?table\b/);
|
|
82
|
-
// an abbreviated table ends at the first blank line or directive
|
|
83
|
-
if (table && abbreviatedForm && /^\s*=[A-Za-z]/.test(text))
|
|
84
|
-
closeTable();
|
|
85
|
-
if (table && abbreviatedForm && text.trim() === '') {
|
|
86
|
-
closeTable();
|
|
87
|
-
continue;
|
|
88
|
-
}
|
|
89
|
-
if (end) {
|
|
90
|
-
if (end[1] === 'table')
|
|
91
|
-
closeTable();
|
|
92
|
-
openBlocks.pop();
|
|
93
|
-
continue;
|
|
94
|
-
}
|
|
95
|
-
if (begin) {
|
|
96
|
-
closeTable();
|
|
97
|
-
openBlocks.push(begin[1]);
|
|
98
|
-
if (begin[1] === 'table' && !openBlocks.some(verbatim)) {
|
|
99
|
-
table = [];
|
|
100
|
-
abbreviatedForm = false;
|
|
101
|
-
}
|
|
102
|
-
continue;
|
|
103
|
-
}
|
|
104
|
-
if (openBlocks.some(verbatim))
|
|
105
|
-
continue;
|
|
106
|
-
if (abbreviated) {
|
|
107
|
-
closeTable();
|
|
108
|
-
table = [];
|
|
109
|
-
abbreviatedForm = true;
|
|
110
|
-
continue;
|
|
111
|
-
}
|
|
112
|
-
if (table)
|
|
113
|
-
table.push({ text, line: i + 1 });
|
|
114
|
-
}
|
|
115
|
-
closeTable();
|
|
116
|
-
return violations;
|
|
117
|
-
}
|
|
118
14
|
//# sourceMappingURL=table-column-width.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table-column-width.js","sourceRoot":"","sources":["../../../src/lint/rules/table-column-width.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"table-column-width.js","sourceRoot":"","sources":["../../../src/lint/rules/table-column-width.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,MAAM,0BAA0B,GAAG,oBAAoB,CAAA;AAE9D,MAAM,KAAK,GAAG,CAAC,CAAmB,EAAW,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,0BAA0B,CAAA;AAErF,oDAAoD;AACpD,MAAM,CAAC,MAAM,oBAAoB,GAAS;IACxC,EAAE,EAAE,0BAA0B;IAC9B,QAAQ,EAAE,SAAS;IACnB,KAAK,EAAE,CAAC,GAAoB,EAAE,IAAiB,EAAe,EAAE,CAC9D,CAAC,GAAG,CAAC,WAAW,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;QAC9C,IAAI,EAAE,0BAA0B;QAChC,QAAQ,EAAE,CAAC,CAAC,QAAQ;QACpB,OAAO,EAAE,CAAC,CAAC,OAAO;QAClB,QAAQ,EAAE,CAAC,CAAC,QAAQ;KACrB,CAAC,CAAC;CACN,CAAA"}
|
package/esm/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "0.0.
|
|
1
|
+
export declare const version = "0.0.97";
|
package/esm/version.js
CHANGED
package/lib/lint/grammar/scan.js
CHANGED
|
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.SOURCE_RULES = exports.attrContinuationDroppedRule = exports.delimitedBlockBalanceRule = exports.attrNestedAngleRule = exports.ATTR_CONTINUATION_DROPPED_RULE_ID = exports.DELIMITED_BLOCK_BALANCE_RULE_ID = exports.ATTR_NESTED_ANGLE_RULE_ID = void 0;
|
|
7
7
|
exports.scanSourceRules = scanSourceRules;
|
|
8
8
|
const schema_1 = require("@podlite/schema");
|
|
9
|
-
const table_column_width_1 = require("../rules/table-column-width");
|
|
10
9
|
const abbreviated_attrs_1 = require("../rules/abbreviated-attrs");
|
|
11
10
|
const markdown_in_pod_1 = require("../rules/markdown-in-pod");
|
|
12
11
|
const unclosed_markup_code_1 = require("../rules/unclosed-markup-code");
|
|
@@ -30,7 +29,6 @@ exports.SOURCE_RULES = [
|
|
|
30
29
|
exports.attrNestedAngleRule,
|
|
31
30
|
exports.delimitedBlockBalanceRule,
|
|
32
31
|
exports.attrContinuationDroppedRule,
|
|
33
|
-
table_column_width_1.tableColumnWidthRule,
|
|
34
32
|
abbreviated_attrs_1.abbreviatedAttrsRule,
|
|
35
33
|
markdown_in_pod_1.markdownInPodRule,
|
|
36
34
|
unclosed_markup_code_1.unclosedMarkupCodeRule,
|
|
@@ -59,7 +57,6 @@ function scanSourceRules(content, fileType = 'podlite') {
|
|
|
59
57
|
location: item.location,
|
|
60
58
|
});
|
|
61
59
|
}
|
|
62
|
-
opts.diagnostics.push(...(0, table_column_width_1.scanTableColumns)(content));
|
|
63
60
|
opts.diagnostics.push(...(0, abbreviated_attrs_1.scanAbbreviatedAttrs)(content));
|
|
64
61
|
// text outside blocks in the default mode is neither Podlite nor Markdown
|
|
65
62
|
if (fileType === 'podlite')
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scan.js","sourceRoot":"","sources":["../../../src/lint/grammar/scan.ts"],"names":[],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"scan.js","sourceRoot":"","sources":["../../../src/lint/grammar/scan.ts"],"names":[],"mappings":";;;;;;AA8CA,0CA0BC;AAvED,4CAAiF;AACjF,kEAAuF;AACvF,8DAA+E;AAC/E,wEAA+F;AAC/F,wDAAmC;AAEtB,QAAA,yBAAyB,GAAG,mBAAmB,CAAA;AAC/C,QAAA,+BAA+B,GAAG,yBAAyB,CAAA;AAC3D,QAAA,iCAAiC,GAAG,2BAA2B,CAAA;AAE/D,QAAA,mBAAmB,GAAe;IAC7C,EAAE,EAAE,iCAAyB;IAC7B,QAAQ,EAAE,OAAO;CAClB,CAAA;AAEY,QAAA,yBAAyB,GAAe;IACnD,EAAE,EAAE,uCAA+B;IACnC,QAAQ,EAAE,OAAO;CAClB,CAAA;AAEY,QAAA,2BAA2B,GAAe;IACrD,EAAE,EAAE,yCAAiC;IACrC,QAAQ,EAAE,SAAS;CACpB,CAAA;AAEY,QAAA,YAAY,GAAiB;IACxC,2BAAmB;IACnB,iCAAyB;IACzB,mCAA2B;IAC3B,wCAAoB;IACpB,mCAAiB;IACjB,6CAAsB;CACvB,CAAA;AAWD,4EAA4E;AAC5E,4DAA4D;AAC5D,SAAgB,eAAe,CAAC,OAAe,EAAE,WAAyC,SAAS;IACjG,MAAM,IAAI,GAAmB;QAC3B,WAAW,EAAE,EAAE;QACf,WAAW,EAAE,EAAE;QACf,YAAY,EAAE,KAAK;QACnB,cAAc,EAAE,CAAC,GAAG,wBAAe,CAAC;QACpC,UAAU,EAAE,wBAAe;KAC5B,CAAA;IACD,IAAI,CAAC;QACH,iBAAW,CAAC,KAAK,CAAC,OAAO,EAAE,IAAI,CAAC,CAAA;IAClC,CAAC;IAAC,MAAM,CAAC;QACP,uFAAuF;IACzF,CAAC;IACD,KAAK,MAAM,IAAI,IAAI,IAAI,CAAC,WAAW,EAAE,CAAC;QACpC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC;YACpB,IAAI,EAAE,uCAA+B;YACrC,QAAQ,EAAE,OAAO;YACjB,OAAO,EAAE,UAAU,IAAI,CAAC,IAAI,mCAAmC;YAC/D,QAAQ,EAAE,IAAI,CAAC,QAAQ;SACxB,CAAC,CAAA;IACJ,CAAC;IACD,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,GAAG,IAAA,wCAAoB,EAAC,OAAO,CAAC,CAAC,CAAA;IACvD,0EAA0E;IAC1E,IAAI,QAAQ,KAAK,SAAS;QAAE,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,GAAG,IAAA,mCAAiB,EAAC,OAAO,CAAC,CAAC,CAAA;IAChF,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,GAAG,IAAA,8CAAuB,EAAC,OAAO,CAAC,CAAC,CAAA;IAC1D,OAAO,IAAI,CAAC,WAAW,CAAA;AACzB,CAAC"}
|
package/lib/lint/rules/index.js
CHANGED
|
@@ -12,6 +12,8 @@ const link_file_resolves_1 = require("./link-file-resolves");
|
|
|
12
12
|
const link_not_empty_1 = require("./link-not-empty");
|
|
13
13
|
const attr_value_dropped_1 = require("./attr-value-dropped");
|
|
14
14
|
const table_shape_1 = require("./table-shape");
|
|
15
|
+
const table_column_width_1 = require("./table-column-width");
|
|
16
|
+
const list_depth_1 = require("./list-depth");
|
|
15
17
|
const markup_code_too_deep_1 = require("./markup-code-too-deep");
|
|
16
18
|
const dead_definitions_1 = require("./dead-definitions");
|
|
17
19
|
const include_resolves_1 = require("./include-resolves");
|
|
@@ -30,6 +32,8 @@ exports.DEFAULT_RULES = [
|
|
|
30
32
|
link_not_empty_1.linkNotEmptyRule,
|
|
31
33
|
attr_value_dropped_1.attrValueDroppedRule,
|
|
32
34
|
table_shape_1.tableShapeRule,
|
|
35
|
+
table_column_width_1.tableColumnWidthRule,
|
|
36
|
+
list_depth_1.listDepthRule,
|
|
33
37
|
markup_code_too_deep_1.markupCodeTooDeepRule,
|
|
34
38
|
dead_definitions_1.deadDefinitionsRule,
|
|
35
39
|
include_resolves_1.includeResolvesRule,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/lint/rules/index.ts"],"names":[],"mappings":";;;AACA,iDAAgD;AAChD,2DAA0D;AAC1D,qDAAoD;AACpD,uDAAqD;AACrD,2CAA0C;AAC1C,+DAA6D;AAC7D,iEAA+D;AAC/D,6DAA2D;AAC3D,qDAAmD;AACnD,6DAA2D;AAC3D,+CAA8C;AAC9C,iEAA8D;AAC9D,yDAAwD;AACxD,yDAAwD;AACxD,iDAA6E;AAC7E,yDAAwD;AACxD,+DAA6D;AAEhD,QAAA,aAAa,GAAW;IACnC,8BAAe;IACf,wCAAoB;IACpB,kCAAiB;IACjB,mCAAiB;IACjB,wBAAY;IACZ,2CAAqB;IACrB,6CAAsB;IACtB,yCAAoB;IACpB,iCAAgB;IAChB,yCAAoB;IACpB,4BAAc;IACd,4CAAqB;IACrB,sCAAmB;IACnB,sCAAmB;IACnB,sCAAuB;IACvB,kCAAmB;IACnB,sCAAmB;IACnB,2CAAqB;CACtB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/lint/rules/index.ts"],"names":[],"mappings":";;;AACA,iDAAgD;AAChD,2DAA0D;AAC1D,qDAAoD;AACpD,uDAAqD;AACrD,2CAA0C;AAC1C,+DAA6D;AAC7D,iEAA+D;AAC/D,6DAA2D;AAC3D,qDAAmD;AACnD,6DAA2D;AAC3D,+CAA8C;AAC9C,6DAA2D;AAC3D,6CAA4C;AAC5C,iEAA8D;AAC9D,yDAAwD;AACxD,yDAAwD;AACxD,iDAA6E;AAC7E,yDAAwD;AACxD,+DAA6D;AAEhD,QAAA,aAAa,GAAW;IACnC,8BAAe;IACf,wCAAoB;IACpB,kCAAiB;IACjB,mCAAiB;IACjB,wBAAY;IACZ,2CAAqB;IACrB,6CAAsB;IACtB,yCAAoB;IACpB,iCAAgB;IAChB,yCAAoB;IACpB,4BAAc;IACd,yCAAoB;IACpB,0BAAa;IACb,4CAAqB;IACrB,sCAAmB;IACnB,sCAAmB;IACnB,sCAAuB;IACvB,kCAAmB;IACnB,sCAAmB;IACnB,2CAAqB;CACtB,CAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.listDepthRule = exports.LIST_DEPTH_RULE_ID = void 0;
|
|
4
|
+
exports.LIST_DEPTH_RULE_ID = 'list-depth';
|
|
5
|
+
// passes on what the parser reports about a list nested deeper than it builds
|
|
6
|
+
exports.listDepthRule = {
|
|
7
|
+
id: exports.LIST_DEPTH_RULE_ID,
|
|
8
|
+
severity: 'warning',
|
|
9
|
+
check: (ast, _ctx) => (ast.diagnostics || [])
|
|
10
|
+
.filter(d => d.code === 'list-too-deep')
|
|
11
|
+
.map(d => ({ rule: exports.LIST_DEPTH_RULE_ID, severity: d.severity, message: d.message, location: d.location })),
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=list-depth.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-depth.js","sourceRoot":"","sources":["../../../src/lint/rules/list-depth.ts"],"names":[],"mappings":";;;AAGa,QAAA,kBAAkB,GAAG,YAAY,CAAA;AAE9C,8EAA8E;AACjE,QAAA,aAAa,GAAS;IACjC,EAAE,EAAE,0BAAkB;IACtB,QAAQ,EAAE,SAAS;IACnB,KAAK,EAAE,CAAC,GAAoB,EAAE,IAAiB,EAAe,EAAE,CAC9D,CAAC,GAAG,CAAC,WAAW,IAAI,EAAE,CAAC;SACpB,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,eAAe,CAAC;SACvC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,0BAAkB,EAAE,QAAQ,EAAE,CAAC,CAAC,QAAQ,EAAE,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE,QAAQ,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC;CAC9G,CAAA"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Rule } from '../types';
|
|
2
2
|
export declare const TABLE_COLUMN_WIDTH_RULE_ID = "table-column-width";
|
|
3
|
-
export declare const tableColumnWidthRule:
|
|
4
|
-
export declare function scanTableColumns(content: string): Violation[];
|
|
3
|
+
export declare const tableColumnWidthRule: Rule;
|
|
@@ -1,122 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.tableColumnWidthRule = exports.TABLE_COLUMN_WIDTH_RULE_ID = void 0;
|
|
4
|
-
exports.scanTableColumns = scanTableColumns;
|
|
5
|
-
const schema_1 = require("@podlite/schema");
|
|
6
4
|
exports.TABLE_COLUMN_WIDTH_RULE_ID = 'table-column-width';
|
|
5
|
+
const named = (d) => d.code === exports.TABLE_COLUMN_WIDTH_RULE_ID;
|
|
6
|
+
// passes on what the parser reports under this name
|
|
7
7
|
exports.tableColumnWidthRule = {
|
|
8
8
|
id: exports.TABLE_COLUMN_WIDTH_RULE_ID,
|
|
9
9
|
severity: 'warning',
|
|
10
|
+
check: (ast, _ctx) => (ast.diagnostics || []).filter(named).map(d => ({
|
|
11
|
+
rule: exports.TABLE_COLUMN_WIDTH_RULE_ID,
|
|
12
|
+
severity: d.severity,
|
|
13
|
+
message: d.message,
|
|
14
|
+
location: d.location,
|
|
15
|
+
})),
|
|
10
16
|
};
|
|
11
|
-
const SEPARATOR_LINE = /^[\s=+|_-]*[|+][\s=+|_-]*$/;
|
|
12
|
-
const hasBar = (line) => line.includes('|') || line.includes('+');
|
|
13
|
-
// A table with visible bars is cut by the column positions its separator line
|
|
14
|
-
// sets, not by the bars in the row itself. A cell that reaches the boundary
|
|
15
|
-
// pushes the column open for the whole table, so every row loses its last
|
|
16
|
-
// column at once — and the document still parses, silently.
|
|
17
|
-
const boundaries = (separator) => {
|
|
18
|
-
const out = [];
|
|
19
|
-
for (let i = 0; i < separator.length; i++) {
|
|
20
|
-
if (separator[i] === '|' || separator[i] === '+')
|
|
21
|
-
out.push(i);
|
|
22
|
-
}
|
|
23
|
-
return out;
|
|
24
|
-
};
|
|
25
|
-
const isEdge = (char) => char === '|' || char === '+' || char === ' ';
|
|
26
|
-
const collides = (line, boundary) => {
|
|
27
|
-
if (boundary >= line.length)
|
|
28
|
-
return false;
|
|
29
|
-
// content standing on the boundary is wrong however the row is written
|
|
30
|
-
if (!isEdge(line[boundary]))
|
|
31
|
-
return true;
|
|
32
|
-
// pressed against the boundary only matters where the row draws a bar of its
|
|
33
|
-
// own: a row whose cells are held apart by spaces may fill its column to the
|
|
34
|
-
// last position, and the parser reads it correctly
|
|
35
|
-
const drawsBar = line[boundary] === '|' || line[boundary] === '+';
|
|
36
|
-
return drawsBar && boundary > 0 && !isEdge(line[boundary - 1]);
|
|
37
|
-
};
|
|
38
|
-
const checkTable = (lines) => {
|
|
39
|
-
const separator = lines.find(l => SEPARATOR_LINE.test(l.text) && hasBar(l.text));
|
|
40
|
-
if (!separator)
|
|
41
|
-
return [];
|
|
42
|
-
const columns = boundaries(separator.text);
|
|
43
|
-
if (columns.length === 0)
|
|
44
|
-
return [];
|
|
45
|
-
const violations = [];
|
|
46
|
-
for (const row of lines) {
|
|
47
|
-
if (row === separator || row.text.trim() === '')
|
|
48
|
-
continue;
|
|
49
|
-
if (SEPARATOR_LINE.test(row.text))
|
|
50
|
-
continue;
|
|
51
|
-
const hit = columns.find(b => collides(row.text, b));
|
|
52
|
-
if (hit === undefined)
|
|
53
|
-
continue;
|
|
54
|
-
violations.push({
|
|
55
|
-
rule: exports.TABLE_COLUMN_WIDTH_RULE_ID,
|
|
56
|
-
severity: 'warning',
|
|
57
|
-
message: `cell reaches the column boundary at column ${hit + 1}; leave a space before the bar or the table loses a column`,
|
|
58
|
-
location: {
|
|
59
|
-
start: { line: row.line, column: hit + 1, offset: 0 },
|
|
60
|
-
end: { line: row.line, column: hit + 1, offset: 0 },
|
|
61
|
-
},
|
|
62
|
-
});
|
|
63
|
-
}
|
|
64
|
-
return violations;
|
|
65
|
-
};
|
|
66
|
-
function scanTableColumns(content) {
|
|
67
|
-
const lines = content.split(/\r?\n/);
|
|
68
|
-
// a table keeps its content verbatim too, and it is the one being read here
|
|
69
|
-
const verbatim = (name) => name !== 'table' && (0, schema_1.isVerbatimBlock)(name);
|
|
70
|
-
const openBlocks = [];
|
|
71
|
-
const violations = [];
|
|
72
|
-
let table = null;
|
|
73
|
-
// the form of the table being read, not of a table around it: an abbreviated
|
|
74
|
-
// one ends where the parser ends it, inside a delimited table too
|
|
75
|
-
let abbreviatedForm = false;
|
|
76
|
-
const closeTable = () => {
|
|
77
|
-
if (table)
|
|
78
|
-
violations.push(...checkTable(table));
|
|
79
|
-
table = null;
|
|
80
|
-
};
|
|
81
|
-
for (let i = 0; i < lines.length; i++) {
|
|
82
|
-
const text = lines[i];
|
|
83
|
-
const begin = text.match(/^\s*=begin\s+([\w-]+)/);
|
|
84
|
-
const end = text.match(/^\s*=end\s+([\w-]+)/);
|
|
85
|
-
const abbreviated = text.match(/^\s*=(?:for\s+)?table\b/);
|
|
86
|
-
// an abbreviated table ends at the first blank line or directive
|
|
87
|
-
if (table && abbreviatedForm && /^\s*=[A-Za-z]/.test(text))
|
|
88
|
-
closeTable();
|
|
89
|
-
if (table && abbreviatedForm && text.trim() === '') {
|
|
90
|
-
closeTable();
|
|
91
|
-
continue;
|
|
92
|
-
}
|
|
93
|
-
if (end) {
|
|
94
|
-
if (end[1] === 'table')
|
|
95
|
-
closeTable();
|
|
96
|
-
openBlocks.pop();
|
|
97
|
-
continue;
|
|
98
|
-
}
|
|
99
|
-
if (begin) {
|
|
100
|
-
closeTable();
|
|
101
|
-
openBlocks.push(begin[1]);
|
|
102
|
-
if (begin[1] === 'table' && !openBlocks.some(verbatim)) {
|
|
103
|
-
table = [];
|
|
104
|
-
abbreviatedForm = false;
|
|
105
|
-
}
|
|
106
|
-
continue;
|
|
107
|
-
}
|
|
108
|
-
if (openBlocks.some(verbatim))
|
|
109
|
-
continue;
|
|
110
|
-
if (abbreviated) {
|
|
111
|
-
closeTable();
|
|
112
|
-
table = [];
|
|
113
|
-
abbreviatedForm = true;
|
|
114
|
-
continue;
|
|
115
|
-
}
|
|
116
|
-
if (table)
|
|
117
|
-
table.push({ text, line: i + 1 });
|
|
118
|
-
}
|
|
119
|
-
closeTable();
|
|
120
|
-
return violations;
|
|
121
|
-
}
|
|
122
17
|
//# sourceMappingURL=table-column-width.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table-column-width.js","sourceRoot":"","sources":["../../../src/lint/rules/table-column-width.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"table-column-width.js","sourceRoot":"","sources":["../../../src/lint/rules/table-column-width.ts"],"names":[],"mappings":";;;AAGa,QAAA,0BAA0B,GAAG,oBAAoB,CAAA;AAE9D,MAAM,KAAK,GAAG,CAAC,CAAmB,EAAW,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,kCAA0B,CAAA;AAErF,oDAAoD;AACvC,QAAA,oBAAoB,GAAS;IACxC,EAAE,EAAE,kCAA0B;IAC9B,QAAQ,EAAE,SAAS;IACnB,KAAK,EAAE,CAAC,GAAoB,EAAE,IAAiB,EAAe,EAAE,CAC9D,CAAC,GAAG,CAAC,WAAW,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;QAC9C,IAAI,EAAE,kCAA0B;QAChC,QAAQ,EAAE,CAAC,CAAC,QAAQ;QACpB,OAAO,EAAE,CAAC,CAAC,OAAO;QAClB,QAAQ,EAAE,CAAC,CAAC,QAAQ;KACrB,CAAC,CAAC;CACN,CAAA"}
|
package/lib/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "0.0.
|
|
1
|
+
export declare const version = "0.0.97";
|
package/lib/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "podlite",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.97",
|
|
4
4
|
"description": "Podlite markup language: parser and CLI (convert, lint, query, test). Reads Markdown; includes Mermaid diagram and LaTeX formula plugins.",
|
|
5
5
|
"homepage": "https://podlite.org",
|
|
6
6
|
"repository": {
|
|
@@ -100,13 +100,13 @@
|
|
|
100
100
|
"url": "https://github.com/podlite/podlite/issues"
|
|
101
101
|
},
|
|
102
102
|
"dependencies": {
|
|
103
|
-
"@podlite/diagram": "^0.0.
|
|
104
|
-
"@podlite/formula": "0.0.
|
|
105
|
-
"@podlite/image": "^0.0.
|
|
106
|
-
"@podlite/markdown": "0.0.
|
|
107
|
-
"@podlite/schema": "^0.0.
|
|
108
|
-
"@podlite/toc": "0.0.
|
|
109
|
-
"nanoid": "3.
|
|
103
|
+
"@podlite/diagram": "^0.0.88",
|
|
104
|
+
"@podlite/formula": "0.0.66",
|
|
105
|
+
"@podlite/image": "^0.0.83",
|
|
106
|
+
"@podlite/markdown": "0.0.77",
|
|
107
|
+
"@podlite/schema": "^0.0.84",
|
|
108
|
+
"@podlite/toc": "0.0.77",
|
|
109
|
+
"nanoid": "^3.3.20"
|
|
110
110
|
},
|
|
111
111
|
"devDependencies": {
|
|
112
112
|
"@types/jest": "^26.0.21",
|
|
@@ -117,8 +117,8 @@
|
|
|
117
117
|
"typescript": "4.5.5"
|
|
118
118
|
},
|
|
119
119
|
"peerDependencies": {
|
|
120
|
-
"react": "^16.0.0 || ^17.0.0 || ^18",
|
|
121
|
-
"react-dom": "^16.0.0 || ^17.0.0 || ^18"
|
|
120
|
+
"react": "^16.0.0 || ^17.0.0 || ^18 || ^19",
|
|
121
|
+
"react-dom": "^16.0.0 || ^17.0.0 || ^18 || ^19"
|
|
122
122
|
},
|
|
123
123
|
"publishConfig": {
|
|
124
124
|
"access": "public"
|