Why markdown lines pasted from vim to github gets linearized

I just started with the github and markdown, created my first README.md.
Edited text in vim and wanted see how it would be previewed in the github. However my line breaks were "deleted" (several lines became one long line).

How can I fix this problem?

This is what I did:

  • Edited text in vim

    > My email(space)(space)
    > My name(space)(space)

  • Pasted text into the github code editor and checked the preview
  • My text became

    > My email(space)> My name


  • Make sure those two spaces are preserved when you copy uour text from vim to the GitHub editor.

    If those spaces are there, then your newline will be preserved in the preview.

    链接地址: http://www.djcxy.com/p/20180.html

    上一篇: 括号,更改文件扩展名的默认语法

    下一篇: 为什么从vim粘贴到github的markdown行被线性化了