Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/cli/src/commands/project/list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ async function resolveOrgsForAutoDetect(cwd: string): Promise<OrgResolution> {
/** Column definitions for the project table. */
const PROJECT_COLUMNS: Column<ProjectWithOrg>[] = [
{ header: "ORG", value: (p) => p.orgSlug || "" },
{ header: "PROJECT", value: (p) => p.slug },
{ header: "PROJECT", value: (p) => p.slug || "" },
{ header: "NAME", value: (p) => escapeMarkdownCell(p.name) },
{ header: "PLATFORM", value: (p) => p.platform || "" },
];
Expand Down
6 changes: 3 additions & 3 deletions packages/cli/src/lib/formatters/markdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -550,10 +550,10 @@ export function renderMarkdown(md: string): string {
// Parse and render to get structural formatting (headings, tables, lists),
// then strip ANSI codes. This produces human-readable output with aligned
// tables and proper heading emphasis, without ANSI escape sequences.
const tokens = marked.lexer(md);
const tokens = marked.lexer(md ?? "");
return stripAnsi(renderBlocks(tokens)).trimEnd();
}
const tokens = marked.lexer(md);
const tokens = marked.lexer(md ?? "");
return renderBlocks(tokens).trimEnd();
}

Expand All @@ -570,7 +570,7 @@ export function renderMarkdown(md: string): string {
* @returns Styled string (TTY) or plain text (non-TTY / plain mode)
*/
export function renderInlineMarkdown(md: string): string {
const tokens = marked.lexer(md);
const tokens = marked.lexer(md ?? "");
const rendered = renderInline(tokens.flatMap(flattenInline));
return isPlainOutput() ? stripAnsi(rendered) : rendered;
}
Loading