Module: RTFDoc
- Defined in:
- lib/rtfdoc.rb,
lib/rtfdoc/cli.rb,
lib/rtfdoc/version.rb,
lib/rtfdoc/generators/bootstrap.rb
Defined Under Namespace
Modules: Anchorable, RenderAsSection
Classes: AttributesComponent, Bootstrap, CLI, Generator, Renderer, Resource, ResourceDesc, Section, Template
Constant Summary
collapse
- VERSION =
"0.1.3"
Class Method Summary
collapse
Class Method Details
.markdown_to_html(text) ⇒ Object
377
378
379
|
# File 'lib/rtfdoc.rb', line 377
def self.markdown_to_html(text)
renderer.render(text)
end
|
.renderer ⇒ Object
367
368
369
370
371
372
373
374
375
|
# File 'lib/rtfdoc.rb', line 367
def self.renderer
@renderer ||= Redcarpet::Markdown.new(Renderer, {
underline: true,
space_after_headers: true,
fenced_code_blocks: true,
no_intra_emphasis: true,
tables: true
})
end
|