"be consistent" | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | 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. <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
updatecodelink 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
In reply to Good Intentions: Wikisyntax for the Monastery by LanX
|
|