Hi folks,
I'm attempting to parse some Wiki-style markup using the Javascript Creole Wiki Markup Parser as found here. I'm attempting to extend the parser to parse div tags like so:
Markup: << any_content_here <<
HTML: <div class="left">content</div
>
Markup: >> any_content_here >>
HTML: <div class="right">content</div>
Markup: ^^ any_content_here ^^
HTML: <div class="horz">content</div>
The parser uses regular expressions to parse the markup but regex is definitely not my strong point, and as the js file has virtually no comments I'm finding it particularly difficult to edit. I've posted on the guy's blog asking for some help with this but as the post is about 2 years old I'm not expecting to hear back anytime soon...
Any help with customising this, or if someone could point out a javascript parser that already supports div's, it would be most appreciated.