@d10f/asciidoc-astro-loader 0.0.13 → 0.0.14

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.
@@ -88,7 +88,11 @@ var transformerPrompt = (options) => {
88
88
  lastChild.children[0].value.match(/\s+\\n\s*$/)
89
89
  ) {
90
90
  skipNext = true;
91
- lastChild.children[0].value = "";
91
+ lastChild.children[0].value = // @ts-expect-error property "children" does exist
92
+ lastChild.children[0].value.replace(
93
+ /\s+\\n\s*$/,
94
+ ""
95
+ );
92
96
  }
93
97
  }
94
98
  if (skipCurrent) return;
package/dist/index.cjs CHANGED
@@ -812,7 +812,11 @@ var transformerPrompt = (options) => {
812
812
  lastChild.children[0].value.match(/\s+\\n\s*$/)
813
813
  ) {
814
814
  skipNext = true;
815
- lastChild.children[0].value = "";
815
+ lastChild.children[0].value = // @ts-expect-error property "children" does exist
816
+ lastChild.children[0].value.replace(
817
+ /\s+\\n\s*$/,
818
+ ""
819
+ );
816
820
  }
817
821
  }
818
822
  if (skipCurrent) return;
package/dist/index.js CHANGED
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  transformAsciidocCallout,
6
6
  transformerPrompt
7
- } from "./chunk-GG5JBQCP.js";
7
+ } from "./chunk-NYOV2AHU.js";
8
8
  import {
9
9
  slugify,
10
10
  splitFilenameComponents
@@ -117,7 +117,11 @@ var transformerPrompt = (options) => {
117
117
  lastChild.children[0].value.match(/\s+\\n\s*$/)
118
118
  ) {
119
119
  skipNext = true;
120
- lastChild.children[0].value = "";
120
+ lastChild.children[0].value = // @ts-expect-error property "children" does exist
121
+ lastChild.children[0].value.replace(
122
+ /\s+\\n\s*$/,
123
+ ""
124
+ );
121
125
  }
122
126
  }
123
127
  if (skipCurrent) return;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  transformAsciidocCallout,
3
3
  transformerPrompt
4
- } from "../../../chunk-GG5JBQCP.js";
4
+ } from "../../../chunk-NYOV2AHU.js";
5
5
  import "../../../chunk-2UGTFP4R.js";
6
6
  export {
7
7
  transformAsciidocCallout,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@d10f/asciidoc-astro-loader",
3
- "version": "0.0.13",
3
+ "version": "0.0.14",
4
4
  "description": "An Astro collections loader for Asciidoc files",
5
5
  "author": "D10f",
6
6
  "license": "MIT",