Methods
- B
- H
- N
- P
Class Public methods
new(options={})
Link
Instance Public methods
block_code(code, language)
Link
header(text, header_level)
Link
paragraph(text)
Link
# File guides/rails_guides/markdown/renderer.rb, line 25 def paragraph(text) if text =~ /^(TIP|IMPORTANT|CAUTION|WARNING|NOTE|INFO|TODO)[.:](.*?)/ convert_notes(text) elsif text =~ /^\[<sup>(\d+)\]:<\/sup> (.+)$/ linkback = %Q(<a href="#footnote-#{$1}-ref"><sup>#{$1}</sup></a>) %Q(<p class="footnote" id="footnote-#{$1}">#{linkback} #{$2}</p>) else text = convert_footnotes(text) "<p>#{text}</p>" end end