<?xml version="1.0"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>CKAN: Ticket #2698: markdown preview</title>
    <link>http://localhost/ticket/2698</link>
    <description>&lt;p&gt;
for description / other fields with markdown support
&lt;/p&gt;
</description>
    <language>en-us</language>
    <image>
      <title>CKAN</title>
      <url>http://assets.okfn.org/p/ckan/img/ckan_logo_shortname.png</url>
      <link>http://localhost/ticket/2698</link>
    </image>
    <generator>Trac 0.12.3</generator>
    <item>
      
        <dc:creator>toby</dc:creator>

      <pubDate>Fri, 27 Jul 2012 08:39:38 GMT</pubDate>
      <title></title>
      <link>http://localhost/ticket/2698#comment:1</link>
      <guid isPermaLink="false">http://localhost/ticket/2698#comment:1</guid>
      <description>
        &lt;p&gt;
I think this would be really helpful/nice
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>aron.carroll</dc:creator>

      <pubDate>Thu, 02 Aug 2012 13:38:08 GMT</pubDate>
      <title>owner, status changed</title>
      <link>http://localhost/ticket/2698#comment:2</link>
      <guid isPermaLink="false">http://localhost/ticket/2698#comment:2</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;owner&lt;/strong&gt;
              changed from &lt;em&gt;aron.carroll&lt;/em&gt; to &lt;em&gt;toby&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;
                changed from &lt;em&gt;new&lt;/em&gt; to &lt;em&gt;assigned&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
We need an api endpoint that can render a markdown string on submission.
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;Client posts a string of text to the endpoint.
&lt;/li&gt;&lt;li&gt;Server responds with a 200, text/html response containing the rendered markdown.
&lt;/li&gt;&lt;li&gt;Server returns a 400 and empty body if the content is not valid markdown.
&lt;/li&gt;&lt;li&gt;Server returns a 500 and empty body  if something else crashes.
&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;
Alternatively for better error handling we could use a JSON transport.
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;Client posts a blob of json containing a "content" key with the markdown string.
&lt;/li&gt;&lt;li&gt;Server returns a 200 (application/json) and blob of json with a "content" key with the rendered markdown.
&lt;/li&gt;&lt;li&gt;Server returns a 400 (application/json) and blob of json with a "error" key containing a useful message for the user.
&lt;/li&gt;&lt;li&gt;Server returns a 500 (application/json) and blob of json with a "error" key containing a useful message for the user.
&lt;/li&gt;&lt;/ul&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>toby</dc:creator>

      <pubDate>Thu, 09 Aug 2012 20:14:12 GMT</pubDate>
      <title>milestone changed</title>
      <link>http://localhost/ticket/2698#comment:3</link>
      <guid isPermaLink="false">http://localhost/ticket/2698#comment:3</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;milestone&lt;/strong&gt;
                changed from &lt;em&gt;demo phase 5&lt;/em&gt; to &lt;em&gt;demo phase 4&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
      </description>
      <category>Ticket</category>
    </item>
 </channel>
</rss>