Class: Coradoc::Markdown::Strikethrough
- 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_md ⇒ Object
13 14 15 |
# File 'lib/coradoc/markdown/model/strikethrough.rb', line 13 def to_md "~~#{text}~~" end |