Title: Markup Markdown + Postie
Last modified: July 8, 2023

---

# Markup Markdown + Postie

 *  Resolved [volpik](https://wordpress.org/support/users/volpik/)
 * (@volpik)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/markup-markdown-postie/)
 * Hello,
 * I am usign postie to import wordpress arthicle by email.
 * I have tried to use your plugin, but unfortunately the article is not processed
   by the markdown engine.
 * Is it possible to use your plug in in combination with the postie plugin?
 * Many thank in advance

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Pierre-Henri Lavigne](https://wordpress.org/support/users/peter202202/)
 * (@peter202202)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/markup-markdown-postie/#post-16879708)
 * Hello [@volpik](https://wordpress.org/support/users/volpik/)
 * First thank you for using my plugin, at least giving a try. I appreciate 🙂
 * After testing on my side, I had to modify a bit the setup for both of them to
   work together. Some _div_ tags and _breaklines_ inside the post_content were 
   prevented the text to be parsed properly as markdown.
 * **For the PostIE plugin**
 * From the settings panel, under the “_Message_” tab, I choosed 
   `Preferred Text
   Type : Plain Text `And later at the bottom `Filter newlines : No`
 * **Theme custom filter**
 * Inside my theme’s functions.php file I added a quick filter to remove all the
   default html _postie_ tags:
 *     ```wp-block-code
       add_filter( 'wp_insert_post_data' , 'filter_post_data' , 99, 2 );
       function filter_post_data( $data , $postarr ) {
       	$data[ 'post_content' ] = preg_replace( '#(<div class="postie-[a-zA-Z0-9-_]+">|<\/div>)#', '', $data[ 'post_content' ] );
       	return $data;
       }
       ```
   
 * You may have to adjust the filter to your needs.
 * **Email**
 * I haven’t tested all the features, I performed my tests by sending emails using
   Thunderbird and a Gmail account. Basically I was typing raw markdown inside the
   body of my email:
 * ![](https://i0.wp.com/www.pierre-henri-lavigne.info/wp-content/uploads/2023/07/
   Screenshot_20230708_190822.png?ssl=1)
 * Using the tweaks explained earlier should be enough to save the data in a more
   appropriate format and be parsed as markdown. The render was :
 * ![](https://i0.wp.com/www.pierre-henri-lavigne.info/wp-content/uploads/2023/07/
   Screenshot_20230708_191020.png?ssl=1)
 * Hope that will work for you as well.
 * Kind regards,
 * Peter
 *  Plugin Author [Pierre-Henri Lavigne](https://wordpress.org/support/users/peter202202/)
 * (@peter202202)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/markup-markdown-postie/#post-16919722)
 * [@volpik](https://wordpress.org/support/users/volpik/) I hope this message finds
   you well. I haven’t heard from you for a while so I’m gonna closed this ticket
   for now. Feel free to open a new one if you are still stuck with PostIE.
 * Kind Regards,
 * Peter

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Markup Markdown + Postie’ is closed to new replies.

 * ![](https://ps.w.org/markup-markdown/assets/icon.svg?rev=2691249)
 * [Markup Markdown](https://wordpress.org/plugins/markup-markdown/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/markup-markdown/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/markup-markdown/)
 * [Active Topics](https://wordpress.org/support/plugin/markup-markdown/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/markup-markdown/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/markup-markdown/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Pierre-Henri Lavigne](https://wordpress.org/support/users/peter202202/)
 * Last activity: [2 years, 10 months ago](https://wordpress.org/support/topic/markup-markdown-postie/#post-16919722)
 * Status: resolved