Sha256: 493576deacc7551cb58553434b5f9594b84a97c72ca4cffdd3bb1a7a8872aa3e
Contents?: true
Size: 1.46 KB
Versions: 2
Compression:
Stored size: 1.46 KB
Contents
<h3>Markdown Web Service / HTTP JSON(P) API</h1> <h4>Render Markdown</h4> <pre><code>GET /markdown </code></pre> <p> Input: </p> <ul> <li><b>text</b> - <em>Required</em> string - The Markdown text to render</li> <li><b>lib</b> - <em>Optional</em> string - The Markdown library/engine to use (e.g. <code>kramdown</code>, <code>redcarpet</code>, etc)</li> </ul> <p class='api'> Example: <code>GET <a href='view-source:<%= url("/markdown?text=Hello+World!") %>'> /markdown?<span class='params'>text=<em>Hello+World!</em></span> </a> </code> </p> <p> Response: </p> <pre><code>Status: 200 OK Content-Type: text/html <p>Hello World!<p> </code></pre> <h4>Render Markdown (Babelmark2-Style)</h4> <pre><code>GET /dingus </code></pre> <p> Input: </p> <ul> <li><b>text</b> - <em>Required</em> string - The Markdown text to render</li> <li><b>lib</b> - <em>Optional</em> string - The Markdown library/engine to use (e.g. <code>kramdown</code>, <code>redcarpet</code>, etc)</li> </ul> <p class='api'>Example: <code>GET <a href='<%= url("/dingus?text=Hello+World!") %>'> /dingus?<span class='params'>text=<em>Hello+World!</em></span> </a> </code> </p> <p> Response: </p> <pre><code>Status: 200 OK Content-Type: application/json { 'name': 'kramdown', 'html': '<p>Hello World!<p>', 'version': '1.0.2' } </code></pre>
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
markdown-service-1.2.0 | lib/markdown/service/views/_service.erb |
markdown-1.1.1 | lib/markdown/server/views/_service.erb |