Where can I find a good MediaWiki Markup parser in PHP?

I would hack the MediaWiki code a bit, but I realized that it would not be necessary if I could get an independent parser.

Can anyone help me with this?

Thanks.

+5
source share
2 answers

Ben Hughes is right. It is very difficult to obtain the right, especially if you want to parse real articles from large wikis, like Wikipedia itself, with an accuracy of 100%. This is often discussed on the wikitech mailing list, and no alternative parser has come up with a product despite numerous attempts.

-, , , AST ( ). , HTML.

-, wikitext , HTML. HTML. wikitext HTML, HTML wikitext.

, , HTML .

, MediaWiki wikitext. , . MediaWiki - (-:

. - . MediaWiki, -. - PHP, . , , , . , , MediaWiki.

, , , , , .

: 25984 -

+6

. - ( php), . , .

, , .

+3

All Articles