Class: Coradoc::Markdown::Abbreviation

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

Overview

Abbreviation model representing an abbreviation definition.

Kramdown syntax: ‘*[ABC]: A Big Corporation`

When the abbreviation appears in the text, it will be wrapped with an <abbr> tag with the definition as the title.

Examples:

Abbreviation definition

abbr = Coradoc::Markdown::Abbreviation.new(
  term: "ABC",
  definition: "A Big Corporation"
)

Method Summary

Methods inherited from Base

#serialize_content, #to_h, #to_md, visit, #visit