Clone wiki

info.bliki.wiki / Mediawiki2PlainText

How to convert Mediawiki text to plain text.

The PlainTextConverter can convert simple Mediawiki texts to plain text.

Example:

package info.bliki.wiki;

import info.bliki.wiki.filter.PlainTextConverter;
import info.bliki.wiki.model.WikiModel;

public class PlainTextConverterExample {
    public static final String TEST = "This is a [[Hello World]] '''example'''";

    public static void main(String[] args) {
        WikiModel wikiModel = new WikiModel("https://www.mywiki.com/wiki/${image}", "https://www.mywiki.com/wiki/${title}");
        String plainStr = wikiModel.render(new PlainTextConverter(), TEST);
        System.out.print(plainStr);
    }
}

Updated