Class: Coradoc::Markdown::Highlight

Inherits:
Base
  • Object
show all
Defined in:
lib/coradoc/markdown/model/highlight.rb

Overview

Represents highlighted text using == syntax (extended Markdown).

Example: ==highlighted text==

Instance Method Summary collapse

Methods inherited from Base

#serialize_content, #to_h, visit, #visit

Instance Method Details

#to_mdObject



13
14
15
# File 'lib/coradoc/markdown/model/highlight.rb', line 13

def to_md
  "==#{text}=="
end