html-to-md
Version:
A JS library for convert HTML<String> to markdown<String>, gzip 10kb
12 lines (11 loc) • 503 B
TypeScript
import Tag from '../Tag';
import { ParseOptions, TagOptions } from '../type';
declare class Code extends Tag {
constructor(str: string, tagName: string | undefined, options: TagOptions);
beforeMergeSpace(content: string): string;
parseValidSubTag(subTagStr: string, subTagName: string, options: ParseOptions): [string, any];
parseOnlyString(subTagStr: string): [string, any];
slim(content: string): string;
exec(prevGap?: string, endGap?: string): string;
}
export default Code;