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.
<script src='?abspart=1;displaytype=displaycode;node_id=1153804;part=3'></script>
(UPDATE: Additionally the "Free Nodelet" must be activated at Nodelet Settings)
I hope the mechanism of the code is obvious enough to be adapted to your needs.
---Code---
---Demo---
Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!
update
codelink corrected, including another codearea changed the index to 3
footnotes
¹) there is a long To-Do list left, but the idea of open source is to attract collaborators and/or forks ... right? ;-)
bugfixes
- surrounded activation of JS events with if(textarea) { ... } to avoid pages without posting forms (like RAT)