quetzai / wikimodel

Automatically exported from code.google.com/p/wikimodel
0 stars 0 forks source link

MediaWiki - Not support <pre class="XXX"> #207

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
here is my code:
public static String asWiki(String text) {
        if(null==text){
            return null;
        }
        IWikiParser parser = new CommonWikiParser();
        StringReader reader = new StringReader(text);
        IWikiPrinter printer = new WikiPrinter();
        IWemListener listener = new PrintListener(printer, true, true);
        try {
            parser.parse(reader, listener);
        } catch (WikiParserException e) {
            return e.getMessage();
        }
        return printer.toString();
    }

and  input:
<pre class="java">
java
</pre>

What is the expected output? What do you see instead?
expected:
<div class="wikimodel-document">
<pre class="java">
java
</pre>
</div>

see instead:
<div class='wikimodel-document'>
<p>&lt;pre class="java"&gt;
java
&lt;/pre&gt;</p>
</div>

What version of the product are you using? On what operating system?
Using the version in /trunk/

On linux.

Please provide any additional information below.

i wanna support syntaxhighlighter.
i read issue 56.
did you fixed the bug?

Original issue reported on code.google.com by Ph...@golgi.mrphone.tk on 14 Jul 2011 at 2:54

GoogleCodeExporter commented 8 years ago

Original comment by thomas.m...@gmail.com on 14 Jul 2011 at 10:12