Closed VincentVW closed 6 years ago
Thanks, the code blocks are just the default draft-js example code blocks now so it has the same issues. Something like this could be implemented to handle it better: https://github.com/SamyPesse/draft-js-code
draft-js-code def looks like a nice set of additional utils, I don't think it relates to the line spacing though. When I compare https://draftjs.org/ to the Geist editor then the first does not add vertical spacing on new lines. The diff is that the first imports draft.css which has a line to set margins to 0.
Could it be that you're not importing anything of draft's css? https://draftjs.org/docs/advanced-topics-issues-and-pitfalls.html#missing-draft-css
If you directly use that draft.css it should be wrapped it in a namespace though, that default draft.css file def would cause side effects on the rest of your styling.
@VincentVW Ah yes you are right, they have some global styles included there that remove all default styling. I didn't apply that everywhere so it wasn't applied in the draft editor. This should fix it: https://github.com/bryanph/Geist/commit/17bc091a7053769c611ce153896141f08ba36eac . Thanks for the issue :man_dancing:
See screenshot below.
When copy pasting the code snippets are mostly wrapped in one \