views:

147

answers:

3

Hi i'm using a wikipedia api for getting info from wikipedia. Is there anything for convert wiki text in html?

I've tried mediacloth but i doesn't works well

thanks

+1  A: 

Take a look at marker.

>> require 'marker'
>> m = Marker.parse "== heading ==\nparagraph with '''bold''' text"
>> puts m.to_html
<h2>heading</h2>
<p>paragraph with <b>bold</b> text</p>
GuyCorngood
A: 

Try also wikicloth http://code.google.com/p/wikicloth/ it implements some things that others haven't like tables.

dave_in_atl
A: 

You could download a static HTML dump of Wikipedia.

Andrew Grimm