473,322 Members | 1,538 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

C# Class to convert WikiMedia Markup to HTML?

I need to be able to take Wikipedia WikiText markup and convert to HTML.
Haven't found anything really useful yet. Anyone?
Thanks,
Peter

--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net
Mar 5 '07 #1
1 3953
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

Mar 5 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

38
by: Jukka K. Korpela | last post by:
As well all know, valid markup is important... but when trying to find a convincing modern argument in favor of this, I found pages like http://www.htmlhelp.com/tools/validator/reasons.html which...
4
by: Ted | last post by:
I have a SQL Server 2000 table with a few fields of "text" data type that contain rich text. I have to downstream this data and the recipient cannot handle rich text. I need to figure out a way...
23
by: Harry Haller | last post by:
How can I change the value in a css class? For instance, with I.E., I want to change the value in the class span.arr from middle to 0.2em. The value of middle is OK for most other browsers. I...
1
by: gary | last post by:
hi guys: I want to convert asp.net control into html markup or literal control, so that I can write them into a empty aspx page. Is there any way to do it? HtmlForm.InnerHtml doesn't support...
10
by: annalisa | last post by:
I really need some help with langauge conversion to HTML. My translators are translating into Word and I need to convert Word to HTML. It's been awhile since I've worked with Unicode and know that...
8
by: geoffbache | last post by:
I have some marked up text and would like to convert it to plain text, by simply removing all the tags. Of course I can do it from first principles but I felt that among all Python's markup tools...
11
by: Tim Arnold | last post by:
hi, I've got lots of xhtml pages that need to be fed to MS HTML Workshop to create CHM files. That application really hates xhtml, so I need to convert self-ending tags (e.g. <br />) to plain html...
5
by: Kindler Chase | last post by:
<cross-posted to m.p.d.l.csharp> I'm looking for recommendations on a 3rd party .NET library that will allow me to convert a web page to PDF on the fly. The pdf will be a brochure with images...
2
by: _Who | last post by:
Hope I'm not posting twice. Posted this a while ago but it does not show in my ng. I have a .htm file that shows in an iframe. I need the .htm to use a style class from the master. The...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.