Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The last empty in code block disappear #1265

Closed
deathrush opened this issue Aug 13, 2019 · 2 comments
Closed

The last empty in code block disappear #1265

deathrush opened this issue Aug 13, 2019 · 2 comments
Assignees
Labels
🦋 optimization Improve the existing behavior
Projects

Comments

@deathrush
Copy link

deathrush commented Aug 13, 2019

Versions

Step 1: write test file bellow:

### test file

\```js
const a = 'b'

\```

there is an empty after `const a = 'b'`

Step 2: change to source code mode and change back.

Expect

Last blank line is reserved

Actually

The last line disappear

  • Mark Text: 0.15.0
  • Operating system: Windows 7
@Jocs
Copy link
Member

Jocs commented Aug 14, 2019

@deathrush 为什么需要保留一个空行呢?

@deathrush
Copy link
Author

因为代码快里就有这个空行

@Jocs Jocs added the 🦋 optimization Improve the existing behavior label Aug 15, 2019
@Jocs Jocs self-assigned this Aug 15, 2019
@Jocs Jocs changed the title 代码块中最后一行是空行时这行在展示时消失 The last empty in code block disappear Aug 17, 2019
@Jocs Jocs added this to TO-DO in 0.16.0 Aug 17, 2019
@Jocs Jocs moved this from TO-DO to In Progress in 0.16.0 Sep 25, 2019
Jocs pushed a commit that referenced this issue Sep 25, 2019
@Jocs Jocs mentioned this issue Sep 25, 2019
@Jocs Jocs moved this from In Progress to Review in 0.16.0 Sep 25, 2019
@Jocs Jocs closed this as completed in 1eb7908 Sep 26, 2019
@Jocs Jocs moved this from Review to Done in 0.16.0 Sep 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🦋 optimization Improve the existing behavior
Projects
No open projects
0.16.0
  
Done
Development

No branches or pull requests

2 participants