Class: Md2Ansi::CLI
- Inherits:
-
Object
- Object
- Md2Ansi::CLI
- Defined in:
- lib/md2ansi/cli.rb
Instance Method Summary collapse
-
#initialize ⇒ CLI
constructor
A new instance of CLI.
- #render(content) ⇒ Object
Constructor Details
Instance Method Details
#render(content) ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/md2ansi/cli.rb', line 9 def render(content) if content =~ /\A(---\s*\n.*?\n?)^(---\s*$\n?)/m content = $' end @markdown.render(content) end |