[pmwiki-users] back to teasers :)

Patrick R. Michaud pmichaud at pobox.com
Fri Apr 15 08:27:41 CDT 2005


On Fri, Apr 15, 2005 at 09:21:54AM -0400, Radu wrote:
> >> :pagename2:<first 50 chars in section #Net on pagename2>
> >
> >Would those characters be treated as markup?  I'm guessing "yes"
> >from your example display output, but...
> >
> >   - what if the first 50 chars contain a '[=' but not the closing '=]' ?
> >   - what if the 50th character is a backslash?
> >   - what if the first 50 chars contain newlines?
> >
> >If the characters aren't treated as markup, do we make any attempt
> >to remove the markup from the extracted chars, or just leave it 'as-is'?
> 
> My initial thought was to strip all markup and just present plain text. 

Note that 'strip all markup' can be an expensive operation if
done dynamically (i.e., at the time the page is found/rendered).  However, 
perhaps we could store a stripped version of the page at the time the 
page is saved.  That might be *really* useful for this as well as
RSS feeds -- I'll probably play with that soon.

> Any 
> markup may interfere with the rendering on the page that gets the listing. 
> Newlines would stop the reporting. 

"Newlines", "blank lines", or "paragraphs"?  They're not identical.

Also, I should note that for search results many people would prefer
to see the text surrounding the search terms instead of the first
part of the page, so we should allow for that too.

Pm



More information about the pmwiki-users mailing list