ngsankha / codejudge

host coding competitions anywhere, anytime
http://sankhs.com/codejudge
MIT License
90 stars 53 forks source link

Newline Problem #28

Closed ticketa closed 11 years ago

ticketa commented 11 years ago

Hi, I noticed when we want to create a problem, one Enter is not enough to create a newline, so I must press Enter button twice. In problem.php, I tried to change <?php echo($selected['text']);?> to <?php echo( <pre>".$selected['text']."</pre>");?>, so we can display the preview as we type.

And in index.php, I tried to change echo($out); to echo("<pre>".$out."</pre>");. But there's a problem, it automatically convert twice Enter into p HTML tag, so there's extra newline. How to remove the p tag?

ngsankha commented 11 years ago

Its the markdown syntax that is used for editing. Read more about it here: http://en.wikipedia.org/wiki/Markdown

Closing this as wontfix.