diff options
author | Julius Härtl <jus@bitgrid.net> | 2022-05-27 18:34:41 +0300 |
---|---|---|
committer | Max <max@nextcloud.com> | 2022-06-07 14:55:44 +0300 |
commit | 4112068233fb16770ce211d036971668b86338a7 (patch) | |
tree | 9a082c4b1284f6a9b6f2c74f6ca37e24c7474864 /src/extensions | |
parent | eda6538eb4d70e3c0e3196a303f3b203a6cd6b7e (diff) |
Use two spaces instead of backslash to indicate hard break in markdown
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'src/extensions')
-rw-r--r-- | src/extensions/Markdown.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/extensions/Markdown.js b/src/extensions/Markdown.js index c7faa5caf..7eae9c83a 100644 --- a/src/extensions/Markdown.js +++ b/src/extensions/Markdown.js @@ -79,6 +79,7 @@ const createMarkdownSerializer = ({ nodes, marks }) => { ), serialize(content, options) { return this.serializer.serialize(content, { ...options, tightLists: true }) + .split('\\\n').join(' \n') .split('\\[').join('[') .split('\\]').join(']') }, |