nus-cs2113-AY1920S2 / forum

4 stars 0 forks source link

Markdown syntax #88

Closed JTWang2000 closed 4 years ago

JTWang2000 commented 4 years ago

When I am implementing the UG, I want to write things in different lines so I use </p>. This works when I display in Github:

This is the code for UG: image

This is the display when I see it on github or my IDE: image

However, when I see it on the website of my project, the

will displayed: image

I am confused why this happens. I also wonder how to add return in markdown.

damithc commented 4 years ago

The parser used for GitHub preview is likely to be different from the one used to generate the GitHub pages. To ensure there is a line break in the generated html page, try using two consecutive blank lines instead of one.

rdimaio commented 4 years ago

GitHub uses a version of Markdown called GitHub Flavored Markdown (GFM), which implements things in a slightly different way than standard Markdown. This section in particular talks about the <p> HTML tag.

JTWang2000 commented 4 years ago

@damithc @rdimaio Thank you for the reply. I will try to add line break by using two consecutive blank lines instead of one.