Method: Bookmaker::Markup.syntax
- Defined in:
- lib/bookmaker/base.rb
.syntax(code, syntax = 'plain_text') ⇒ Object
47 48 49 50 51 52 53 54 55 56 |
# File 'lib/bookmaker/base.rb', line 47 def self.syntax(code, syntax='plain_text') # get chosen theme theme = Bookmaker::Base.config['theme'] theme = Bookmaker::Base.default_theme unless Bookmaker::Base.theme?(theme) # get syntax syntax = Bookmaker::Base.default_syntax unless Bookmaker::Base.syntax?(syntax) Uv.parse(code, "xhtml", syntax, false, theme) end |