zooppa / administrate-field-simple_markdown

✍️ A plugin to edit Markdown text in Administrate
https://github.com/thoughtbot/administrate
MIT License
8 stars 13 forks source link

Allow passing down options to Redcarpet #11

Closed casaper closed 4 years ago

casaper commented 4 years ago

allow to pass options to the redcarpet renderer:

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
})