NewFootnotes creates and returns a new `Footnotes` instance.
()
| 13 | |
| 14 | // NewFootnotes creates and returns a new `Footnotes` instance. |
| 15 | func NewFootnotes() *Footnotes { |
| 16 | return &Footnotes{ |
| 17 | indexes: make(map[string]int), |
| 18 | } |
| 19 | } |
| 20 | |
| 21 | // CreateCitation adds a footnote with the specified text and returns |
| 22 | // the string that should be used to refer to it (e.g., "[2]"). If |