What is meta? ×
Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 131 Stack Exchange communities.

When browsing through questions on SO, the 2 line preview is often helpful, especially with poorly worded titles. However, when these first 2 lines contain code or bold text or some other formatting, it makes the text difficult to read. Is it possible to maintain the formatting for those lines?

I know there are problems with line breaks, but comments work well with limited formatting capabilities. If that can also be used for the 2 line preview, it would be very helpful. However, if that slows servers down considerably or has other negative consequences, that would be nice to know. I do prefer function over form(atting).

share|improve this question

1 Answer 1

up vote 6 down vote accepted

They're just inserting the text into a <div>, so it wouldn't be too hard to put some basic HTML/CSS in there also. It'd sure be nice if they didn't all look like run-on sentences.

share|improve this answer
    
Surely some processing of the HTML needs to be done before inserting into the div, just to ensure tags are correctly closed off and random short snippets aren't going to fubar the rest of the page layout? –  slugster Jun 11 '11 at 11:33
    
@slugster, yes, putting that basic stuff in there will take some processing, but they probably do it up front for every question, so it shouldn't be much of a hit. –  Lance Roberts Jun 11 '11 at 17:53

You must log in to answer this question.

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