Administrate::Field::SimpleMarkdown

Build Status Code Climate

A plugin to edit Markdown text in Administrate using SimpleMDE v1.11.2.

Demo

Usage

Add it to your Gemfile:

gem 'administrate-field-simple_markdown', '~> 0.3.0'

Run:

$ bundle install

Add to your FooDashboard:

ATTRIBUTE_TYPES = {
  bar: Field::SimpleMarkdown.with_options({
    safe_links_only: true,
    filter_html: true,
    with_toc_data: true,
    hard_wrap: true,
    link_attributes: { rel: 'follow' },
    autolink: true,
    tables: true,
    no_intra_emphasis: true,
    strikethrough: true,
    highlight: true,
    space_after_headers: true
  })
}.freeze

About

Administrate::Field::SimpleMarkdown is maintained by Zooppa.

See also the list of contributors who participated in this project.