gpt-researcher-ui
Version:
GPT Researcher frontend as a React component
22 lines (21 loc) • 1.06 kB
TypeScript
import { Compatible } from "vfile";
/**
* Adds target="_blank" and rel="noopener noreferrer" attributes to all links in HTML content
* @param htmlContent - The HTML content containing links
* @returns The processed HTML with target="_blank" added to all links
*/
export declare const addTargetBlankToLinks: (htmlContent: string) => string;
/**
* Fixes the list item paragraph issue in HTML content
* This specifically addresses the problem where numbered list items with bold text
* have an extra line break between the marker and content
* @param htmlContent - The HTML content with possible list formatting issues
* @returns The processed HTML with fixed list formatting
*/
export declare const fixListItemParagraphIssue: (htmlContent: string) => string;
/**
* Converts markdown to HTML with GitHub Flavored Markdown support and adds target="_blank" to links
* @param markdown - The markdown content to convert
* @returns Promise with the HTML content
*/
export declare const markdownToHtml: (markdown: Compatible | string) => Promise<string>;