Repository navigation
Commit 08ea89f
committed
fix(web): keep Shift+Enter inside a fence as a newline
The fence branch of the key handler skipped Shift+Enter, so it fell through to
the generic paragraph split, which cut the code block into two fences. Inside
a fence Shift+Enter now makes a line at the current indent like Enter, and on
a bare opening-fence line it opens the block. Cmd/Ctrl+Enter still sends.1 parent a3a952a commit 08ea89f
1 file changed
Lines changed: 6 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1184 | 1184 | | |
1185 | 1185 | | |
1186 | 1186 | | |
1187 | | - | |
1188 | | - | |
1189 | | - | |
1190 | | - | |
| 1187 | + | |
| 1188 | + | |
| 1189 | + | |
| 1190 | + | |
| 1191 | + | |
| 1192 | + | |
1191 | 1193 | | |
1192 | 1194 | | |
1193 | 1195 | | |
1194 | | - | |
1195 | 1196 | | |
1196 | 1197 | | |
1197 | 1198 | | |
| |||
0 commit comments