@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.
@@ -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 || atBoundary) {
112
+ } else if (adjacent || lineStart) {
114
113
  out += "
";
115
114
  lineStart = false;
116
115
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@effected/markdown",
3
- "version": "0.8.0",
3
+ "version": "0.8.1",
4
4
  "private": false,
5
5
  "description": "CommonMark and GFM markdown parse, edit and transform schemas for Effect",
6
6
  "keywords": [