Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 157 Stack Exchange communities.

What is meta?
Here's how it works:
  1. Any Stack Exchange user can ask a question
  2. The community provides support, votes on ideas, and reports bugs
  3. Your voice helps shape the way Stack Exchange operates

When I first included a summary in my profile for use with my user card popup, using this syntax:

<!-- summary: A short summary of myself goes here! -->

### Heading

Full About Me bio... (whether it starts with a heading or not is irrelevant)

My About Me section looked like this:

Before

Which was fine and all. Well, I just updated my bio, and it now looks like this:

After

That extra padding on top of the About Me box appears to be an empty <p></p>. Is it because of the <!-- summary --> comment?

For the record, removing one blank line doesn't help:

<!-- summary: A short summary of myself goes here! -->
### Heading

Full About Me bio...

And if I put the first line of my full bio on the same line as the summary, the empty paragraph disappears but then I lose formatting of things like headings:

<!-- summary: A short summary of myself goes here! -->### Not a heading anymore

Full About Me bio...
share|improve this question
1  
I'm not sure if it's been reported here before, but the same issue happens when I add a language-all hint to the top of a post; an empty <p></p> appears in its place. – BoltClock's a Unicorn Feb 15 '12 at 19:34
4  
As a temporary work around, you can put the summary at the end, and it'll still work. – Grace Note Feb 15 '12 at 20:42
up vote 14 down vote accepted

This was my fault; it's fixed in the next build. In this recent bugfix, I forgot to consider HTML comments that start at the beginning of the text, i.e. aren't really preceded by newlines.

Since Markdown has the concept of "block-level HTML comments" (which is something I like to bitch about, but actually helps us here), here's what should happen:

  • Markdown Source

    <!-- foo: bar -->
    
    some text
    
  • Rendered HTML

    <!-- foo: bar -->
    
    <p>some text</p>
    
  • Sanitized HTML

    <p>some text</p>
    

With the broken recognition of block-level comments at the beginning of the text, here's what happened instead:

  • Markdown Source

    <!-- foo: bar -->
    
    some text
    
  • Rendered HTML

    <p><!-- foo: bar --></p>
    
    <p>some text</p>
    
  • Sanitized HTML

    <p></p>
    
    <p>some text</p>
    

Ironically, to work around this issue until the next build, you can just add two newlines at the top of the post.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .