@effected/markdown 0.8.0 → 0.8.1
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/internal/stringify.js +1 -2
- package/package.json +1 -1
package/internal/stringify.js
CHANGED
|
@@ -106,11 +106,10 @@ const escapeText = (value, context, atLineStart, mdx, followingText, nonTextFoll
|
|
|
106
106
|
const char = value[index];
|
|
107
107
|
if (char === "\n") {
|
|
108
108
|
const adjacent = value[index - 1] === "\n" || value[index + 1] === "\n";
|
|
109
|
-
const atBoundary = index === 0 || index === value.length - 1;
|
|
110
109
|
if (context.singleLine) {
|
|
111
110
|
out += " ";
|
|
112
111
|
lineStart = false;
|
|
113
|
-
} else if (adjacent ||
|
|
112
|
+
} else if (adjacent || lineStart) {
|
|
114
113
|
out += " ";
|
|
115
114
|
lineStart = false;
|
|
116
115
|
} else {
|