Title: Adding Markdown support to Plugins: Paragraphs
Last modified: August 21, 2016

---

# Adding Markdown support to Plugins: Paragraphs

 *  Resolved [jezza101](https://wordpress.org/support/users/jezza101/)
 * (@jezza101)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/adding-markdown-support-to-plugins-paragraphs/)
 * I have added markdown support to a meta field in a custom plugin using the suggestion
   [here](https://github.com/Automattic/jetpack/issues/155).
 * `WPCom_Markdown::get_instance()->transform( $content )`
 * This works fine with the exception of paragraphs (I understand these are inserted
   by inserting two or more spaces and pressing return).
 * In the above example, $content is simply the contents of a post meta field collected
   from a text area. I then echo the result of the transform. Note that I do set
   unslash to false as I am using the content of my meta form directly.
 * Paragraphs aren’t showing up, and whats more I can’t even use html p tags! Any
   suggestions?
 * Many thanks.
 * [https://wordpress.org/plugins/jetpack/](https://wordpress.org/plugins/jetpack/)

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

 *  Thread Starter [jezza101](https://wordpress.org/support/users/jezza101/)
 * (@jezza101)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/adding-markdown-support-to-plugins-paragraphs/#post-4692751)
 * I worked it out.
 * Turns out this is less to do with JetPack and more with how WordPress handles
   paragraphs and sanitisation of meta fields.
 * I added the solution to my post on the topic [here](http://jez.re/3). Hope that
   is useful to someone in the future 🙂
 * Cheers.
 *  Plugin Contributor [Richard Archambault](https://wordpress.org/support/users/richardmtl/)
 * (@richardmtl)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/adding-markdown-support-to-plugins-paragraphs/#post-4692871)
 * Great post, thanks!

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

The topic ‘Adding Markdown support to Plugins: Paragraphs’ is closed to new replies.

 * ![](https://ps.w.org/jetpack/assets/icon.svg?rev=2819237)
 * [Jetpack - WP Security, Backup, Speed, & Growth](https://wordpress.org/plugins/jetpack/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/jetpack/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/jetpack/)
 * [Active Topics](https://wordpress.org/support/plugin/jetpack/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/jetpack/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/jetpack/reviews/)

## Tags

 * [markdown](https://wordpress.org/support/topic-tag/markdown/)

 * 2 replies
 * 2 participants
 * Last reply from: [Richard Archambault](https://wordpress.org/support/users/richardmtl/)
 * Last activity: [12 years, 2 months ago](https://wordpress.org/support/topic/adding-markdown-support-to-plugins-paragraphs/#post-4692871)
 * Status: resolved