Steve Bennett wrote:
Would it be reasonable to restrict the use of
<pre> to:
- General paragraph texts, but not internal or external link captions
- Image captions
Perhaps anywhere else it could be either treated as equivalent to
<nowikI>, ignored, or rendered literally?
Thoughts?
Steve
IMHO we should differentiate between inline tags and block tags. As
we're translating wikitext into xhtml, using its same type of
restriction makes sense.
So an image caption would onmly be allowed to contain inline tags. <pre>
is a block tag.
We could:
a) Render <pre> literally [blinking] in red so the user perceives
there's a syntax error.
b) Refuse to save (bad).
c) Use a <span with pre-like format (is it really useful? It means a
different )
d) Move the <pre> to the next position where it makes sense.
c: means different behaviours in inline and block contexts. But in some
contexts that tag changes from inline to block.
d: Is not too deterministic for other implementations, but i think is
the method that Tidy would use.