there4 / markdown-resume

Generate a responsive CSS3 and HTML5 resume with Markdown, with optional PDF output.
MIT License
1.77k stars 519 forks source link

Trailing spaces required for linebreak #74

Closed spawnia closed 6 years ago

spawnia commented 6 years ago

In the header information section, i get some unexpected/undocumented behaviour.

So at first, i took the template from the example and edited some text - all was good: image

Then, i removed the trailing spaces (which you can see marked underlined as green by the markdown linter i am using) and this happened: image

So next, i tried adding new lines in between, which gave me too much spacing inbetween. image

Also, a single trailing space does not do it, i has to be 2 or more trailing spaces. I think there is a good chance that other people might run into this issue as well, so i would suggest either:

  1. Change the behaviour so that this list shows up in a newline regardless of trailing spaces
  2. Explicitely mention that you can have simple linebreaks by adding two trailing spaces

While it is not really intuitive, option 2 seems like it is actually a feature. For example, i found that i can control the way linebreaks are handled in paragraphs of text more fine-grained because of this: image

craig-davis commented 6 years ago

Is this anything outside of the expected line break behavior of Markdown?

spawnia commented 6 years ago

I was not aware of this. In that case, markdown-resume works perfectly - thank you.