Reputation: 66945
What I generally need is simple - opensource library with function that will turn given wiki mark up string into html. If you can write such function - please post it here.
It shall be tolerant to html objects inserts like YouTube videos, mathml and TeX inside that string (much alike math.stackexchange)
So is there any such function in some JavaScript library?
Here is a little sample example to try on.
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
Upvotes: 6
Views: 207
Reputation: 6309
Try this, http://goessner.net/articles/wiky/ it can also do the reverse operation.
Upvotes: 1