UNPKG

@theia/core

Version:

Theia is a cloud & desktop IDE framework implemented in TypeScript.

15 lines 810 B
import { Disposable } from '../../common'; import { MarkdownString } from '../../common/markdown-rendering/markdown-string'; import { OpenerService } from '../opener-service'; /** * Wires up anchor clicks inside a rendered markdown element so that they are routed * through the {@link OpenerService} instead of relying on default browser navigation. * Honors {@link MarkdownString.isTrusted} for `command:` URIs. * * Also sets the `title` attribute on each anchor to its `href` (when no title is set) * so users can hover to see the link target. * * @returns a {@link Disposable} that removes the click listener. */ export declare function wireMarkdownLinkHandler(root: HTMLElement, source: MarkdownString, openerService: OpenerService): Disposable; //# sourceMappingURL=markdown-link-handler.d.ts.map