docs: simplify MCP section with clear stance and minimal example

- State upfront: pi does not support MCP
- Provide minimal working example (README + bash script)
- Show simple usage pattern
- Remove verbose explanations

fix(tui): don't show duplicate URL when link text equals href
This commit is contained in:
Mario Zechner 2025-11-12 23:00:27 +01:00
parent fda04484b9
commit 60e4fcf012
2 changed files with 38 additions and 24 deletions

View file

@ -307,7 +307,12 @@ export class Markdown implements Component {
case "link": {
const linkText = this.renderInlineTokens(token.tokens || []);
result += chalk.underline.blue(linkText) + chalk.gray(` (${token.href})`);
// If link text matches href, only show the link once
if (linkText === token.href) {
result += chalk.underline.blue(linkText);
} else {
result += chalk.underline.blue(linkText) + chalk.gray(` (${token.href})`);
}
break;
}