Splitdown icon indicating copy to clipboard operation
Splitdown copied to clipboard

Splitdown + Jetpack Markdown

Open ghost opened this issue 11 years ago • 0 comments

I have installed Jetpack Markdown which allows to keep your posts in Markdown all the time - very useful. The problem with Splitdown is that it autmatically converts Markdown to HTML so that if you use Wordpress for iOS or other apps they download you end up with HTML again. I don't know PHP, but after playing around with splitdown.php a bit I changed line 117 from

wp_update_post( array( 'ID' => $post_id, 'post_content' => $html ) );

to

wp_update_post( array( 'ID' => $post_id, 'post_content' => $markdown ) );

and it seems to work. I guess this is a stupid or dangerous or otherwise negative approach, but I just don't know how to do this properly. If a switch could be added to turn off conversion, that would be great!

One addition: it would be great if HTML to MD conversion could remain active even when saving MD in order to automatically convert older HTML posts when opening them.

ghost avatar Mar 27 '14 11:03 ghost