On Sun, 4 Mar 2007 16:59:05 -0800, Peter Bromberg [C# MVP]
<pb*******@yahoo.yabbadabbadoo.comwrote:
>I need to be able to take Wikipedia WikiText markup and convert to HTML.
Haven't found anything really useful yet. Anyone?
Thanks,
Peter
1 Find an existing WikiText parser in another language and convert it
to C#. Java is pretty close to C#, or else whatever other language
you are most comfortable with.
2 Find an open source Wikimedia program and look at the WikiText to
HTML conversion in there. It won't be in C#, but it will probably be
easily convertible.
2 Find a generalised parser in C# and adapt it for WikiText markup.
3 Write your own. It is not that difficult to wtite a parser. There
is a lot of advice available on the best ways to write a parser in any
language.
4 Cheat. Send your WikiText to Wikipedia, or some other Wiki, as a
preview of an edit and grab the returned HTML. Extract the relevant
bit of HTML from the whole HTML page.
rossum