Test Post 16Jul2017 1256
Trying this again. Didn't quite work the first time because I forgot that the JSON stores the title in an array for some reason.
First post http://wren.soupmode.com/array0xa837a04.html
From the Micropub spec about creating a new article with HTML. Why does it have to have HTML? I'm guessing that it's because it's needed to support fancy JavaScript editors like medium-editor.js.
I use a Micropub note type of post to send raw markup to my code for an article or note type, according to MY spec.
From the spec
POST /micropub HTTP/1.1 Host: aaronpk.example Content-type: application/json { "type": ["h-entry"], "properties": { "name": ["Itching: h-event to iCal converter"], "content": [ {"html": "Now that I've been <a href=\"https://aaronparecki.com/events\">creating a list of events on my site using <a href=\"https://p3k.io\">p3k, it would be great if I could get a more calendar-like view of that list..."} ], "category": [ "indieweb", "p3k" ] } }
Interesting. When I copy and pasted in the JSON markup above, the JavaScript editor automatically knew it was code and formatted it appropriately.
Obviously, this kind of writing environment works on devices that support a mouse or pointing type of device.
Well, let's see if this post works. I need to add code to account for some squirrelly chars sent by the JavaScript editor.