stephenharris / WP-MarkDown

WP-MarkDown plug-in. Allows Markdown to be enabled in posts, comments and bbPress forums.
http://wordpress.org/extend/plugins/wp-markdown/
112 stars 19 forks source link

``` GitHub Markdown for code? #18

Closed sc0ttkclark closed 11 years ago

sc0ttkclark commented 11 years ago

Not sure if this is already in there, but I was hoping that the ``` format would be made available.

Example:

Here is my <code>
and <?php echo 'boom'; ?>

So, ``` on it's own line, then code below.

and ``` on it's own line after to close it out.

stephenharris commented 11 years ago

Nope, currently just Markdown & Markdown Extra.

I'd quite like to see support for Github flavoured markdown - particular since their approach to underscores will stop the plug-in upsetting the use of short-codes with underscore in their name. But it would have to be all or nothing (with the exception, obviously of purely Github related features).

Unfortunately, I don't have the time to work on this - there are probably some GFM -> HTML converters out there, but to function properly the plug-in would also require HTML -> GFM (possibly just extending the Markdownify class). But pull requests are certainly welcome :).

(In the interests of not breaking anyone's content, this would have to be an optional feature too ).

stephenharris commented 11 years ago

Closing as wontfix, but would welcome PR.