From d1023c2e81c99e0c5dd540c600e1104e2db27266 Mon Sep 17 00:00:00 2001 From: Zhicheng WANG Date: Sun, 6 Jan 2019 11:36:19 +0800 Subject: [PATCH] fix: add parameter `HTMLParser` to makeMarkdown --- types/showdown/index.d.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/types/showdown/index.d.ts b/types/showdown/index.d.ts index 21075fd6c7..f98c2c4692 100644 --- a/types/showdown/index.d.ts +++ b/types/showdown/index.d.ts @@ -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.