@mdream/js 1.0.0-beta.10 → 1.0.0-beta.11

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 CHANGED
@@ -13,7 +13,7 @@ This package consolidates functionality previously split across `@mdream/core`,
13
13
  ## Installation
14
14
 
15
15
  ```bash
16
- pnpm add @mdream/js
16
+ pnpm add @mdream/js@beta
17
17
  ```
18
18
 
19
19
  ## Entry Points
@@ -240,6 +240,10 @@ function createMarkdownProcessor(options = {}, resolvedPlugins = [], tagOverride
240
240
  const currentContent = state.buffer.join("").trimStart();
241
241
  const newContent = currentContent.slice(lastYieldedLength);
242
242
  lastYieldedLength = currentContent.length;
243
+ if (state.buffer.length > 1) {
244
+ state.buffer.length = 0;
245
+ state.buffer.push(currentContent);
246
+ }
243
247
  return newContent;
244
248
  }
245
249
  return {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mdream/js",
3
3
  "type": "module",
4
- "version": "1.0.0-beta.10",
4
+ "version": "1.0.0-beta.11",
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",