podlite 0.0.89 → 0.0.90
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 +4 -0
- package/esm/lint/rules/toc-title-attribute.js +5 -6
- package/esm/lint/rules/toc-title-attribute.js.map +1 -1
- package/esm/version.d.ts +1 -1
- package/esm/version.js +1 -1
- package/lib/lint/rules/toc-title-attribute.js +5 -6
- package/lib/lint/rules/toc-title-attribute.js.map +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +7 -7
package/CHANGELOG.podlite
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
=head1 Upcoming
|
|
4
4
|
|
|
5
|
+
=head1 0.0.90
|
|
6
|
+
|
|
7
|
+
=item C<lint> rule C<toc-title-attribute> says that C<:title> on a C<=toc> block gives no caption: the table of contents no longer reads it
|
|
8
|
+
|
|
5
9
|
=head1 0.0.89
|
|
6
10
|
|
|
7
11
|
=item C<lint> warns about C<:title> on a C<=toc> block, written on the block or given by C<=set> or C<=config>: the specification captions a table of contents with C<:caption>. The table of contents still reads C<:title> in this release and will not in the next (rule C<toc-title-attribute>)
|
|
@@ -5,13 +5,12 @@ const isToc = (node) => typeof node === 'object' &&
|
|
|
5
5
|
node !== null &&
|
|
6
6
|
node.type === 'block' &&
|
|
7
7
|
(node.name === 'toc' || node.name === 'Toc');
|
|
8
|
-
// The specification captions a table of contents with :caption
|
|
9
|
-
// table of contents
|
|
8
|
+
// The specification captions a table of contents with :caption, and the module of the
|
|
9
|
+
// table of contents no longer takes a caption from :title. The parser
|
|
10
10
|
// already puts on a block what =set and =config give it, marked by where it came
|
|
11
11
|
// from, so one reading of the block covers all three sources and gives one warning.
|
|
12
|
-
// The linter can assemble a document by its includes, and this rule does not:
|
|
13
|
-
//
|
|
14
|
-
// about a block of another file would have to stand at the line of =include. So a
|
|
12
|
+
// The linter can assemble a document by its includes, and this rule does not: a
|
|
13
|
+
// warning about a block of another file would have to stand at the line of =include. So a
|
|
15
14
|
// :title that reaches a table of contents only when the files are assembled is not
|
|
16
15
|
// reported, as with the notification attribute.
|
|
17
16
|
export const tocTitleAttributeRule = {
|
|
@@ -28,7 +27,7 @@ export const tocTitleAttributeRule = {
|
|
|
28
27
|
{
|
|
29
28
|
rule: TOC_TITLE_ATTRIBUTE_RULE_ID,
|
|
30
29
|
severity: 'warning',
|
|
31
|
-
message: `:title${source}
|
|
30
|
+
message: `:title${source} on =${node.name} gives no caption; a caption is written :caption`,
|
|
32
31
|
location: node.location,
|
|
33
32
|
},
|
|
34
33
|
];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toc-title-attribute.js","sourceRoot":"","sources":["../../../src/lint/rules/toc-title-attribute.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAmB,MAAM,iBAAiB,CAAA;AAG9D,MAAM,CAAC,MAAM,2BAA2B,GAAG,qBAAqB,CAAA;AAKhE,4EAA4E;AAC5E,MAAM,KAAK,GAAG,CAAC,IAAa,EAAmB,EAAE,CAC/C,OAAO,IAAI,KAAK,QAAQ;IACxB,IAAI,KAAK,IAAI;IACZ,IAAgB,CAAC,IAAI,KAAK,OAAO;IAClC,CAAE,IAAgB,CAAC,IAAI,KAAK,KAAK,IAAK,IAAgB,CAAC,IAAI,KAAK,KAAK,CAAC,CAAA;AAExE,
|
|
1
|
+
{"version":3,"file":"toc-title-attribute.js","sourceRoot":"","sources":["../../../src/lint/rules/toc-title-attribute.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAmB,MAAM,iBAAiB,CAAA;AAG9D,MAAM,CAAC,MAAM,2BAA2B,GAAG,qBAAqB,CAAA;AAKhE,4EAA4E;AAC5E,MAAM,KAAK,GAAG,CAAC,IAAa,EAAmB,EAAE,CAC/C,OAAO,IAAI,KAAK,QAAQ;IACxB,IAAI,KAAK,IAAI;IACZ,IAAgB,CAAC,IAAI,KAAK,OAA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CHANGED
|
@@ -8,13 +8,12 @@ const isToc = (node) => typeof node === 'object' &&
|
|
|
8
8
|
node !== null &&
|
|
9
9
|
node.type === 'block' &&
|
|
10
10
|
(node.name === 'toc' || node.name === 'Toc');
|
|
11
|
-
// The specification captions a table of contents with :caption
|
|
12
|
-
// table of contents
|
|
11
|
+
// The specification captions a table of contents with :caption, and the module of the
|
|
12
|
+
// table of contents no longer takes a caption from :title. The parser
|
|
13
13
|
// already puts on a block what =set and =config give it, marked by where it came
|
|
14
14
|
// from, so one reading of the block covers all three sources and gives one warning.
|
|
15
|
-
// The linter can assemble a document by its includes, and this rule does not:
|
|
16
|
-
//
|
|
17
|
-
// about a block of another file would have to stand at the line of =include. So a
|
|
15
|
+
// The linter can assemble a document by its includes, and this rule does not: a
|
|
16
|
+
// warning about a block of another file would have to stand at the line of =include. So a
|
|
18
17
|
// :title that reaches a table of contents only when the files are assembled is not
|
|
19
18
|
// reported, as with the notification attribute.
|
|
20
19
|
exports.tocTitleAttributeRule = {
|
|
@@ -31,7 +30,7 @@ exports.tocTitleAttributeRule = {
|
|
|
31
30
|
{
|
|
32
31
|
rule: exports.TOC_TITLE_ATTRIBUTE_RULE_ID,
|
|
33
32
|
severity: 'warning',
|
|
34
|
-
message: `:title${source}
|
|
33
|
+
message: `:title${source} on =${node.name} gives no caption; a caption is written :caption`,
|
|
35
34
|
location: node.location,
|
|
36
35
|
},
|
|
37
36
|
];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toc-title-attribute.js","sourceRoot":"","sources":["../../../src/lint/rules/toc-title-attribute.ts"],"names":[],"mappings":";;;AAAA,4CAA8D;AAGjD,QAAA,2BAA2B,GAAG,qBAAqB,CAAA;AAKhE,4EAA4E;AAC5E,MAAM,KAAK,GAAG,CAAC,IAAa,EAAmB,EAAE,CAC/C,OAAO,IAAI,KAAK,QAAQ;IACxB,IAAI,KAAK,IAAI;IACZ,IAAgB,CAAC,IAAI,KAAK,OAAO;IAClC,CAAE,IA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,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAA;QAChG,OAAO;YACL;gBACE,IAAI,EAAE,mCAA2B;gBACjC,QAAQ,EAAE,SAAkB;gBAC5B,OAAO,EAAE,SAAS,MAAM,QAAQ,IAAI,CAAC,IAAI,kDAAkD;gBAC3F,QAAQ,EAAE,IAAI,CAAC,QAAQ;aACxB;SACF,CAAA;IACH,CAAC,CAAC;CACL,CAAA"}
|
package/lib/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "0.0.
|
|
1
|
+
export declare const version = "0.0.90";
|
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.90",
|
|
4
4
|
"description": "Podlite markup language parser — Markdown-compatible, with native support for diagrams, formulas, and custom blocks",
|
|
5
5
|
"homepage": "https://podlite.org",
|
|
6
6
|
"repository": {
|
|
@@ -100,12 +100,12 @@
|
|
|
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.
|
|
103
|
+
"@podlite/diagram": "^0.0.81",
|
|
104
|
+
"@podlite/formula": "0.0.59",
|
|
105
|
+
"@podlite/image": "^0.0.76",
|
|
106
|
+
"@podlite/markdown": "0.0.70",
|
|
107
|
+
"@podlite/schema": "^0.0.77",
|
|
108
|
+
"@podlite/toc": "0.0.70",
|
|
109
109
|
"nanoid": "3.1.30"
|
|
110
110
|
},
|
|
111
111
|
"devDependencies": {
|