@lobehub/editor 1.5.0 → 1.5.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.
|
@@ -231,6 +231,12 @@ export var CommonPlugin = (_class = /*#__PURE__*/function (_KernelPlugin) {
|
|
|
231
231
|
ctx.appendLine(' ');
|
|
232
232
|
}
|
|
233
233
|
});
|
|
234
|
+
|
|
235
|
+
// Register markdown writer for linebreak nodes (soft line breaks)
|
|
236
|
+
markdownService.registerMarkdownWriter('linebreak', function (ctx) {
|
|
237
|
+
// In markdown, soft line breaks are represented as two spaces followed by a newline
|
|
238
|
+
ctx.appendLine(' \n');
|
|
239
|
+
});
|
|
234
240
|
}
|
|
235
241
|
}, {
|
|
236
242
|
key: "onInit",
|
package/package.json
CHANGED