module GovukMarkdown
class Renderer < ::Redcarpet::Render::HTML
def header(text, header_level)
heading_size = case header_level
when 1 then "xl"
when 2 then "l"
when 3 then "m"
else "s" end
id_attribute = @options[:with_toc_data] ? " id=\"#{text.parameterize}\"" : ""
<<~HTML
#{text}
HTML end def list(contents, list_type) if list_type == :unordered <<~HTML