UNPKG

smarkdown

Version:

Markdown parser, simplicity and extensibility.

25 lines (24 loc) 1.09 kB
import { EmptyObject } from './Interfaces'; export declare function escape(html: string, encode?: boolean): string; export declare function unescape(html: string): string; declare class Slugger { seen: EmptyObject; slug(value: string, isUnique?: boolean): string; } export declare const slugger: Slugger; export declare function rtrim(str: string, c: string, invert?: boolean): string; export declare function resolveUrl(base: string, href: string): string; export declare function cleanUrl(sanitize: boolean, base: string, href: string): string; export declare class ExtendRegexp { private source; private flags; constructor(regex: RegExp, flags?: string); setGroup(groupName: RegExp | string, groupRegexp: RegExp | string): this; getRegex(): RegExp; } export declare const noopRegex: RegExp; export declare function getBreakChar(regExp: RegExp): string; export declare function getRuleType(regExp: RegExp): string; export declare function isBlockRule(regExp: RegExp): boolean; export declare const blockCommentRegex: RegExp; export {};