7

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

Damjan Pavlica
  • 31,277
  • 10
  • 71
  • 76
Luca Romagnoli
  • 12,145
  • 30
  • 95
  • 157

3 Answers3

1

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>
1

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

-1

You could download a static HTML dump of Wikipedia.

Andrew Grimm
  • 78,473
  • 57
  • 200
  • 338