Is there any JavaScript function in any library to turn a simple wiki tag (given as a multi-line string) into html?

What I usually need is just an open source library with a function that turns this wiki into an html string. If you can write such a function, please post it here.

It should be tolerant of html pasted objects like YouTube videos, mathml and TeX inside this line (which is very similar to math.stackexchange)

So, is there such a function in some JavaScript library?

The following is an example of an example.

Header 1 ======== Header 2 -------- # Header 1 # ## Header 2 ## ###### Header 6 =Header1?= = Header1? = <iframe src="http://player.vimeo.com/video/20344220" width="400" height="225" frameborder="0"></iframe><p><a href="http://vimeo.com/20344220">Drawing Inspiration</a> from <a href="http://vimeo.com/user153493">Wesley Louis</a> on <a href="http://vimeo.com">Vimeo</a>.</p> <iframe title="YouTube video player" width="640" height="390" src="http://www.youtube.com/embed/wV1FrqwZyKw" frameborder="0" allowfullscreen></iframe> * Abacus * answer * Bubbles 1. bunk 2. bupkis * BELITTLER 3. burper * Cunning 
+6
javascript string html parsing wiki
source share
2 answers

Would Markdown be okay?

See Markdown dingus .

+5
source share

Try it, http://goessner.net/articles/wiky/ it can also perform the reverse operation.

+1
source share

All Articles