@incremark/react 0.3.6 → 0.3.7

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 (2) hide show
  1. package/dist/index.js +64 -4
  2. package/package.json +6 -6
package/dist/index.js CHANGED
@@ -2160,7 +2160,14 @@ function getItemBlockChildren(item) {
2160
2160
  return true;
2161
2161
  });
2162
2162
  }
2163
- var IncremarkList = ({ node }) => {
2163
+ var IncremarkList = ({
2164
+ node,
2165
+ components,
2166
+ customContainers,
2167
+ customCodeBlocks,
2168
+ codeBlockConfigs,
2169
+ blockStatus
2170
+ }) => {
2164
2171
  const Tag = node.ordered ? "ol" : "ul";
2165
2172
  const isTaskList = node.children?.some((item) => item.checked !== null && item.checked !== void 0);
2166
2173
  return /* @__PURE__ */ jsx13(Tag, { className: `incremark-list ${isTaskList ? "task-list" : ""}`, start: node.start || void 0, children: node.children?.map((item, index) => {
@@ -2183,7 +2190,17 @@ var IncremarkList = ({ node }) => {
2183
2190
  }
2184
2191
  return /* @__PURE__ */ jsxs4("li", { className: "incremark-list-item", children: [
2185
2192
  /* @__PURE__ */ jsx13(IncremarkInline, { nodes: inlineContent }),
2186
- blockChildren.map((child, childIndex) => /* @__PURE__ */ jsx13(React10.Fragment, { children: /* @__PURE__ */ jsx13(IncremarkRenderer, { node: child }) }, childIndex))
2193
+ blockChildren.map((child, childIndex) => /* @__PURE__ */ jsx13(React10.Fragment, { children: /* @__PURE__ */ jsx13(
2194
+ IncremarkRenderer,
2195
+ {
2196
+ node: child,
2197
+ components,
2198
+ customContainers,
2199
+ customCodeBlocks,
2200
+ codeBlockConfigs,
2201
+ blockStatus
2202
+ }
2203
+ ) }, childIndex))
2187
2204
  ] }, index);
2188
2205
  }) });
2189
2206
  };
@@ -2191,8 +2208,25 @@ var IncremarkList = ({ node }) => {
2191
2208
  // src/components/IncremarkBlockquote.tsx
2192
2209
  import React11 from "react";
2193
2210
  import { jsx as jsx14 } from "react/jsx-runtime";
2194
- var IncremarkBlockquote = ({ node }) => {
2195
- return /* @__PURE__ */ jsx14("blockquote", { className: "incremark-blockquote", children: node.children.map((child, index) => /* @__PURE__ */ jsx14(React11.Fragment, { children: /* @__PURE__ */ jsx14(IncremarkRenderer, { node: child }) }, index)) });
2211
+ var IncremarkBlockquote = ({
2212
+ node,
2213
+ components,
2214
+ customContainers,
2215
+ customCodeBlocks,
2216
+ codeBlockConfigs,
2217
+ blockStatus
2218
+ }) => {
2219
+ return /* @__PURE__ */ jsx14("blockquote", { className: "incremark-blockquote", children: node.children.map((child, index) => /* @__PURE__ */ jsx14(React11.Fragment, { children: /* @__PURE__ */ jsx14(
2220
+ IncremarkRenderer,
2221
+ {
2222
+ node: child,
2223
+ components,
2224
+ customContainers,
2225
+ customCodeBlocks,
2226
+ codeBlockConfigs,
2227
+ blockStatus
2228
+ }
2229
+ ) }, index)) });
2196
2230
  };
2197
2231
 
2198
2232
  // src/components/IncremarkTable.tsx
@@ -2320,6 +2354,32 @@ var IncremarkRenderer = ({
2320
2354
  }
2321
2355
  );
2322
2356
  }
2357
+ if (node.type === "list") {
2358
+ return /* @__PURE__ */ jsx19(
2359
+ IncremarkList,
2360
+ {
2361
+ node,
2362
+ components,
2363
+ customContainers,
2364
+ customCodeBlocks,
2365
+ codeBlockConfigs,
2366
+ blockStatus
2367
+ }
2368
+ );
2369
+ }
2370
+ if (node.type === "blockquote") {
2371
+ return /* @__PURE__ */ jsx19(
2372
+ IncremarkBlockquote,
2373
+ {
2374
+ node,
2375
+ components,
2376
+ customContainers,
2377
+ customCodeBlocks,
2378
+ codeBlockConfigs,
2379
+ blockStatus
2380
+ }
2381
+ );
2382
+ }
2323
2383
  const Component = getComponent(node.type, components);
2324
2384
  return /* @__PURE__ */ jsx19(Component, { node });
2325
2385
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@incremark/react",
3
- "version": "0.3.6",
3
+ "version": "0.3.7",
4
4
  "license": "MIT",
5
5
  "description": "High-performance streaming markdown renderer for React ecosystem.",
6
6
  "type": "module",
@@ -21,16 +21,16 @@
21
21
  "mermaid": "^10.0.0 || ^11.0.0",
22
22
  "katex": "^0.16.0",
23
23
  "react": ">=18.0.0",
24
- "@incremark/core": "0.3.6"
24
+ "@incremark/core": "0.3.7"
25
25
  },
26
26
  "dependencies": {
27
27
  "@antfu/utils": "^9.3.0",
28
28
  "shiki": "^3.20.0",
29
29
  "shiki-stream": "^0.1.4",
30
- "@incremark/shared": "0.3.6",
31
- "@incremark/theme": "0.3.6",
32
- "@incremark/icons": "0.3.6",
33
- "@incremark/devtools": "0.3.6"
30
+ "@incremark/devtools": "0.3.7",
31
+ "@incremark/shared": "0.3.7",
32
+ "@incremark/icons": "0.3.7",
33
+ "@incremark/theme": "0.3.7"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@shikijs/core": "^3.21.0",