class Redcarpet::Render::GitlabHTML < Redcarpet::Render::HTML attr_reader :template alias_method :h, :template def initialize(template, options = {}) @template = template @project = @template.instance_variable_get("@project") @ref = @template.instance_variable_get("@ref") @request_path = @template.instance_variable_get("@path") @options = options.dup super options end def block_code(code, language) # New lines are placed to fix an rendering issue # with code wrapped inside
#{h.send(:html_escape, code)}