Look for a possible simple wikicode to html parser
Closed, ResolvedPublic

Description

When the user switch to the preview mode a simple preview will be shown. To do this, a simple parser that converts the basic wikitext markup to html is needed.

Instead of writing it from scratch I would preferablly find and already existing one, so let's discuss here about the possible parsers and renderers you find

This is a suggestion:

http://goessner.net/articles/wiky/

I know it's alla based on regex rules but it seems easy to read and to hack

I can help with this if you need me

We, ofcourse, need you! :)

This is a suggestion:

http://goessner.net/articles/wiky/

I know it's alla based on regex rules but it seems easy to read and to hack

I think this is how far the best available parser and works good too! Maybe @davidev can help by suggesting something?

To add the wiky.js for parsing wikitext to HTML, I need to find a way to get the current value of the #wpTextbox1 textarea in the WikiEditor and I'm unable to do that.

Have you tried this?

No. Okay. Thanks. It was this simple :( . I was going through the JS that triggers when someone clicks Preview.

grigoletti added a comment.EditedJun 27 2016, 8:21 PM

Status needed to check if it's working. In particular, how is the math working?

atundo added a subscriber: atundo.Jun 28 2016, 11:12 AM
This comment was removed by atundo.
srijancse closed this task as Resolved.Jul 13 2016, 2:27 PM
This comment was removed by srijancse.

I'm using this parser currently. Working on making the parser work.