防止在gist.github.com?

时间:2018-01-17 19:43:07

标签: github gist

编辑:Youtube视频演示了这个问题:

https://www.youtube.com/watch?v=0D0rNfUhiKQ

编辑:Pasting在这里至关重要。当我粘贴从文本编辑器复制的10行时,gist.github.com会将其拼写为1行。

我把它粘贴到gist.github.com

return (
  <div className="App">
    <h1>Quantum Pilot</h1>
      <div className="content">
        <div className="box"><About/></div>
        <div className="box">HnnYoutube</div>
        <div className="box">{buy}</div>
        <div className="box">{mykeys}</div>
      </div>
      <MetamaskPrompt enabled={this.state.metamask}/>
  </div>
);

10行,但是 - gist.github.com变成1行,间隔很小。如果我点击&#34;软包装&#34;,它会占用2行。

为什么我的新线被销毁?

1 个答案:

答案 0 :(得分:1)

确保您在要点中使用反引号,以保留格式:

````
your code
your code
...
your code
````

这样,您将保留最初格式化的那些行。

注意:您的要点应以.md分机(降价)命名。

见我的:testwrap.md

test wrap