[Wikitext-l] From Wikitech-l (Determining the behavior ofapostrophes)
Mark Clements
gmane at kennel17.co.uk
Thu Nov 29 15:20:43 UTC 2007
----- Original Message -----
From: "Steve Bennett" <stevagewp at gmail.com>
To: "Wikitext-l" <wikitext-l at lists.wikimedia.org>
Sent: 29 November 2007 05:42
Subject: [Wikitext-l] From Wikitech-l (Determining the behavior
ofapostrophes)
> On 11/29/07, Mark Jaroski <mark at geekhive.net> wrote:
> > I thought code was an extension-like preprocessor tag.
>
> Afaik it's just a whitelisted HTML tag. It's treated that way by
> setupAttributeWhitelist() and removeHTMLtags() in Sanitizer.php.
>
> Interestingly, something (Tidy?) goes out of its way to support this
> behaviour. This code:
> ---
> foo<b>blah
>
> blah
> ---
> renders as:
>
> ----
> <p>foo<b>blah</b></p>
>
> <p><b>blah</b></p>
> ----
>
> So whereas an unclosed ''' is closed at the end of the paragraph (by
> doAllQuotes()), an unclosed <b> is closed then explicitly re-opened in
> the next paragraph (and then closed, re-opened etc).
>
> I hadn't appreciated that difference between ''' and <b> before.
>
imho there should be no difference between them. If they behave
differently, then that is a bug...
- Mark Clements (HappyDog)
More information about the Wikitext-l
mailing list