UNPKG

@mdfriday/foundry

Version:

The core engine of MDFriday. Convert Markdown and shortcodes into fully themed static sites – Hugo-style, powered by TypeScript.

21 lines (20 loc) 718 B
import { PageGraph } from '../entity/pagegraph'; import { LinkStrategy } from '../vo/path'; export interface LinkProcessorOptions { markdownLinkResolution: LinkStrategy; prettyLinks: boolean; openLinksInNewTab: boolean; lazyLoad: boolean; externalLinkIcon: boolean; baseURL?: string; } export declare class HtmlLinkProcessor { private graph; private options; constructor(graph: PageGraph, options?: Partial<LinkProcessorOptions>); processLinks(srcSlug: string, html: string): Promise<{ html: string; outgoingLinks: string[]; }>; } export declare function createHtmlLinkProcessor(graph: PageGraph, options?: Partial<LinkProcessorOptions>): HtmlLinkProcessor;