error);
                return `<pre><code>${content}</code></pre>`;
            }
        }

        function displayContent(content) {
            try {
                contentEl.innerHTML = renderMarkdown(content);
                hideLoading();
                extractRepositories(content);
            } catch (error) {
                console.error('Display error:', error);
                showError('Failed to render content');
            }
        }

        // --- Search Functions ---
        functio