Markdown and Postie
-
Hi!
I’m using Markdown to format my posts and pages inside WordPress.
I’ve installed WP-Markdown so it converts it by default, but it doesn’t work when I send a mail via Postie. Can I do anything for getting this to work?
Thanks in advanceBest regards
Thomas
-
Please send a sample email to test@postieplugin.com and leave a note here.
Hi!
I’ve now send a test sample to you.
Thanks for a quick reply.
I have just tested recently again, if I publish from WordPress it works as I thought, but if it is submited via Postie the Markdown source is shown instead regardless of the format is set to HTML or plain text. I believe I must set the format to plain text for getting the right results…?
Best regards ThomasI installed WP-Markdown 1.5.1 (current version) with Postie configured with plain text.
Here is the raw email:
#Hello ##Thisis a test I wrote this in **Markdown** Thanks Best regards [Thomas](http://www.testing.com)In the editor I see
# Hello ## Thisis a test I wrote this in **Markdown** Thanks Best regards <a href="[http://www.testing.com">Thomas][1]</a> [1]: http://www.testing.com)When I view the post I see:
http://screencast.com/t/dB6MhPH8J74If I set “Automatically convert urls to links” to “No” it looks perfect.
Hi!
That’s interesting. Have you enabled Markdown in settings, writing?
I just pasted the sample-mail into a post and published it on my testblog. The result is correct, if I go this way, but I would like to see the Markdown converted to HTML, as if I used the editor. I don’t know how much you know about Markdown but I just made a heading and a link in the test sample… And made some text bolt.
The post is here:
http://wp.me/p5whUn-r
I don’t know if I have configured something wrong inside Postie’s options so it doesn’t handle the Markdown syntax correctly.Best regards
ThomasI’m not sure what you are asking for. If you send an email using markdown syntax Postie will publish it and WP-Markdown will render it. You will see the markdown in the editor just as if you had manually created it.
I just did a few more tests and noticed the following:
Yes, Postie can handle Markdown, now the link was correct. But lines and headings fail, and I can not figure out what I’ve done wrong.
The only thing I can see makes another issue is that if I send a mail to Postie with Markdown syntax it fails. But that might be caused by my phone and not by Postie…
Can I do anything to optimize Postie when using plain text?
I specially need that newlines will be shown correctly.
If I run a debug from my admin panel everything looks perfect, as I expected, because mails are comming through as we both know, but it is in the convertion something is wrong. Do you think it might be better for me to use the Jetpack Markdown module instead of the WP-markdown in conjunction with Postie?There are a couple of settings related to newlines. Look through them and test the combinations until you find a setting that works.
Now I’ve done a few more tests again, and stille something weird is going on, when the post isn’t done via the editor itself.
The subject of the message (that normally works as the title of the post) is not used anymore. Instead Postie inserts it’s own title… Or in some cases it replaces the title with the first word from the message body.
I find the process very inconsistent, since I’ve only managed to get most of the layout correct in ONE post earlier.
Here is my description of the setup I use:
Mail clients:
Apple Mail (In Mac OS X 10.10)
Mail on an iPhone 5C running IOS 8.1.2 (at the time of writing the latest official release)
I type the Markdown into the message body, and have tried to select the format s plain text in OS 10 Mail, but it doesn’t seem to make anything work different.
When I send a mail:
From the Mac:
The format of the post is not translated correctly. Headings and links may be showing up correctly, but often the heading is replaced by a heading level 1 instead of a heading on level 3.
The title of the post is removed and replaced with something like the first word of my post (the message body) or Postie’s own suggestion to a blank subject line.From IOS:
When sending a mail from IOS the Markdown is not converted to HTML at all.
What am I doing wrong in this setup?
Postie works like a charme on my other blog, and I was planning to write in Markdown because it is (for me) easier to write Markdown rather than HTML on a smartphone. ðPlease send an example from each of the mail clients to test@postieplugin.com so I can see what is happening.
Is resolved the issue? I use Postie and Jetpack’s Markdown and images are not rendered. I get the following post:
http://www.neatorama.com/wp-content/uploads/2010/11/bugs-bunnyreclining-499Ã367.jpgâ alt=ââ />
with an empty image at the first.
Lapagalia
@lapagalia you may want to try changing “Automatically convert urls to links” to “No”
Fine! It works. A lot of thanks.
The topic ‘Markdown and Postie’ is closed to new replies.