chore: publish from main

This commit is contained in:
github-actions[bot]
2026-07-30 04:36:20 +00:00
parent 7a4a7683f5
commit 6212c7a01b
8 changed files with 651 additions and 23 deletions
+11
View File
@@ -0,0 +1,11 @@
export function inlineCode(value) {
const collapsed = String(value).replace(/\s+/g, " ").trim();
const content = collapsed.length > 80 ? `${collapsed.slice(0, 77)}...` : collapsed;
const longestBacktickRun = Math.max(0, ...Array.from(content.matchAll(/`+/g), (match) => match[0].length));
const fence = "`".repeat(longestBacktickRun + 1);
const pad = content.length === 0 || content.startsWith("`") || content.endsWith("`") ? " " : "";
// These values are rendered verbatim into Markdown bot comments; using a fence
// longer than any backtick run in the content prevents closing the code span.
return `${fence}${pad}${content}${pad}${fence}`;
}