Notice: Function get_block_patterns was called incorrectly. Could not register file "/sites/thefragens.com/files/wp-content/themes/powder/patterns/content/content-logos-quaternary.php" as a block pattern (invalid slug "powder/content-logos-quaternary.") Please see Debugging in WordPress for more information. (This message was added in version 6.0.0.) in /sites/thefragens.com/files/wp-includes/functions.php on line 6121

Notice: Function get_block_patterns was called incorrectly. Could not register file "/sites/thefragens.com/files/wp-content/themes/powder/patterns/content/content-social-numbers-quaternary..php" as a block pattern (invalid slug "powder/content-social-numbers-quaternary.") Please see Debugging in WordPress for more information. (This message was added in version 6.0.0.) in /sites/thefragens.com/files/wp-includes/functions.php on line 6121
Markdown previewing in Radio – Surgical Diversions
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/