lib/reverse_markdown/config.rb in reverse_markdown-1.3.0 vs lib/reverse_markdown/config.rb in reverse_markdown-1.4.0

- old
+ new

@@ -1,12 +1,13 @@ module ReverseMarkdown class Config - attr_accessor :unknown_tags, :github_flavored, :tag_border + attr_writer :unknown_tags, :github_flavored, :tag_border, :force_encoding def initialize @unknown_tags = :pass_through @github_flavored = false + @force_encoding = false @em_delimiter = '_'.freeze @strong_delimiter = '**'.freeze @inline_options = {} @tag_border = ' '.freeze end @@ -26,8 +27,12 @@ @inline_options[:github_flavored] || @github_flavored end def tag_border @inline_options[:tag_border] || @tag_border + end + + def force_encoding + @inline_options[:force_encoding] || @force_encoding end end end