sanitized_opts

in source/_plugins/highlight-linedivs.rb [81:95]


      def sanitized_opts(opts, is_safe)
        if is_safe
          Hash[[
                 [:startinline, opts.fetch(:startinline, nil)],
                 [:hl_lines,    opts.fetch(:hl_lines, nil)],
                 [:linenos,     opts.fetch(:linenos, nil)],
                 [:linedivs,    opts.fetch(:linedivs, nil)],
                 [:encoding,    opts.fetch(:encoding, "utf-8")],
                 [:cssclass,    opts.fetch(:cssclass, nil)],
               ].reject { |f| f.last.nil? }]
        else
          opts
        end
      end