C# Class to convert WikiMedia Markup to HTML?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I need to be able to take Wikipedia WikiText markup and convert to HTML.
Haven't found anything really useful yet. Anyone?
Thanks,
Peter
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top