Skip to content

Commit 3e8c6f4

Browse files
authored
Update style.md
1 parent bc5ee72 commit 3e8c6f4

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

learners/style.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,3 +153,18 @@ Below are links to guidance for activating line wrapping in several popular text
153153
* [Vim](https://stackoverflow.com/questions/36950231/auto-wrap-lines-in-vim-without-inserting-newlines)
154154
* [VS Code](https://stackoverflow.com/questions/31025502/how-can-i-switch-word-wrap-on-and-off-in-visual-studio-code)
155155

156+
### A note about line breaks
157+
In Markdown, two spaces at the end of a line is interpreted as a line break (i.e. converted to `<br/>` in the output HTML).
158+
When ending a sentence in your source files, make sure to avoid leaving two spaces at the end of the line unless you want a line break to appear after it in your HTML output.
159+
See the example below.
160+
161+
```markdown
162+
This sentence is followed by two space characters in the source Markdown.
163+
But this sentence is not.
164+
Look where this sentence appears in the rendered output below.
165+
```
166+
167+
This sentence is followed by two space characters in the source Markdown.
168+
But this sentence is not.
169+
Look where this sentence appears in the rendered output below.
170+

0 commit comments

Comments
 (0)