Preformatted text has an extra newline

eibaan's Avatar

eibaan

11 Mar, 2009 11:31 AM

While I really like the fact that you're using Markdown for formatting, I think, there's a small formatting issue with preformatted text. Something like

A paragraph.

    Preformatted text.

Another Paragraph.

is rendered like this:

<pre>
<code>Preformatted text.</code>
</pre>

which adds an empty line after </code> and before </pre>. It seems, that the browser compensates the first empty line. TextMate's markdown converter renders the example like this:

<pre><code>Preformatted text.</code>

which IMHO is the correct way. The same problem can be seen with this posting, btw.

I'm on OS X using Safari 4 beta, if that matter. The issue is also present with Firefox 3.

PS: A little margin after headlines wouldn't hurt, either.

  1. 1 Posted by System on 14 Mar, 2009 01:53 PM

    System's Avatar

    This discussion was assigned to Will, on ticket 41.

  2. 2 Posted by Nicole on 14 Mar, 2009 01:56 PM

    Nicole's Avatar

    We've currently got a ticket open for this issue and I'll let you know when we roll out the update. Thanks!

  3. Nicole closed this discussion on 07 Dec, 2009 10:11 PM.

Discussions are closed to public comments.
If you need help with Lighthouse please start a new discussion.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac