<%*
const file = tp.file.find_tfile(tp.file.path(true));
const refCode = Math.floor(Math.random() * 9000000000000000) + 1000000000000000;
await app.fileManager.processFrontMatter(file, (fm) => {
fm["reference code"] = refCode;
});
app._refCode = refCode;
%>
<a href="mailto:
[email protected]?subject=Revision:%20<% tp.file.folder() %>%2F<% tp.file.title %>%20-%20<% app._refCode %>" style="border:1px solid #555; padding:4px 12px; border-radius:4px; color:#a89ee8; text-decoration:none; font-size:0.9em; background-color:#2a2a2a;">📩 Submit a Revision/Addition</a>