Simple text parser for wikitext

Hey ,

Does anyone knows about parsing wikitext into simple text??

I know wikitext gem but it converts the data into html format.

Or does anyone knows how to fetch content from wikipedia using
wikimedia api into simple text format and not in wikitext format?