MCPcopy Create free account
hub / github.com/SpaceZephyr/myskill / buildFootnoteArray

Function buildFootnoteArray

baoyu-markdown-to-html/scripts/md/render.ts:173–181  ·  view source on GitHub ↗
(footnotes: [number, string, string][])

Source from the content-addressed store, hash-verified

171}
172
173function buildFootnoteArray(footnotes: [number, string, string][]): string {
174 return footnotes
175 .map(([index, title, link]) =>
176 link === title
177 ? `<code style="font-size: 90%; opacity: 0.6;">[${index}]</code>: <i style="word-break: break-all">${title}</i><br/>`
178 : `<code style="font-size: 90%; opacity: 0.6;">[${index}]</code> ${title}: <i style="word-break: break-all">${link}</i><br/>`
179 )
180 .join("\n");
181}
182
183function transform(legend: string, text: string | null, title: string | null): string {
184 const options = legend.split("-");

Callers 1

buildFootnotesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected