Repository navigation
feat: code blocks start on ```, stay apart, and Shift+Down steps out - #114
Merged
Merged
Conversation
Typing ``` makes a code block at once and it no longer merges with a block next to it. Enter always adds a code line; Shift+Down leaves the block, taking the code after the caret with it.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Change
```on an empty body line makes a code block at once, without Enter or Space.data-block-start, whichcodeBlockLines, the CSS, sanitize and copy all read. Moving, duplicating, inserting and splitting lines keep the marker in the right place.Shift+Downin code leaves the block onto a body line below it. The text after the caret and the code lines under it come out too (leaveCodeBlockinapp/lines.js).Also releases v0.2.0.
Testing
node --test tests/*.test.js: 252 pass.```, Enter,Shift+DownandAlt+Up/Downbetween touching blocks in the installer.