RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

Try kramdown Online Editor & HTTP JSON API Service - Convert Markdown to HTML & LaTeX

Hello, I’ve put together a simple online editor that lets you try the kramdown library converting markdown to HTML or LaTeX. The online app also includes a HTTP JSON API service (e.g. /markdown) for conversion. All is packed up in the kramdown-service gem for easy (re)use and as an extra bonus includes a binary, that is, kramup, that starts up the online editor and service on your local machine (e.g. use $ kramup). Supported conversion options/modes include:

  • HTML - kramdown in GitHub-Flavored Markdown (GFM) Mode
  • HTML - kramdown in GitHub-Flavored Markdown (GFM) Mode w/ Syntax Highlighter (rouge)
  • HTML - kramdown in “Classic” Mode
  • LaTeX - kramdown in GitHub-Flavored Markdown (GFM) Mode

All code public domain. Questions? Comments? Welcome. Cheers.

PS: What’s kramdown?

kramdown is a fast markdown converter in Ruby (no C-extension required); supports conversion to HTML or LaTeX; kramdown is the “standard” markdown converter used by GitHub Pages, Jekyll and others.

(Update) Sorry if you see an Application Error on Heroku it means “Free app running time quota exhausted” – please, check back in a day or two (or just use $ kramup to run the service on your local machine). Thanks.

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in