Class: Coradoc::CoreModel::FootnoteReference

Inherits:
Base
  • Object
show all
Defined in:
lib/coradoc/core_model/footnote.rb

Overview

Represents an inline footnote reference

FootnoteReference links to a Footnote definition within document text.

Examples:

Creating a footnote reference

ref = CoreModel::FootnoteReference.new(id: "fn1")
# Renders as: [^fn1] in Markdown, <sup>1</sup> in HTML

Instance Attribute Summary collapse

Attributes inherited from Base

#element_attributes, #metadata_entries, #title

Method Summary

Methods inherited from Base

#accept, #attr, #metadata, #semantically_equivalent?, #set_attr, #set_metadata

Instance Attribute Details

#idString?

Returns the footnote identifier being referenced.

Returns:

  • (String, nil)

    the footnote identifier being referenced



57
# File 'lib/coradoc/core_model/footnote.rb', line 57

attribute :id, :string