| Issue 56: | Mediawiki parser <pre> error: not support attributes on the tag | |
| 3 people starred this issue and may be notified of changes. | Back to list |
I want to use some syntax highlighter to highlight code, so I add some
attributes in pre tag, like this:
<pre class="java">
class Person {
String name;
int age;
}
</pre>
I expect the parse result is the same with above.
But Mediawiki parser don't know the attribute-added pre tag, then the
parser result is:
<p><pre class="java">
class Person {
String name;
int age;
}
</pre></p>
|
|
|
|