Last modified: 2006-06-08 20:12:10 UTC
I tried marking some text in the [[:b:ru:Ruby|Russian wikibook on Ruby programming
language]] with the <kbd> tag, but unlike usually with harmless html tags (<u>, <tt>, <code
>, etc.), it was processed (escaped) into text, appearing as "<kbd>text</kbd>" on the
To solve the issue completely, the developers must learn more about the HTML and ensure that
all valid tags for text markup are recognised as such by the wikitext rendering engine.
First of all, be aware that wikitext is not HTML. An HTML element might *not*
have a corresponding representation in wikitext, and the HTML itself might not
be whitelisted in the parser/sanitiser.
Second of all, the developers do *not* need "to learn more about the HTML"
(sic). The tone of the latter half of the report is rather aggressive for no reason.
As to what's described, use <code> or <tt> for the same effect, or prefix the
lines with a single space. Whitelisting the tag itself might be viable, however.
NOTE: Some other useful tags are not accepted, either: <address>, <acronym>, <abbr> , <
In reply to:
>As to what's described, use <code> or <tt> for the same effect, or prefix the
>lines with a single space. Whitelisting the tag itself might be viable, however.
The appropriate use of various HTML tags is important for visual differentiation
(through CSS) of semantically different blocks of text... for those who care. Since we
hope to publish our books in the future, proper formatting is necessary. We _do_ need
to separate <kbd> and <code>, rather than just use <tt> for both.
Usage of <span class="_something_"> tags is an option, but replacing them later with
proper, tidier markup is laborious, because the closing </span> are all similar for
the different blocks of text. Hence this request for improvement.
That is why I proposed it as a temporary workaround, said, "we could add it" and
left the request open.
Many thanks :-)
Probably should dupe this to 671.
*** This bug has been marked as a duplicate of 671 ***