*/
export function appendEscapedMarkdownInlineCode(text: string): string {
const longestBacktickRun = Math.max(0, ...(text.match(/`+/g) ?? []).map(m => m.length));
htmlContent.ts
const fence = '`'.repeat(longestBacktickRun + 1);
const needsSpace = text.startsWith('`') || text.endsWith('`');
const content = needsSpace ? ` ${text} ` : text;
return `${fence}${content}${fence}`;
}
export function escapeDoubleQuotes(input: string) {