simple_form_markdown_editor 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 309c8f09e79203a3ffb66ed768cc8252018b5d53
4
- data.tar.gz: d0963ad2722d91aa48f6a50c0a8fd68829f83262
3
+ metadata.gz: adb8663c7956eda6d7f6da3d9588949076d92d1b
4
+ data.tar.gz: 7cbcfc6052e035b1f179586138f37c6ac63b92c5
5
5
  SHA512:
6
- metadata.gz: c32065f5bfd8d76cfadebf2cf2b2de8110eeb9fe4d9da5cb5dad9e02470d0a578e0bf88df38ca9cf876e6783d2208de65f3617794a89324d728ae9d5056201b8
7
- data.tar.gz: 041a1ce60257997d365d46b6b8422f53c43f4ee894ff5680bab191f28c360f898c9ccb5300be0df6dbeffe502cac9ee37aed2c5674230bdcb110652470808b0f
6
+ metadata.gz: 3f0f670afbac9f84ece2c9bfd33506560910987769951da4adca79bdcb61d5c33f52fea60e8b458df71851b073070b2fdeced2266f2ec60c72c7790c75658f7c
7
+ data.tar.gz: b791edd4f0d396e8bbbc8bbbddf4adaa4c48cbfa463b25316fe3bbc1f0adfb8e7bf45a1b06a69e360c544e1300b9ccf770fa9dbe56e047c4d4a6fbe6c14ec792
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- simple_form_markdown_editor (0.0.6)
4
+ simple_form_markdown_editor (0.0.7)
5
5
  rails (>= 4.2)
6
6
  redcarpet
7
7
  responders
data/README.md CHANGED
@@ -82,7 +82,7 @@ end
82
82
  ### Input
83
83
 
84
84
  ```ruby
85
- = f.input :markdown, as: :markdown_editor, help: { enabled: true, visible: false }, buttons: [ %w(h1 h2), %w(a img) ], route: '/custom/preview'
85
+ = f.input :markdown, as: :markdown_editor, buttons: [ %w(h1 h2), %w(a img) ], help: { enabled: true, visible: false }, extensions: { footnotes: true }, render_class: CustomRenderClass, render_options: { no_images: true }, route: '/custom/preview'
86
86
  ```
87
87
 
88
88
  ## Internationalization
@@ -35,6 +35,10 @@ module SimpleFormMarkdownEditor
35
35
  super
36
36
  end
37
37
 
38
+ def render_class
39
+ options.fetch(:render_class, MarkdownEditorInput.configuration.render_class)
40
+ end
41
+
38
42
  def render_options
39
43
  options.fetch(:render_options, MarkdownEditorInput.configuration.render_options)
40
44
  end
@@ -163,7 +167,7 @@ module SimpleFormMarkdownEditor
163
167
  i18n_help.map do |section, content|
164
168
  content[:elements].map do |el, con|
165
169
  template.content_tag :div, class: ['help_text', el.to_s], data: { section: section.to_s, sub_section: el.to_s } do
166
- Renderer.call(con[:text], render_options: render_options, extensions: extensions)
170
+ Renderer.call(con[:text], render_class: render_class, render_options: render_options, extensions: extensions)
167
171
  end
168
172
  end
169
173
  end.flatten.join.html_safe
@@ -1,3 +1,3 @@
1
1
  module SimpleFormMarkdownEditor
2
- VERSION = '0.0.6'.freeze
2
+ VERSION = '0.0.7'.freeze
3
3
  end
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ../..
3
3
  specs:
4
- simple_form_markdown_editor (0.0.6)
4
+ simple_form_markdown_editor (0.0.7)
5
5
  rails (>= 4.2)
6
6
  redcarpet
7
7
  responders
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_form_markdown_editor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tomas Celizna