我正在使用维基百科api从维基百科获取信息。 在html中有什么转换维基文本吗?
我尝试过mediacloth但是我的效果不好
答案 0 :(得分:1)
看看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 :(得分:1)
还尝试wikicloth http://code.google.com/p/wikicloth/它实现了其他人不喜欢表格的东西。
答案 2 :(得分:-1)
您可以下载static HTML dump维基百科。