Module: Script2md
- Defined in:
- lib/script2md.rb,
lib/script2md/version.rb
Defined Under Namespace
Constant Summary collapse
- VERSION =
"1.1.2"
Class Method Summary collapse
Class Method Details
.convert(text, language_type: nil) ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'lib/script2md.rb', line 4 def self.convert(text, language_type: nil) # FIXME: Prevent gsub! break original text value original_script_text = text.clone output = Convert.new(text, language_type: language_type).convert.text output = Fill.new(output, script: original_script_text).convert.text output end |