@d10f/asciidoc-astro-loader 0.0.12 → 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.
@@ -61,7 +61,6 @@ var transformAsciidocCallout = (options) => {
61
61
  };
62
62
 
63
63
  // src/lib/shiki/transformers/transformerPrompt.ts
64
- import "test";
65
64
  var transformerPrompt = (options) => {
66
65
  return (node) => {
67
66
  const language = node.getAttribute("language");
@@ -89,7 +88,11 @@ var transformerPrompt = (options) => {
89
88
  lastChild.children[0].value.match(/\s+\\n\s*$/)
90
89
  ) {
91
90
  skipNext = true;
92
- 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
+ );
93
96
  }
94
97
  }
95
98
  if (skipCurrent) return;
package/dist/index.cjs CHANGED
@@ -785,7 +785,6 @@ async function setDocument(doc, converters, templateEngine, { parseData, store }
785
785
  }
786
786
 
787
787
  // src/lib/shiki/transformers/transformerPrompt.ts
788
- var import_node_test = require("test");
789
788
  var transformerPrompt = (options) => {
790
789
  return (node) => {
791
790
  const language = node.getAttribute("language");
@@ -813,7 +812,11 @@ var transformerPrompt = (options) => {
813
812
  lastChild.children[0].value.match(/\s+\\n\s*$/)
814
813
  ) {
815
814
  skipNext = true;
816
- 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
+ );
817
820
  }
818
821
  }
819
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-AZCYI3XV.js";
7
+ } from "./chunk-NYOV2AHU.js";
8
8
  import {
9
9
  slugify,
10
10
  splitFilenameComponents
@@ -90,7 +90,6 @@ var transformAsciidocCallout = (options) => {
90
90
  };
91
91
 
92
92
  // src/lib/shiki/transformers/transformerPrompt.ts
93
- var import_node_test = require("test");
94
93
  var transformerPrompt = (options) => {
95
94
  return (node) => {
96
95
  const language = node.getAttribute("language");
@@ -118,7 +117,11 @@ var transformerPrompt = (options) => {
118
117
  lastChild.children[0].value.match(/\s+\\n\s*$/)
119
118
  ) {
120
119
  skipNext = true;
121
- 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
+ );
122
125
  }
123
126
  }
124
127
  if (skipCurrent) return;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  transformAsciidocCallout,
3
3
  transformerPrompt
4
- } from "../../../chunk-AZCYI3XV.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.12",
3
+ "version": "0.0.14",
4
4
  "description": "An Astro collections loader for Asciidoc files",
5
5
  "author": "D10f",
6
6
  "license": "MIT",