Class: GovukMarkdown::Renderer

Inherits:
Redcarpet::Render::HTML
  • Object
show all
Includes:
Mixin, Redcarpet::Render::SmartyPants
Defined in:
lib/govuk_markdown/renderer.rb

Defined Under Namespace

Modules: Mixin

Instance Method Summary collapse

Methods included from Mixin

#header, #hrule, #list, #paragraph, #preprocess, #table, #table_cell, #table_row

Constructor Details

#initialize(govuk_options, options = {}) ⇒ Renderer

Returns a new instance of Renderer.



8
9
10
11
12
13
# File 'lib/govuk_markdown/renderer.rb', line 8

def initialize(govuk_options, options = {})
  @headings_start_with = govuk_options[:headings_start_with]
  @strip_front_matter = govuk_options[:strip_front_matter]

  super options
end