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 -