Skip to content

Pastebin site with markdown support

Today I setup a new website:

Something I want, something I'll use, and something that might be useful to others?

Comments On This Entry

  1. [gravitar] XenGi

    Thx. That looks nice and I will probably use this quite often.

  2. [gravitar] rjc

    Hi Steve,

    That's a great idea!

    Doesn't seem to be working for me though :^(

    When running:

    $ curl -H "Accept: application/json" -X POST -F "text=<test.md" http://markdownshare.com/create/
    {"link":"http://"http://markdownshare.com/view/1O"," delete":"http://markdownshare.com/delete/d7405321f34c214d113f08f4db18e257","id":"1O"}
    

    Entry number 10 is obviously not the one as it existed (and other ones up to and including 19) prior to me trying to post it.

    Could you shed some light on it, please?

  3. [author] Steve Kemp

    Looks like your curl worked to me, did you mistake the number zero for the letter "o"?

    http://markdownshare.com/view/1O looks like yours - or at least not one of my early tests.

  4. [gravitar] rjc

    Ha!

    Yes, I did!

    On the terminal which I had used `O` looks like `0`, and I made the (wrong!) assumption that IDs are simply consecutive numbers (decimal or probably even hex), so rather than copying the link, I have used a previous link in the address bar simply substituting the ID part.

    Thanks for clarifying.

    Best regards,

    rjc