Class: DevSystem::MdConverterShell
- Inherits:
-
ConverterShell
- Object
- Liza::Unit
- Liza::Controller
- Shell
- ConverterShell
- DevSystem::MdConverterShell
- Defined in:
- lib/dev_system/sub/shell/converter_shells/md_converter_shell.rb
Class Method Summary collapse
Methods inherited from ConverterShell
Methods inherited from Shell
cruby?, engine, jruby?, linux?, mac?, os, ruby_version, unix?, windows?
Methods inherited from Liza::Controller
color, inherited, on_connected
Methods inherited from Liza::Unit
const_missing, division, part, system, #system, test_class
Class Method Details
.convert(string, options = {}) ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/dev_system/sub/shell/converter_shells/md_converter_shell.rb', line 9 def self.convert string, = {} log :lower, "default_options = #{.inspect} | options = #{.inspect}" = .merge if .any? && .any? log :lower, "#{string.size} chars (options: #{.inspect})" require "commonmarker" # CommonMarker.render_html markdown, [:HARDBREAKS, :SOURCEPOS, :UNSAFE] CommonMarker.render_html string, :DEFAULT end |
.default_options ⇒ Object
3 4 5 |
# File 'lib/dev_system/sub/shell/converter_shells/md_converter_shell.rb', line 3 def self. DevBox[:shell].converters[:md][:options] end |