fix: add parameter HTMLParser to makeMarkdown

This commit is contained in:
Zhicheng WANG
2019-01-06 11:44:05 +08:00
committed by Zhicheng WANG
parent b35434fe6f
commit d1023c2e81
+3 -2
View File
@@ -296,11 +296,12 @@ declare namespace Showdown {
/**
* Converts an HTML string into a markdown string
*
*
* @param src The input text (HTML)
* @param [HTMLParser] A WHATWG DOM and HTML parser, such as JSDOM. If none is supplied, window.document will be used.
* @returns The output markdown
*/
makeMarkdown(src: string): string;
makeMarkdown(src: string, HTMLParser?: HTMLDocument): string;
/**
* Setting a "local" option only affects the specified Converter object.