AgileVentures/WebsiteOne — pull request #514 by YaroSpace (2014-08-26 18:12:47+00:00)
Title: Mercury markdown

Allowing to edit documents in HTML or Markdown within Mercury editor

Features:
- can switch from Markdown to HTML for existing documents, preserving the formatting
- can switch from HTML to Markdown, converting to plain text

Changes:
- mercury function to o the switch
- Documents Show view - conditional to render html or markdown
- Documents controller to save the chosen format
- format: string field to Document model

Minor changes:
- spec refactorings in documents_controller_spec and show_spec