diff options
author | Ferdinand Thiessen <rpm@fthiessen.de> | 2022-07-09 23:38:00 +0300 |
---|---|---|
committer | Ferdinand Thiessen <rpm@fthiessen.de> | 2022-07-15 13:34:00 +0300 |
commit | 1b7d876711be312a5230cb4e970eb086c71700fb (patch) | |
tree | e1733fe50594a655de39bdb2f1e2cdf152d0cce3 /src/nodes | |
parent | ad23fc82b7bd1a8d49693f015bffc0f387d06f26 (diff) |
Ensure whitespaces in markdown files are preserved
Adjusted test cases to test whitespace characters are
not touched.
Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
Diffstat (limited to 'src/nodes')
-rw-r--r-- | src/nodes/BulletList.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nodes/BulletList.js b/src/nodes/BulletList.js index ac32fd040..12a6d61f9 100644 --- a/src/nodes/BulletList.js +++ b/src/nodes/BulletList.js @@ -29,6 +29,9 @@ import { listInputRule } from '../commands/index.js' * Only there we know the user is not trying to create a task list. */ const BulletList = TiptapBulletList.extend({ + parseHTML() { + return this.parent().map(rule => Object.assign(rule, { preserveWhitespace: true })) + }, addInputRules() { return [ |