sweble / sweble-wikitext

The Sweble Wikitext Components module provides a parser for MediaWiki's wikitext and an engine trying to emulate the behavior of a MediaWiki.
http://sweble.org/sites/swc-devel/develop-latest/tooling/sweble/sweble-wikitext
70 stars 27 forks source link

FmtNotYetImplementedError when rendering a redirect #65

Closed christiandmiddel closed 7 years ago

christiandmiddel commented 7 years ago

I have ran into another issue when a page is rendered that contains a redirect.

@Override
    public void visit(WtRedirect n) {
        // TODO: Implement
        throw new FmtNotYetImplementedError();
    }

To make a long story short I will put another pull request for further discussion...

christiandmiddel commented 7 years ago

I am unsure if this is fine for you. It would perfectly fit my use case. What I am completely unsure is there a better way to create the PageTitle object to be injected into the callback?

hannesd commented 7 years ago

The you did it looks correct. Merged in 99ebf4054f3698da77b685364f6e7630e137e1e5.