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

WP-Markdown Only Supports a Sub-set of Markdown Syntax? #1

Closed ghost closed 12 years ago

ghost commented 12 years ago

For instance, the code for embedding an image breaks if I mention the title attribute. That is...

It's fine like this:

![Alt Text][1]

[1]: http://example.com/image/url/file.jpg

But adding the title attribute breaks the code. Try this:

![Alt Text][1]

[1]: http://example.com/image/url/file.jpg "Title Text"

I've just started using the plugin. If these things are something you'd like to support, I will report issues (if any) coming forth. If not, fine.

stephenh1988 commented 12 years ago

Hi geekpanth3r - thanks for reporting this. I was aware of it but I'm yet to add support for image alt text. If you come across any other issues please do report them :). I'm actually watching https://github.com/egil/php-markdown-extra-extended, which I plan at some point to include in the plug-in, and which will extend the currently recognized syntax.

ghost commented 12 years ago

@stephenh1988 will be waiting eagerly for the changes. Thanks!

stephenh1988 commented 12 years ago

I wasn't stripping the slashes before parsing the MarkDown, consequently this broke things like the title attribute in links. 1.1.3 resolves this.

Melindrea commented 12 years ago

Not so much an issue as a query: How close are you to including the Markdown Extra into the syntax? Not having it is in no way a dealbreaker for me (I love Markdown, I have come to realise that I loathe the standard WP way of dealing it), but a curious query. =)

stephenh1988 commented 12 years ago

I am planning on including Markdown Extra. In fact you can use it (tables at least), but the HTML--> markdown doesn't yet recognise markdown extra, so you get the HTML after you save it. However, this is easily fixed (and it will be). The real sticking point is the live preview. The plug-in uses a third-party javascript plug-in pagedown. This currently doesn't support markdown-extra, but someone is working on it (http://code.google.com/p/pagedown/issues/detail?id=22). I'm planning on using that to fully support markdown extra.