Class | Kramdown::Converter::Html |
In: |
lib/kramdown/converter/html.rb
|
Parent: | Base |
Converts a Kramdown::Document to HTML.
You can customize the HTML converter by sub-classing it and overriding the convert_NAME methods. Each such method takes the following parameters:
The return value of such a method has to be a string containing the element el formatted as HTML element.
HIGHLIGHTING_AVAILABLE | = | true | Highlighting via coderay is available if this constant is true. | |
DISPATCHER | = | Hash.new {|h,k| h[k] = "convert_#{k}"} | The mapping of element type to conversion method. | |
TYPOGRAPHIC_SYMS | = | { :mdash => [::Kramdown::Utils::Entities.entity('mdash')], :ndash => [::Kramdown::Utils::Entities.entity('ndash')], :hellip => [::Kramdown::Utils::Entities.entity('hellip')], :laquo_space => [::Kramdown::Utils::Entities.entity('laquo'), ::Kramdown::Utils::Entities.entity('nbsp')], :raquo_space => [::Kramdown::Utils::Entities.entity('nbsp'), ::Kramdown::Utils::Entities.entity('raquo')], :laquo => [::Kramdown::Utils::Entities.entity('laquo')], :raquo => [::Kramdown::Utils::Entities.entity('raquo')] |
indent | [RW] | The amount of indentation used when nesting HTML tags. |