Class: Coradoc::Markdown::FootnoteReference

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

Overview

FootnoteReference model representing an inline footnote reference.

Syntax: ‘[^name]` anywhere in text

Examples:

ref = Coradoc::Markdown::FootnoteReference.new(id: "1")

Instance Method Summary collapse

Methods inherited from Base

#serialize_content, #to_h, visit, #visit

Instance Method Details

#to_mdObject

Serialize to Markdown



17
18
19
# File 'lib/coradoc/markdown/model/footnote_reference.rb', line 17

def to_md
  "[^#{id}]"
end