@san-siva/blogkit-md 0.3.16 → 0.3.18

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/dist/index.js CHANGED
@@ -332,7 +332,11 @@ function renderNode({
332
332
  const items = node.children.map((item, index) => {
333
333
  const para = item.children.find((c) => c.type === "paragraph");
334
334
  const children = (para == null ? void 0 : para.type) === "paragraph" ? /* @__PURE__ */ jsx2("p", { children: renderPhrasingContent(para.children) }) : /* @__PURE__ */ jsx2("p", {});
335
- return { id: String(index), isChecked: item.checked === true, children };
335
+ return {
336
+ id: String(index),
337
+ isChecked: item.checked === true,
338
+ children
339
+ };
336
340
  });
337
341
  return /* @__PURE__ */ jsx2(CheckList, { items, hasMarginUp: true, hasMarginDown: true }, key);
338
342
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@san-siva/blogkit-md",
3
- "version": "0.3.16",
3
+ "version": "0.3.18",
4
4
  "description": "Converts markdown files into JSX blog posts for Blogkit",
5
5
  "main": "./dist/index.js",
6
6
  "exports": {
@@ -21,7 +21,7 @@
21
21
  "fix": "eslint . --config eslint.config.ts --fix"
22
22
  },
23
23
  "dependencies": {
24
- "@san-siva/blogkit": "^1.1.39",
24
+ "@san-siva/blogkit": "^1.1.41",
25
25
  "@san-siva/stylekit": "^1.0.13",
26
26
  "next": "^16.0.10",
27
27
  "react": "^19.0.0",
@@ -163,7 +163,11 @@ function renderNode({
163
163
  ) : (
164
164
  <p />
165
165
  );
166
- return { id: String(index), isChecked: item.checked === true, children };
166
+ return {
167
+ id: String(index),
168
+ isChecked: item.checked === true,
169
+ children,
170
+ };
167
171
  });
168
172
  return <CheckList key={key} items={items} hasMarginUp hasMarginDown />;
169
173
  }
@@ -205,9 +209,12 @@ function renderSection(
205
209
  counters: Counters,
206
210
  key = -1
207
211
  ): React.ReactNode {
208
- const title = section.titleNodes.length > 0
209
- ? <p>{renderPhrasingContent(section.titleNodes)}</p>
210
- : '';
212
+ const title =
213
+ section.titleNodes.length > 0 ? (
214
+ <p>{renderPhrasingContent(section.titleNodes)}</p>
215
+ ) : (
216
+ ''
217
+ );
211
218
  return (
212
219
  <BlogSection key={key} title={title}>
213
220
  {renderNodes(section.nodes, counters)}