In Files
Parent
Methods
Information
Class Index
![show/hide quicksearch [+]](../../assets/icon/find.png)
- Malt
- Malt::Engine
- Malt::Engine::Abstract
- Malt::Engine::BlueCloth
- Malt::Engine::Builder
- Malt::Engine::Erb
- Malt::Engine::Erector
- Malt::Engine::Erubis
- Malt::Engine::Haml
- Malt::Engine::Kramdown
- Malt::Engine::Less
- Malt::Engine::Liquid
- Malt::Engine::Markaby
- Malt::Engine::Mustache
- Malt::Engine::RDiscount
- Malt::Engine::RDoc
- Malt::Engine::Radius
- Malt::Engine::Radius::context;
- Malt::Engine::RagTag
- Malt::Engine::RedCloth
- Malt::Engine::Ruby
- Malt::Engine::Sass
- Malt::Engine::Tenjin
- Malt::Format
- Malt::Format::Abstract
- Malt::Format::AbstractTemplate
- Malt::Format::Builder
- Malt::Format::CSS
- Malt::Format::Erb
- Malt::Format::Erector
- Malt::Format::HTML
- Malt::Format::Haml
- Malt::Format::LESS
- Malt::Format::Latex
- Malt::Format::Liquid
- Malt::Format::Markaby
- Malt::Format::Markdown
- Malt::Format::Mustache
- Malt::Format::PDF
- Malt::Format::RBHTML
- Malt::Format::RDoc
- Malt::Format::RHTML
- Malt::Format::Radius
- Malt::Format::RagTag
- Malt::Format::Ruby
- Malt::Format::SCSS
- Malt::Format::Sass
- Malt::Format::Tenjin
- Malt::Format::Text
- Malt::Format::Textile
- Malt::Format::UnsupportedConversion
- Malt::Format::XML
- Malt::Format::YAML
- Malt::Kernel
- Malt::Machine
- Malt::Markup
- Malt::NoEngineError
- Malt::Template
- Hash
- OpenStruct
Kramdown
Discount Markdown implementation.
http://github.com/rtomayko/rdiscount
The :smart and :filter_html options can be set true to enable those flags on the underlying RDiscount object.
Public Instance Methods
intermediate(params)
click to toggle source
Convert Markdown text to intermediate object.
# File lib/malt/engines/kramdown.rb, line 33 33: def intermediate(params) 34: text = params[:text] 35: ::Kramdown::Document.new(text) 36: end
render(params)
click to toggle source
Convert Markdown text to HTML text.
@option params [String] :text Template text @option params [String,Symbol] :to (‘html’) Type or file extension to convert template into.
# File lib/malt/engines/kramdown.rb, line 19 19: def render(params) 20: text = params[:text] 21: into = params[:to] 22: case into 23: when :html, nil 24: intermediate(params).to_html 25: when :latex 26: intermediate(params).to_latex 27: else 28: super(params) 29: end 30: end
Disabled; run with --debug to generate this.