@podlite/schema 0.0.33 → 0.0.35

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.
Files changed (46) hide show
  1. package/CHANGELOG.podlite +142 -0
  2. package/esm/blocks-helpers.d.ts +1 -1
  3. package/esm/blocks-helpers.js +2 -2
  4. package/esm/blocks-helpers.js.map +1 -1
  5. package/esm/exportHtml.js +11 -5
  6. package/esm/exportHtml.js.map +1 -1
  7. package/esm/exportMarkdown.d.ts +15 -0
  8. package/esm/exportMarkdown.js +341 -0
  9. package/esm/exportMarkdown.js.map +1 -0
  10. package/esm/grammar.js +3 -3
  11. package/esm/grammar.js.map +1 -1
  12. package/esm/grammarfc.js +2 -2
  13. package/esm/index.d.ts +2 -0
  14. package/esm/index.js +24 -0
  15. package/esm/index.js.map +1 -1
  16. package/esm/pluggableParser.d.ts +1 -0
  17. package/esm/pluggableParser.js +5 -0
  18. package/esm/pluggableParser.js.map +1 -1
  19. package/esm/plugin-group-items.js +8 -5
  20. package/esm/plugin-group-items.js.map +1 -1
  21. package/esm/plugin-items.js +23 -0
  22. package/esm/plugin-items.js.map +1 -1
  23. package/esm/types.d.ts +2 -0
  24. package/esm/writerMarkdown.d.ts +11 -0
  25. package/esm/writerMarkdown.js +20 -0
  26. package/esm/writerMarkdown.js.map +1 -0
  27. package/lib/blocks-helpers.d.ts +1 -1
  28. package/lib/blocks-helpers.js +2 -2
  29. package/lib/exportHtml.js +11 -5
  30. package/lib/exportMarkdown.d.ts +15 -0
  31. package/lib/exportMarkdown.js +346 -0
  32. package/lib/grammar.js +3 -3
  33. package/lib/grammarfc.js +2 -2
  34. package/lib/index.d.ts +2 -0
  35. package/lib/index.js +27 -1
  36. package/lib/pluggableParser.d.ts +1 -0
  37. package/lib/pluggableParser.js +5 -0
  38. package/lib/plugin-group-items.js +8 -5
  39. package/lib/plugin-items.js +23 -0
  40. package/lib/types.d.ts +2 -0
  41. package/lib/writerMarkdown.d.ts +11 -0
  42. package/lib/writerMarkdown.js +25 -0
  43. package/package.json +23 -8
  44. package/schema/AstTree.json +12 -0
  45. package/schema/PodliteDocument.json +12 -0
  46. package/CHANGELOG.md +0 -126
@@ -1683,6 +1683,9 @@
1683
1683
  "number"
1684
1684
  ]
1685
1685
  },
1686
+ "checked": {
1687
+ "type": "boolean"
1688
+ },
1686
1689
  "type": {
1687
1690
  "type": "string",
1688
1691
  "enum": [
@@ -2685,6 +2688,15 @@
2685
2688
  "title": {
2686
2689
  "type": "string"
2687
2690
  },
2691
+ "foldedLevels": {
2692
+ "type": "object",
2693
+ "additionalProperties": false,
2694
+ "patternProperties": {
2695
+ "^[0-9]+$": {
2696
+ "type": "boolean"
2697
+ }
2698
+ }
2699
+ },
2688
2700
  "content": {
2689
2701
  "$ref": "#/definitions/TocList"
2690
2702
  }
@@ -1683,6 +1683,9 @@
1683
1683
  "number"
1684
1684
  ]
1685
1685
  },
1686
+ "checked": {
1687
+ "type": "boolean"
1688
+ },
1686
1689
  "type": {
1687
1690
  "type": "string",
1688
1691
  "enum": [
@@ -2685,6 +2688,15 @@
2685
2688
  "title": {
2686
2689
  "type": "string"
2687
2690
  },
2691
+ "foldedLevels": {
2692
+ "type": "object",
2693
+ "additionalProperties": false,
2694
+ "patternProperties": {
2695
+ "^[0-9]+$": {
2696
+ "type": "boolean"
2697
+ }
2698
+ }
2699
+ },
2688
2700
  "content": {
2689
2701
  "$ref": "#/definitions/TocList"
2690
2702
  }
package/CHANGELOG.md DELETED
@@ -1,126 +0,0 @@
1
- # @podlite/schema
2
-
3
- ## Upcoming
4
-
5
- ## 0.0.32
6
-
7
- - improve support for `A<>`
8
- - made AST processing safest
9
-
10
- ## 0.0.30
11
-
12
- - added `mode` support for parser
13
-
14
- ## 0.0.26
15
-
16
- - add `location` from original node to `mkToc` helper
17
- - safe block id creation
18
- - fix the abbreviated block when its content starts with `=`
19
-
20
- ## 0.0.25
21
-
22
- - added initial support for `=include` block
23
-
24
- ## 0.0.23
25
-
26
- - added alignment for column contents
27
-
28
- ## 0.0.21
29
-
30
- - improve caption element
31
-
32
- ## 0.0.20
33
-
34
- - fix schema for `L<>`
35
-
36
- ## 0.0.19
37
-
38
- - add `=formula`, `F<>` support
39
-
40
- ## 0.0.18
41
-
42
- - fix =toc links #6
43
- - fix :allow context for nested blocks
44
- - improved support for parentheses for markup codes
45
-
46
- ## 0.0.17
47
-
48
- - fix linking when publish
49
- - fix types for L<> code
50
-
51
- ## 0.0.16
52
-
53
- - support for `=picture` block
54
-
55
- ## 0.0.14
56
-
57
- - fix parse `=alias` and `=config` directives
58
- - improve brackets support for C<> and L<> codes
59
- - support for `=toc` block
60
- - support for `=markdown` block
61
-
62
- ## 0.0.13
63
-
64
- - refactor
65
- - add plugin functions
66
-
67
- ## 0.0.12
68
-
69
- - add helpers,
70
- - fix parser's grammars
71
- - add tests
72
- - update deps
73
-
74
- ## 0.0.11
75
-
76
- - extend API by context for react component wrap function
77
-
78
- ## 0.0.10
79
-
80
- - fix helper for mkBlock
81
- - add Strikethrough inline element support
82
- - add JSX handler for plugins
83
-
84
- ## 0.0.9
85
-
86
- - fix null elements in
87
-
88
- ## 0.0.8
89
-
90
- - fix null elements in AST
91
-
92
- ## 0.0.7
93
-
94
- - add ast interator module (ast-inerator)
95
- - add AST nodes for image and caption objects, add mkImage and mkCaption helpers
96
- - add mkBlockItem, getTextContentFromNode and query blocks from AST helpers
97
- - add id prop to Node type
98
- - toc elements support
99
-
100
- ## 0.0.6
101
-
102
- - list of supported schemas is explicit now
103
- - add support for create "blankline" blocks (mkBlankline)
104
- - enhance debug
105
-
106
- ## 0.0.5
107
-
108
- - update deps
109
-
110
- ## 0.0.4
111
-
112
- - fix npm package
113
- - add sometypes of blocks
114
- - update schema
115
-
116
- ## 0.0.3
117
-
118
- - update deps
119
-
120
- ## 0.0.2
121
-
122
- - update deps
123
-
124
- ## 0.0.1
125
-
126
- -- init import