mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-11-29 09:41:45 +00:00
fix: add parameter HTMLParser to makeMarkdown
This commit is contained in:
committed by
Zhicheng WANG
parent
b35434fe6f
commit
d1023c2e81
Vendored
+3
-2
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user