|Don't ask to ask, just ask|
Good Intentions: Wikisyntax for the Monasteryby LanX (Archbishop)
|on Jan 27, 2016 at 23:44 UTC||Need Help??|
One of my New Year's resolutions is to release more code, even if it doesn't meet my quality expectations yet... ¹
I'm using this hack for some time now...
It's a nodelet hack which automatically transforms my wiki-ish syntax into monk-code on submit.
This is done transparently because after a reload the monk-code in the textarea is translated back to the original wiki syntax.
Please note that you can still safely use and blend PM-markup as long as you use lowercase characters. The automatically transformed code is always uppercase.
The biggest benefit is that paragraphs <P> are automatically included between two newlines...
...but I added some more goodies over the years. (see examples further down.)
To activate this for yourself you just need to include the following code into your free nodelet.
I hope the mechanism of the code is obvious enough to be adapted to your needs.
codelink corrected, including another codearea changed the index to 3
¹) there is a long To-Do list left, but the idea of open source is to attract collaborators and/or forks ... right? ;-)