Class: Coradoc::Markdown::Strikethrough

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

Overview

Represents strikethrough text using GFM ~~ syntax.

Example: ~~deleted 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/strikethrough.rb', line 13

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