@mdream/js 1.0.6 → 1.0.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.
@@ -295,10 +295,10 @@ const tagHandlers = {
295
295
  return `\n${prefix.trimEnd()}\n${prefix}`;
296
296
  }
297
297
  }
298
- if ((node.depthMap[25] || 0) > 0) {
298
+ if ((node.depthMap[25] || 0) > 0 && !isInsideTableCell(node)) {
299
299
  const lastEntry = state.buffer.at(-1);
300
300
  const lastChar = lastEntry?.charAt(lastEntry.length - 1) || "";
301
- if (lastChar && lastChar !== " " && lastChar !== "\n") return " ";
301
+ if (lastChar && lastChar !== " " && lastChar !== "\n") return `\n\n${state.listIndent}`;
302
302
  }
303
303
  } },
304
304
  [36]: {},
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mdream/js",
3
3
  "type": "module",
4
- "version": "1.0.6",
4
+ "version": "1.0.7",
5
5
  "description": "JavaScript HTML-to-Markdown engine for mdream. Escape hatch for hooks and edge runtimes.",
6
6
  "author": {
7
7
  "name": "Harlan Wilton",