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

Function buildFootnoteArray

baoyu-post-to-wechat/scripts/md/render.ts:169–177  ·  view source on GitHub ↗
(footnotes: [number, string, string][])

Source from the content-addressed store, hash-verified

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

Callers 1

buildFootnotesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected