Markdown top-tip: visible double-space line-breaks


If you like to use double spaces for line breaks in markdown (I do), a recent update to the grammar allows you to style that line-break and make it visible. No syntax themes I know use that yet (except for my not-so-very good salmon-on-ice), so I put this in my stylesheet:

atom-text-editor::shadow {
  .gfm {
    .linebreak:after {
      font-family: 'Octicons Regular';
      font-weight: normal;
      font-style: normal;
      display: inline-block;
      line-height: 1;
      -webkit-font-smoothing: antialiased;
      text-decoration: none;
      font-size: 1rem;
      width: 1rem;
      height: 1rem;
      content: "\f0a9"; //found no better icon in octicons
      color: @syntax-invisible-character-color;

Looks like this:


Thanks! I use the double-space-linebreak very often, and I really missed the visualization of it.

Sublime Text did a different background color for double spaces, that worked nicely too.


You can also use the unicode return symbol: