@podlite/markdown 0.0.17 → 0.0.19
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 +54 -6
- package/lib/index.cjs +22 -21
- package/lib/index.cjs.map +3 -3
- package/lib/index.esm.js +161 -4
- package/lib/index.esm.js.map +2 -2
- package/package.json +6 -2
- package/tsconfig.tsbuildinfo +1 -1
package/lib/index.esm.js
CHANGED
|
@@ -6753,6 +6753,9 @@ var require_AstTree = __commonJS({
|
|
|
6753
6753
|
{
|
|
6754
6754
|
$ref: "#/definitions/BlockInput"
|
|
6755
6755
|
},
|
|
6756
|
+
{
|
|
6757
|
+
$ref: "#/definitions/BlockInclude"
|
|
6758
|
+
},
|
|
6756
6759
|
{
|
|
6757
6760
|
$ref: "#/definitions/BlockPara"
|
|
6758
6761
|
},
|
|
@@ -7352,6 +7355,58 @@ var require_AstTree = __commonJS({
|
|
|
7352
7355
|
"type"
|
|
7353
7356
|
]
|
|
7354
7357
|
},
|
|
7358
|
+
BlockInclude: {
|
|
7359
|
+
type: "object",
|
|
7360
|
+
properties: {
|
|
7361
|
+
name: {
|
|
7362
|
+
type: "string",
|
|
7363
|
+
enum: [
|
|
7364
|
+
"include"
|
|
7365
|
+
]
|
|
7366
|
+
},
|
|
7367
|
+
type: {
|
|
7368
|
+
type: "string",
|
|
7369
|
+
enum: [
|
|
7370
|
+
"block"
|
|
7371
|
+
]
|
|
7372
|
+
},
|
|
7373
|
+
location: {
|
|
7374
|
+
$ref: "#/definitions/Location"
|
|
7375
|
+
},
|
|
7376
|
+
content: {
|
|
7377
|
+
type: "array",
|
|
7378
|
+
items: {
|
|
7379
|
+
$ref: "#/definitions/PodNode"
|
|
7380
|
+
}
|
|
7381
|
+
},
|
|
7382
|
+
margin: {
|
|
7383
|
+
type: "string"
|
|
7384
|
+
},
|
|
7385
|
+
config: {
|
|
7386
|
+
type: "array",
|
|
7387
|
+
items: {
|
|
7388
|
+
anyOf: [
|
|
7389
|
+
{
|
|
7390
|
+
$ref: "#/definitions/BrokenConfigItem"
|
|
7391
|
+
},
|
|
7392
|
+
{
|
|
7393
|
+
$ref: "#/definitions/ConfigItem"
|
|
7394
|
+
}
|
|
7395
|
+
]
|
|
7396
|
+
}
|
|
7397
|
+
},
|
|
7398
|
+
id: {
|
|
7399
|
+
type: "string"
|
|
7400
|
+
}
|
|
7401
|
+
},
|
|
7402
|
+
required: [
|
|
7403
|
+
"content",
|
|
7404
|
+
"location",
|
|
7405
|
+
"margin",
|
|
7406
|
+
"name",
|
|
7407
|
+
"type"
|
|
7408
|
+
]
|
|
7409
|
+
},
|
|
7355
7410
|
BlockPara: {
|
|
7356
7411
|
type: "object",
|
|
7357
7412
|
properties: {
|
|
@@ -7619,6 +7674,9 @@ var require_AstTree = __commonJS({
|
|
|
7619
7674
|
{
|
|
7620
7675
|
$ref: "#/definitions/BlockInput"
|
|
7621
7676
|
},
|
|
7677
|
+
{
|
|
7678
|
+
$ref: "#/definitions/BlockInclude"
|
|
7679
|
+
},
|
|
7622
7680
|
{
|
|
7623
7681
|
$ref: "#/definitions/BlockPara"
|
|
7624
7682
|
},
|
|
@@ -9447,6 +9505,9 @@ var require_PodliteDocument = __commonJS({
|
|
|
9447
9505
|
{
|
|
9448
9506
|
$ref: "#/definitions/BlockInput"
|
|
9449
9507
|
},
|
|
9508
|
+
{
|
|
9509
|
+
$ref: "#/definitions/BlockInclude"
|
|
9510
|
+
},
|
|
9450
9511
|
{
|
|
9451
9512
|
$ref: "#/definitions/BlockPara"
|
|
9452
9513
|
},
|
|
@@ -10046,6 +10107,58 @@ var require_PodliteDocument = __commonJS({
|
|
|
10046
10107
|
"type"
|
|
10047
10108
|
]
|
|
10048
10109
|
},
|
|
10110
|
+
BlockInclude: {
|
|
10111
|
+
type: "object",
|
|
10112
|
+
properties: {
|
|
10113
|
+
name: {
|
|
10114
|
+
type: "string",
|
|
10115
|
+
enum: [
|
|
10116
|
+
"include"
|
|
10117
|
+
]
|
|
10118
|
+
},
|
|
10119
|
+
type: {
|
|
10120
|
+
type: "string",
|
|
10121
|
+
enum: [
|
|
10122
|
+
"block"
|
|
10123
|
+
]
|
|
10124
|
+
},
|
|
10125
|
+
location: {
|
|
10126
|
+
$ref: "#/definitions/Location"
|
|
10127
|
+
},
|
|
10128
|
+
content: {
|
|
10129
|
+
type: "array",
|
|
10130
|
+
items: {
|
|
10131
|
+
$ref: "#/definitions/PodNode"
|
|
10132
|
+
}
|
|
10133
|
+
},
|
|
10134
|
+
margin: {
|
|
10135
|
+
type: "string"
|
|
10136
|
+
},
|
|
10137
|
+
config: {
|
|
10138
|
+
type: "array",
|
|
10139
|
+
items: {
|
|
10140
|
+
anyOf: [
|
|
10141
|
+
{
|
|
10142
|
+
$ref: "#/definitions/BrokenConfigItem"
|
|
10143
|
+
},
|
|
10144
|
+
{
|
|
10145
|
+
$ref: "#/definitions/ConfigItem"
|
|
10146
|
+
}
|
|
10147
|
+
]
|
|
10148
|
+
}
|
|
10149
|
+
},
|
|
10150
|
+
id: {
|
|
10151
|
+
type: "string"
|
|
10152
|
+
}
|
|
10153
|
+
},
|
|
10154
|
+
required: [
|
|
10155
|
+
"content",
|
|
10156
|
+
"location",
|
|
10157
|
+
"margin",
|
|
10158
|
+
"name",
|
|
10159
|
+
"type"
|
|
10160
|
+
]
|
|
10161
|
+
},
|
|
10049
10162
|
BlockPara: {
|
|
10050
10163
|
type: "object",
|
|
10051
10164
|
properties: {
|
|
@@ -10313,6 +10426,9 @@ var require_PodliteDocument = __commonJS({
|
|
|
10313
10426
|
{
|
|
10314
10427
|
$ref: "#/definitions/BlockInput"
|
|
10315
10428
|
},
|
|
10429
|
+
{
|
|
10430
|
+
$ref: "#/definitions/BlockInclude"
|
|
10431
|
+
},
|
|
10316
10432
|
{
|
|
10317
10433
|
$ref: "#/definitions/BlockPara"
|
|
10318
10434
|
},
|
|
@@ -12791,7 +12907,8 @@ var require_grammar = __commonJS({
|
|
|
12791
12907
|
config: [],
|
|
12792
12908
|
location: location()
|
|
12793
12909
|
};
|
|
12794
|
-
}, peg$c159 = function(vmargin, name,
|
|
12910
|
+
}, peg$c159 = function(vmargin, name, first_line, content_rest) {
|
|
12911
|
+
const content4 = (first_line === "\n" ? "" : first_line) + content_rest;
|
|
12795
12912
|
return {
|
|
12796
12913
|
margin: vmargin,
|
|
12797
12914
|
type: "block",
|
|
@@ -13712,6 +13829,41 @@ var require_grammar = __commonJS({
|
|
|
13712
13829
|
}
|
|
13713
13830
|
return s0;
|
|
13714
13831
|
}
|
|
13832
|
+
function peg$parseraw_text_until_eol() {
|
|
13833
|
+
var s0, s1, s2, s3;
|
|
13834
|
+
s0 = peg$currPos;
|
|
13835
|
+
s1 = peg$currPos;
|
|
13836
|
+
s2 = [];
|
|
13837
|
+
s3 = peg$parseText();
|
|
13838
|
+
if (s3 !== peg$FAILED) {
|
|
13839
|
+
while (s3 !== peg$FAILED) {
|
|
13840
|
+
s2.push(s3);
|
|
13841
|
+
s3 = peg$parseText();
|
|
13842
|
+
}
|
|
13843
|
+
} else {
|
|
13844
|
+
s2 = peg$FAILED;
|
|
13845
|
+
}
|
|
13846
|
+
if (s2 !== peg$FAILED) {
|
|
13847
|
+
s1 = input.substring(s1, peg$currPos);
|
|
13848
|
+
} else {
|
|
13849
|
+
s1 = s2;
|
|
13850
|
+
}
|
|
13851
|
+
if (s1 !== peg$FAILED) {
|
|
13852
|
+
s2 = peg$parseEOL();
|
|
13853
|
+
if (s2 !== peg$FAILED) {
|
|
13854
|
+
peg$savedPos = s0;
|
|
13855
|
+
s1 = peg$c34();
|
|
13856
|
+
s0 = s1;
|
|
13857
|
+
} else {
|
|
13858
|
+
peg$currPos = s0;
|
|
13859
|
+
s0 = peg$FAILED;
|
|
13860
|
+
}
|
|
13861
|
+
} else {
|
|
13862
|
+
peg$currPos = s0;
|
|
13863
|
+
s0 = peg$FAILED;
|
|
13864
|
+
}
|
|
13865
|
+
return s0;
|
|
13866
|
+
}
|
|
13715
13867
|
function peg$parseerror_para() {
|
|
13716
13868
|
var s0, s1, s2, s3, s4, s5;
|
|
13717
13869
|
s0 = peg$currPos;
|
|
@@ -17425,7 +17577,7 @@ var require_grammar = __commonJS({
|
|
|
17425
17577
|
if (s4 !== peg$FAILED) {
|
|
17426
17578
|
s5 = peg$parseemptyline();
|
|
17427
17579
|
if (s5 === peg$FAILED) {
|
|
17428
|
-
s5 =
|
|
17580
|
+
s5 = peg$parseraw_text_until_eol();
|
|
17429
17581
|
}
|
|
17430
17582
|
if (s5 !== peg$FAILED) {
|
|
17431
17583
|
s6 = peg$currPos;
|
|
@@ -17488,7 +17640,7 @@ var require_grammar = __commonJS({
|
|
|
17488
17640
|
}
|
|
17489
17641
|
if (s6 !== peg$FAILED) {
|
|
17490
17642
|
peg$savedPos = s0;
|
|
17491
|
-
s1 = peg$c159(s1, s3, s6);
|
|
17643
|
+
s1 = peg$c159(s1, s3, s5, s6);
|
|
17492
17644
|
s0 = s1;
|
|
17493
17645
|
} else {
|
|
17494
17646
|
peg$currPos = s0;
|
|
@@ -18268,6 +18420,7 @@ var require_grammar = __commonJS({
|
|
|
18268
18420
|
"defn",
|
|
18269
18421
|
"formula",
|
|
18270
18422
|
"head",
|
|
18423
|
+
"include",
|
|
18271
18424
|
"input",
|
|
18272
18425
|
"item",
|
|
18273
18426
|
"markdown",
|
|
@@ -24963,10 +25116,14 @@ var require_package = __commonJS({
|
|
|
24963
25116
|
"../podlite-schema/package.json"(exports, module) {
|
|
24964
25117
|
module.exports = {
|
|
24965
25118
|
name: "@podlite/schema",
|
|
24966
|
-
version: "0.0.
|
|
25119
|
+
version: "0.0.26",
|
|
24967
25120
|
description: "AST tools for Podlite markup language",
|
|
24968
25121
|
main: "./src/index.ts",
|
|
24969
25122
|
license: "MIT",
|
|
25123
|
+
funding: {
|
|
25124
|
+
type: "opencollective",
|
|
25125
|
+
url: "https://opencollective.com/podlite"
|
|
25126
|
+
},
|
|
24970
25127
|
files: [
|
|
24971
25128
|
"lib/**/*.js",
|
|
24972
25129
|
"lib/**/*.d.ts",
|