diff --git a/_plugins/highlight-capion-options.rb b/_plugins/highlight-caption-option.rb similarity index 83% rename from _plugins/highlight-capion-options.rb rename to _plugins/highlight-caption-option.rb index 2e38d8d..d4741af 100644 --- a/_plugins/highlight-capion-options.rb +++ b/_plugins/highlight-caption-option.rb @@ -6,15 +6,15 @@ module JekyllTagsExtensions module HighlightCaption def self.prepended(mod) - syntax = mod.send(:remove_const, :SYNTAX).source.gsub('\\w', '[^[:^graph:]"]') + syntax = mod.send(:remove_const, :SYNTAX).source.gsub('\\w', '[^[:^graph:]"=]') mod.const_set(:SYNTAX, Regexp.new(syntax)) - options = mod.send(:remove_const, :OPTIONS_REGEX).source.gsub('\\w', '[^[:^graph:]"]') + options = mod.send(:remove_const, :OPTIONS_REGEX).source.gsub('\\w', '[^[:^graph:]"=]') mod.const_set(:OPTIONS_REGEX, Regexp.new(options)) end def render(*args) - caption = "
" - caption << "#{@lang.upcase}#{@highlight_options[:caption] ? ":" : ""}" + caption = "
" + caption << "#{@lang.upcase}#{@highlight_options[:caption] ? ':' : ''}" if @highlight_options[:caption].is_a? String caption << "#{@highlight_options[:caption]}" end