@podlite/schema 0.0.24 → 0.0.26
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.md +10 -0
- package/README.md +54 -6
- package/esm/ast-helpers.d.ts +2 -0
- package/esm/ast-helpers.js +1 -0
- package/esm/ast-helpers.js.map +1 -1
- package/esm/blocks-helpers.d.ts +1 -1
- package/esm/blocks-helpers.js +2 -2
- package/esm/blocks-helpers.js.map +1 -1
- package/esm/grammar.js +44 -3
- package/esm/grammar.js.map +1 -1
- package/esm/types.d.ts +5 -1
- package/lib/ast-helpers.d.ts +2 -0
- package/lib/ast-helpers.js +3 -1
- package/lib/blocks-helpers.d.ts +1 -1
- package/lib/blocks-helpers.js +2 -2
- package/lib/grammar.js +44 -3
- package/lib/types.d.ts +5 -1
- package/package.json +5 -1
- package/schema/AstTree.json +58 -0
- package/schema/PodliteDocument.json +58 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
## Upcoming
|
|
4
4
|
|
|
5
|
+
## 0.0.26
|
|
6
|
+
|
|
7
|
+
- add `location` from original node to `mkToc` helper
|
|
8
|
+
- safe block id creation
|
|
9
|
+
- fix the abbreviated block when its content starts with `=`
|
|
10
|
+
|
|
11
|
+
## 0.0.25
|
|
12
|
+
|
|
13
|
+
- added initial support for `=include` block
|
|
14
|
+
|
|
5
15
|
## 0.0.23
|
|
6
16
|
|
|
7
17
|
- added alignment for column contents
|
package/README.md
CHANGED
|
@@ -22,19 +22,67 @@ Podlite aims to provide users with a means for creativity and expressing ideas i
|
|
|
22
22
|
|
|
23
23
|
## Useful links
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
<div align="center">
|
|
26
|
+
<table border=0><tr><td valign=top><div align="center">
|
|
27
|
+
|
|
28
|
+
##### specification
|
|
29
|
+
|
|
30
|
+
</div>
|
|
31
|
+
|
|
32
|
+
- [Source](https://github.com/podlite/podlite-specs)
|
|
33
|
+
- [in HTML](https://podlite.org/specification)
|
|
34
|
+
- [Discussions](https://github.com/podlite/podlite-specs/discussions)
|
|
35
|
+
|
|
36
|
+
<div align="center">
|
|
37
|
+
|
|
38
|
+
##### implementation
|
|
39
|
+
|
|
40
|
+
</div>
|
|
41
|
+
|
|
42
|
+
- [Source](https://github.com/podlite/podlite)
|
|
43
|
+
- [Changelog](https://github.com/podlite/podlite/releases)
|
|
44
|
+
- [Issues](https://github.com/podlite/podlite/issues)
|
|
26
45
|
|
|
27
|
-
|
|
46
|
+
</td><td valign=top><div align="center">
|
|
28
47
|
|
|
29
|
-
|
|
48
|
+
##### publishing system
|
|
30
49
|
|
|
31
|
-
|
|
50
|
+
</div>
|
|
51
|
+
|
|
52
|
+
- [Podlite-web](https://github.com/podlite/podlite-web)
|
|
53
|
+
- [How-to article](https://zahatski.com/2022/8/23/1/start-you-own-blog-site-with-podlite-for-web)
|
|
54
|
+
- [Issues](https://github.com/podlite/podlite-specs/issues)
|
|
55
|
+
- [Changelog](https://github.com/podlite/podlite-web/releases)
|
|
56
|
+
- [Example: Knowledge base for <br/> raku programming language](https://raku-knowledge-base.podlite.org/)
|
|
57
|
+
|
|
58
|
+
</td><td valign=top><div align="center">
|
|
59
|
+
|
|
60
|
+
##### desktop viewer/editor
|
|
61
|
+
|
|
62
|
+
</div>
|
|
63
|
+
|
|
64
|
+
- [Podlite-desktop](https://github.com/podlite/podlite-desktop)
|
|
65
|
+
- [Releases](https://github.com/podlite/podlite-desktop/releases)
|
|
66
|
+
- [Issues](https://github.com/podlite/podlite-desktop/issues)
|
|
32
67
|
|
|
33
|
-
|
|
68
|
+
</td><td valign=top><div align="center">
|
|
69
|
+
|
|
70
|
+
##### online resurces
|
|
71
|
+
|
|
72
|
+
</div>
|
|
73
|
+
|
|
74
|
+
- [podlite.org](https://podlite.org)
|
|
75
|
+
- [pod6.in](https://pod6.in/)
|
|
76
|
+
- [github.com/podlite](https://github.com/podlite/)
|
|
77
|
+
- [Podlite project updates](https://podlite.org/contents)
|
|
78
|
+
- [Funding the ongoing development](https://opencollective.com/podlite)
|
|
79
|
+
|
|
80
|
+
</td></tr></table>
|
|
81
|
+
</div>
|
|
34
82
|
|
|
35
83
|
## AUTHOR
|
|
36
84
|
|
|
37
|
-
Copyright (c) 2021-
|
|
85
|
+
Copyright (c) 2021-2025 Aliaksandr Zahatski
|
|
38
86
|
|
|
39
87
|
## License
|
|
40
88
|
|
package/esm/ast-helpers.d.ts
CHANGED
|
@@ -1,2 +1,4 @@
|
|
|
1
|
+
import { Node } from './types';
|
|
1
2
|
export declare const getNodeId: (node: any, ctx: any) => any;
|
|
3
|
+
export declare const getSafeNodeId: (node: Node, ctx: any) => string | null;
|
|
2
4
|
export declare const makeAttrs: (node: any, ctx?: import("./helpers/config").Context) => import("./helpers/config").Attr;
|
package/esm/ast-helpers.js
CHANGED
package/esm/ast-helpers.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ast-helpers.js","sourceRoot":"","sources":["../src/ast-helpers.ts"],"names":[],"mappings":"AACA,OAAO,YAAY,MAAM,kBAAkB,CAAA;
|
|
1
|
+
{"version":3,"file":"ast-helpers.js","sourceRoot":"","sources":["../src/ast-helpers.ts"],"names":[],"mappings":"AACA,OAAO,YAAY,MAAM,kBAAkB,CAAA;AAG3C,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,IAAI,EAAE,GAAG,EAAE,EAAE;IACrC,MAAM,IAAI,GAAG,YAAY,CAAC,IAAI,EAAE,GAAG,CAAC,CAAA;IACpC,IAAI,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE;QACrB,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,CAAA;KAChC;IACD,OAAO,IAAI,CAAC,EAAE,CAAA;AAChB,CAAC,CAAA;AACD,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,IAAU,EAAE,GAAG,EAAiB,EAAE,CAAC,SAAS,CAAC,IAAI,EAAE,GAAG,CAAC,EAAE,QAAQ,EAAE,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAA;AAErH,MAAM,CAAC,MAAM,SAAS,GAAG,YAAY,CAAA"}
|
package/esm/blocks-helpers.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ export declare const mkVerbatim: (text: any) => {
|
|
|
17
17
|
type: string;
|
|
18
18
|
value: any;
|
|
19
19
|
};
|
|
20
|
-
export declare const mkToc: (content: TocList, title?: string) => Toc;
|
|
20
|
+
export declare const mkToc: (content: TocList, title?: string, location?: Location) => Toc;
|
|
21
21
|
export declare const mkTocList: (content: Array<TocItem | TocList>, level: number) => TocList;
|
|
22
22
|
export declare const mkTocItem: (content: PodNode) => TocItem;
|
|
23
23
|
export declare const mkCaption: (content: Array<Node>) => BlockCaption;
|
package/esm/blocks-helpers.js
CHANGED
|
@@ -34,8 +34,8 @@ export const mkVerbatim = text => {
|
|
|
34
34
|
return mkNode({ type: 'verbatim', value: text });
|
|
35
35
|
};
|
|
36
36
|
// Table of contents helpers
|
|
37
|
-
export const mkToc = (content, title) => {
|
|
38
|
-
return mkNode({ type: 'toc', title, content });
|
|
37
|
+
export const mkToc = (content, title, location) => {
|
|
38
|
+
return mkNode({ type: 'toc', title, content, location });
|
|
39
39
|
};
|
|
40
40
|
export const mkTocList = (content, level) => {
|
|
41
41
|
return mkNode({ type: 'toc-list', level, content });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blocks-helpers.js","sourceRoot":"","sources":["../src/blocks-helpers.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAE/B,MAAM,CAAC,MAAM,MAAM,GAAG,CAAgC,IAAO,EAAK,EAAE;IAClE,OAAO,EAAE,GAAG,IAAI,EAAE,CAAA;AACpB,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,WAAW,GAAG,OAAO,CAAC,EAAE;IACnC,IAAI,KAAK,CAAC,OAAO,CAAC,OA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,CAAA;AAED,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,EAAE,MAAM,GAAG,EAAE,EAAE,EAAE,OAAO,EAAa,EAAE;IACjE,OAAO,OAAO,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,OAAO,CAAC,CAAA;AACnD,CAAC,CAAA;AAOD,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAqB,EAAE,OAAgB,EAAa,EAAE;IACzG,OAAO,OAAO,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,EAAE,OAAO,CAAC,CAAA;AACpE,CAAC,CAAA;AACD,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAgB,EAAE;IAClE,OAAO,OAAO,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,CAAA;AACpE,CAAC,CAAA"}
|
package/esm/grammar.js
CHANGED
|
@@ -283,7 +283,8 @@ function peg$parse(input, options) {
|
|
|
283
283
|
config: [],
|
|
284
284
|
location: location()
|
|
285
285
|
};
|
|
286
|
-
}, peg$c159 = function (vmargin, name,
|
|
286
|
+
}, peg$c159 = function (vmargin, name, first_line, content_rest) {
|
|
287
|
+
const content = (first_line === "\n" ? "" : first_line) + content_rest;
|
|
287
288
|
return {
|
|
288
289
|
margin: vmargin,
|
|
289
290
|
type: 'block',
|
|
@@ -1263,6 +1264,45 @@ function peg$parse(input, options) {
|
|
|
1263
1264
|
}
|
|
1264
1265
|
return s0;
|
|
1265
1266
|
}
|
|
1267
|
+
function peg$parseraw_text_until_eol() {
|
|
1268
|
+
var s0, s1, s2, s3;
|
|
1269
|
+
s0 = peg$currPos;
|
|
1270
|
+
s1 = peg$currPos;
|
|
1271
|
+
s2 = [];
|
|
1272
|
+
s3 = peg$parseText();
|
|
1273
|
+
if (s3 !== peg$FAILED) {
|
|
1274
|
+
while (s3 !== peg$FAILED) {
|
|
1275
|
+
s2.push(s3);
|
|
1276
|
+
s3 = peg$parseText();
|
|
1277
|
+
}
|
|
1278
|
+
}
|
|
1279
|
+
else {
|
|
1280
|
+
s2 = peg$FAILED;
|
|
1281
|
+
}
|
|
1282
|
+
if (s2 !== peg$FAILED) {
|
|
1283
|
+
s1 = input.substring(s1, peg$currPos);
|
|
1284
|
+
}
|
|
1285
|
+
else {
|
|
1286
|
+
s1 = s2;
|
|
1287
|
+
}
|
|
1288
|
+
if (s1 !== peg$FAILED) {
|
|
1289
|
+
s2 = peg$parseEOL();
|
|
1290
|
+
if (s2 !== peg$FAILED) {
|
|
1291
|
+
peg$savedPos = s0;
|
|
1292
|
+
s1 = peg$c34();
|
|
1293
|
+
s0 = s1;
|
|
1294
|
+
}
|
|
1295
|
+
else {
|
|
1296
|
+
peg$currPos = s0;
|
|
1297
|
+
s0 = peg$FAILED;
|
|
1298
|
+
}
|
|
1299
|
+
}
|
|
1300
|
+
else {
|
|
1301
|
+
peg$currPos = s0;
|
|
1302
|
+
s0 = peg$FAILED;
|
|
1303
|
+
}
|
|
1304
|
+
return s0;
|
|
1305
|
+
}
|
|
1266
1306
|
function peg$parseerror_para() {
|
|
1267
1307
|
var s0, s1, s2, s3, s4, s5;
|
|
1268
1308
|
s0 = peg$currPos;
|
|
@@ -5406,7 +5446,7 @@ function peg$parse(input, options) {
|
|
|
5406
5446
|
if (s4 !== peg$FAILED) {
|
|
5407
5447
|
s5 = peg$parseemptyline();
|
|
5408
5448
|
if (s5 === peg$FAILED) {
|
|
5409
|
-
s5 =
|
|
5449
|
+
s5 = peg$parseraw_text_until_eol();
|
|
5410
5450
|
}
|
|
5411
5451
|
if (s5 !== peg$FAILED) {
|
|
5412
5452
|
s6 = peg$currPos;
|
|
@@ -5476,7 +5516,7 @@ function peg$parse(input, options) {
|
|
|
5476
5516
|
}
|
|
5477
5517
|
if (s6 !== peg$FAILED) {
|
|
5478
5518
|
peg$savedPos = s0;
|
|
5479
|
-
s1 = peg$c159(s1, s3, s6);
|
|
5519
|
+
s1 = peg$c159(s1, s3, s5, s6);
|
|
5480
5520
|
s0 = s1;
|
|
5481
5521
|
}
|
|
5482
5522
|
else {
|
|
@@ -6359,6 +6399,7 @@ function peg$parse(input, options) {
|
|
|
6359
6399
|
'defn',
|
|
6360
6400
|
'formula',
|
|
6361
6401
|
'head',
|
|
6402
|
+
'include',
|
|
6362
6403
|
'input',
|
|
6363
6404
|
'item',
|
|
6364
6405
|
'markdown',
|