Issue with markdown when posting

49 views
Skip to first unread message

Steven Pears

unread,
Jul 11, 2012, 8:34:06 AM7/11/12
to tumbl...@googlegroups.com
I've changed my application so that it can start using the markdown syntax for posting, very useful with a mobile app.
 
I've checked the posts and they are being sent with markdown=true in the body text, but when I check the post it's being saved as raw text despite having markdown in it.
 
I've changed my blog settings in case that made a difference, but I'm able to use markdown on the website and still not through the API.
 
Is there anything else required for this to work?
 
Thanks in advance
 
Steven Pears
 
 
 
 
 
 

 

Steven Pears

unread,
Jul 11, 2012, 8:35:08 AM7/11/12
to tumbl...@googlegroups.com
Obviously I meant the request body, not the body text of the post - just in case that wasn't clear.

John Bunting

unread,
Jul 11, 2012, 10:55:10 AM7/11/12
to tumbl...@googlegroups.com
Hey,

I'm working on some feature work right now. I'll make some time for this bug and a content-source bug that Felix pointed out.

General steps to reproduce is just try to create a post with markdown?

-- 
John Bunting

Simplicity is a prerequisite for reliability
   --Edsger W. Dijkstra

Steven Pears

unread,
Jul 11, 2012, 10:57:37 AM7/11/12
to tumbl...@googlegroups.com
Yeah - simple text post with markdown=true in the request.
 
I normally use something like **test** as that should turn up bold in the resulting post, pretty obvious if it doesn’t work too.
 
Cheers John
 
Steven
 
Sent from my Windows 8 PC

Steven Pears

unread,
Aug 2, 2012, 1:49:09 PM8/2/12
to tumbl...@googlegroups.com
Hi John - I know you must be busy if you're looking at getting ready to shutdown V1, but has there been any movement on the markdown flag in posting content via API V2?
 
Thanks in advance
 
Steven

Daniel Jalkut

unread,
Aug 5, 2012, 12:01:26 AM8/5/12
to tumbl...@googlegroups.com
In my tests against the 2.0 API as of today, you can set the format of a post to Markdown by using the 1.0-style parameter "format=markdown". Frankly this is more consistent with the format attribute on /posts objects, so I hope it's just a documentation error that "markdown=[bool]" is the appropriate way to try to set this.

One issue I noticed however is that after a post has been published, its format attribute can't be changed. I.e. if I publish with "format=markdown" and then change to "format=html" on an edit, the change is ignored. The format of a post seems to be stuck forever at whatever it started out as.

Daniel

John Bunting

unread,
Aug 5, 2012, 11:21:16 AM8/5/12
to tumbl...@googlegroups.com
You guys are right. The correct parameter according to the code is "format="markdown". I'll be sure to update the documentation as soon as I can.

-- 
John Bunting

Simplicity is a prerequisite for reliability
   --Edsger W. Dijkstra

Reply all
Reply to author
Forward
0 new messages