Class: Coradoc::Markdown::Footnote

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

Overview

Footnote model representing a footnote definition or reference.

Kramdown syntax:

  • Reference: ‘[^1]` or `[^name]`

  • Definition: ‘[^1]: Footnote text`

Examples:

Footnote definition

fn = Coradoc::Markdown::Footnote.new(
  id: "1",
  content: "This is a footnote"
)

Method Summary

Methods inherited from Base

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