(prefix string, node *Node)
| 341 | } |
| 342 | |
| 343 | func footnoteRef(prefix string, node *Node) []byte { |
| 344 | urlFrag := prefix + string(slugify(node.Destination)) |
| 345 | anchor := fmt.Sprintf(`<a href="#fn:%s">%d</a>`, urlFrag, node.NoteID) |
| 346 | return []byte(fmt.Sprintf(`<sup class="footnote-ref" id="fnref:%s">%s</sup>`, urlFrag, anchor)) |
| 347 | } |
| 348 | |
| 349 | func footnoteItem(prefix string, slug []byte) []byte { |
| 350 | return []byte(fmt.Sprintf(`<li id="fn:%s%s">`, prefix, slug)) |
no test coverage detected
searching dependent graphs…