Posted In WordPress

Embed MarkDown in WordPress Posts

Easily embed markdown into WordPress posts and pages.

There’s lots of plugins to enable your entire post to be composed of Markdown, but what if you only want a piece of your post to be in Markdown? I shortcode sure would come in handy.

This is where the Inline Markdown plugin comes in to play. Just write your WordPress post as usual, and wrap any Markdown content in the [md] shortcode.

As an example, here’s a portion of the README from my Rootdip WordPress theme, that’s written in Markdown. Inline Markdown is an excellent tool for displaying entire README’s or portions of them from GitHub repos.

The md shortcode starts immediately following this line:

Other Considerations

A majority of the images included in RootDip are from the iconic icon set by P.J. Onori. Images from Iconic are the tag, sticky post identifier, link post format identifier, status post format identifier, quote post format identifier and left and right arrows. I will likely use more images from Iconic as I add additional features/post formats to RootDip.

How To Contribute

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

And that’s it, end of the md shortcode is on the line above. I used the md shortcode like so to achieve that:

Pretty easy to do and really useful for embedding markdown from GitHub readme’s directly in your WordPress posts.

Well, now what?

Work with Me

I'm available for hire and always taking new clients, big and small. Got a project or an idea you'd like to discuss? Startup plan but no developer to make it happen? Just get in touch, I'd love to see if I can help you out!

Leave some Feedback

Got a question or some updated information releavant to this post? Please, leave a comment! The comments are a great way to get help, I read them all and reply to nearly every comment. Let's talk. :) is proudly hosted by DigitalOcean