Skip to content

Commit

Permalink
fix: preserve spaces in the block's content
Browse files Browse the repository at this point in the history
  • Loading branch information
tiensonqin committed May 24, 2021
1 parent eed2e9d commit 9cc6e3d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
"ignore": "^5.1.8",
"is-svg": "4.2.2",
"jszip": "^3.5.0",
"mldoc": "0.6.16",
"mldoc": "0.6.18",
"path": "^0.12.7",
"react": "^17.0.2",
"react-dom": "^17.0.2",
Expand Down
2 changes: 1 addition & 1 deletion src/main/frontend/components/block.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -1280,7 +1280,7 @@
2))
elem (if heading-level
(keyword (str "h" heading-level))
:div.inline)]
:span.inline)]
(->elem
elem
(merge
Expand Down
2 changes: 2 additions & 0 deletions src/main/frontend/components/block.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
max-width: 100%;
overflow: initial;
cursor: text;
white-space: pre-wrap;
overflow-wrap: break-word;
word-break: break-word;

img {
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3860,10 +3860,10 @@ mkdirp@^0.5.4, mkdirp@~0.5.1:
dependencies:
minimist "^1.2.5"

[email protected].16:
version "0.6.16"
resolved "https://registry.yarnpkg.com/mldoc/-/mldoc-0.6.16.tgz#6cad0c9ce0015c92a630d7dc4c4fb2835f34eb98"
integrity sha512-9f9hCPaxIjd5bFugR1pgcH6m5Fwjnme9eGVty/uUch+k81wdey+fCzbp8szazP2J3Eneu5Z/181Tre501mpwwQ==
[email protected].18:
version "0.6.18"
resolved "https://registry.yarnpkg.com/mldoc/-/mldoc-0.6.18.tgz#a1c0b76d193ef9cd98c2763de3e8414cd83b9368"
integrity sha512-Bg460Jdp4kBgmAYUdVtWG7AZSQ0EWVNsiWQ/7mljVLQp5yyERcySzw1nM4Hs5eZ5IKStzl6qz4m6XN/q11AUJw==
dependencies:
yargs "^12.0.2"

Expand Down

0 comments on commit 9cc6e3d

Please sign in to comment.