Title: Markdown Shortcode
Author: JHoppe
Published: <strong>10 Meán Fómhair, 2015</strong>
Last modified: 21 Meán Fómhair, 2025

---

Search plugins

![](https://ps.w.org/markdown-shortcode/assets/banner-772x250.png?rev=1242839)

![](https://ps.w.org/markdown-shortcode/assets/icon-256x256.png?rev=1242839)

# Markdown Shortcode

 By [JHoppe](https://profiles.wordpress.org/jhoppe/)

[Download](https://downloads.wordpress.org/plugin/markdown-shortcode.zip)

 * [Details](https://ga.wordpress.org/plugins/markdown-shortcode/#description)
 * [Reviews](https://ga.wordpress.org/plugins/markdown-shortcode/#reviews)
 *  [Installation](https://ga.wordpress.org/plugins/markdown-shortcode/#installation)
 * [Development](https://ga.wordpress.org/plugins/markdown-shortcode/#developers)

 [Support](https://wordpress.org/support/plugin/markdown-shortcode/)

## Description

Damn simple [markdown]#via shortcode[/markdown] for wordpress.
 This plugin uses
[parsedown](http://parsedown.org/) and [highlight.js](http://highlightjs.org). Zero
configuration.

Write this into the editor:

    ```
    [markdown]  
    #h1
    ```

### h2

    ```
    text  
    ____source code (two ore more underscores will be replaced by empty spaces)  
    ____source code (two ore more underscores will be replaced by empty spaces)  

        `javascript
    source code
        `
    [/markdown]
    ```

and the shortcode content will be parsed with parsedown. Syntax highlighting will
appear for the source codes.

This plugin is available at [github](https://github.com/JohannesHoppe/markdown-shortcode),
too.
 Please **report issues at github**, pull requests are welcome, too!

## Screenshots

 * [[
 * Blog post written in markdown.
 * [[
 * Same blog post on front end.

## Installation

 1. Upload the `markdown-shortcode` directory to the `/wp-content/plugins` directory.
 2. Activate the plugin through the plugins menu in WordPress.
 3. Use it by wrapping text in the shortcode

## FAQ

### Will it work in the Visual Editor?

Yes. You can switch between Visual and Text(HTML) mode. The plugin converts html
entities back to the original characters.

### The WYSIWYG editor (TinyMCE) is removing empty spaces!

Indeed, TinyMCE is well-known for destroying markup. Replace empty spaces with underscores
__ .
 Underscores will be converted to empty spaces right before markdown conversion.

## Reviews

![](https://secure.gravatar.com/avatar/8920510ed620e2a612eadf47d3a73e831ded3780cd0ed88d8acec9ac725a7296?
s=60&d=retro&r=g)

### 󠀁[Simple and useful](https://wordpress.org/support/topic/simple-and-useful-172/)󠁿

 [shouldsee](https://profiles.wordpress.org/shouldsee/) 30 Meán an tSamhraidh, 2017

It parses pasted text perfectly. Remember to edit the post in “plain text” and not
in “visual” mode!! Best of best! Thanks so much for creating it.

![](https://secure.gravatar.com/avatar/bcdd01d95e1c78b9c6b054fc426a18758d7abe6d5d8029949cba7f2fe173ec93?
s=60&d=retro&r=g)

### 󠀁[best markdown plugin](https://wordpress.org/support/topic/best-markdown-plugin/)󠁿

 [xXZ3R0x](https://profiles.wordpress.org/xxz3r0x/) 3 Meán Fómhair, 2016

Does what it says and does it cleanly. Had an issue with conflicting plugins dev
fixed it very quickly.

![](https://secure.gravatar.com/avatar/fe1c3dc440e1b618d828aac447440c8d4e3dceda895db34677bff654508ea253?
s=60&d=retro&r=g)

### 󠀁[Just do what it says](https://wordpress.org/support/topic/just-do-what-it-says/)󠁿

 [nyl_auster](https://profiles.wordpress.org/nyl_auster/) 3 Meán Fómhair, 2016

Work as expected , thank you, simple and efficient. (just write “[markdown] blabla[/
markdown] with your wysiwyg as “text” )

 [ Read all 3 reviews ](https://wordpress.org/support/plugin/markdown-shortcode/reviews/)

## Contributors & Developers

“Markdown Shortcode” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ JHoppe ](https://profiles.wordpress.org/jhoppe/)

[Translate “Markdown Shortcode” into your language.](https://translate.wordpress.org/projects/wp-plugins/markdown-shortcode)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/markdown-shortcode/),
check out the [SVN repository](https://plugins.svn.wordpress.org/markdown-shortcode/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/markdown-shortcode/)
by [RSS](https://plugins.trac.wordpress.org/log/markdown-shortcode/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 0.2.3

 * Security fix: Added wp_kses_post() sanitization to prevent XSS vulnerability (
   CVE-2025-10180)
 * Fixed stored XSS vulnerability where contributors could inject malicious scripts
   through markdown content

#### 0.1

 * see https://github.com/JohannesHoppe/markdown-shortcode/releases for a list of
   all releases

## Meta

 *  Version **0.2.3**
 *  Last updated **7 mí ago**
 *  Active installations **70+**
 *  Tested up to **6.7.5**
 *  Language
 * [English (US)](https://wordpress.org/plugins/markdown-shortcode/)
 * Tags
 * [highlight.js](https://ga.wordpress.org/plugins/tags/highlight-js/)[markdown](https://ga.wordpress.org/plugins/tags/markdown/)
   [parsedown](https://ga.wordpress.org/plugins/tags/parsedown/)[shortcode](https://ga.wordpress.org/plugins/tags/shortcode/)
 *  [Advanced View](https://ga.wordpress.org/plugins/markdown-shortcode/advanced/)

## Ratings

 5 out of 5 stars.

 *  [  3 5-star reviews     ](https://wordpress.org/support/plugin/markdown-shortcode/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/markdown-shortcode/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/markdown-shortcode/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/markdown-shortcode/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/markdown-shortcode/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/markdown-shortcode/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/markdown-shortcode/reviews/)

## Contributors

 *   [ JHoppe ](https://profiles.wordpress.org/jhoppe/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/markdown-shortcode/)