Markdown rendering in Radio

How would you do it?
Radio has callback code for the weblogPostForm. This seems like a logical place to start:
|
2. User presses the Post or Publish button
3. Callback executes the tool script that:
a. copies the post in raw Markdown syntax into a safe place
|
b. renders a copy using the syntax rules to produce the HTML
|
c. save the result
|