Hi,
I’ve done a quick test and analysed the code for Jetpack.
Seems like it uses the post_content_filtered field which is usually left blank, and which my plugin doesn’t take care of.
I’ll investigate the issue to find how to solve it, shouldn’t be too hard so maybe it could be fixed in the next version.
Thanks for the quick reply and thanks for looking into the issue.
Hi,
the issue should be fixed following these steps:
- upgrade to version 3.1.1, which has been released today. This is required for the solution to work.
- copy and paste the following code to your theme’s functions.php:
add_action('duplicate_post_pre_copy', 'duplicate_post_unload_markdown');
add_action('duplicate_post_post_copy', 'duplicate_post_load_markdown');
function duplicate_post_unload_markdown(){
if(class_exists('WPCom_Markdown')){
WPCom_Markdown::get_instance()->unload_markdown_for_posts();
}
}
function duplicate_post_load_markdown(){
if(class_exists('WPCom_Markdown')){
WPCom_Markdown::get_instance()->load_markdown_for_posts();
}
}
Can you confirm that the issues is fixed?
Thanks in advance
Yep, that fixed it. Thanks!
Glad to hear that!
Thanks for reporting!
Hi @alexknight,
version 3.2, out now, should be Markdown-compatible “out of the box”, no need of the code above.
Feel free to write if you experience any issue!