Dr Fragen in the operating room

Markdown previewing in Radio

·

The latest enhancement to the Markdown tool was perhaps the simplest to accomplish. [Patrick Ritchie][1] asked how he could see a preview of his post without having to open a separate window. I’d never really thought about it before.
A little digging found that the DWHP pulls the text of the posts from the `radio.macros.weblogPostForm` script. In digging through this script all that was needed was to add a callback to the `user.radio.callbacks.renderItem` callback, which was already installed. Giving it the correct syntax and violá. A preview of your post in the DWHP without a second window.
Now it’s up to UserLand to provide the new callbacks. Which will happen in due course.
[1]: http://radio.weblogs.com/0101131/