Skip to content

Commit

Permalink
chore: update markdown type definition
Browse files Browse the repository at this point in the history
  • Loading branch information
cossssmin committed Aug 29, 2024
1 parent daea021 commit 9dd5708
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,11 @@ declare namespace MaizzleFramework {
*
* @param {string} input The Markdown string to compile.
* @param {MarkdownConfig} [options] A configuration object for the Markdown compiler.
* @returns {string} The compiled HTML string.
* @see https://maizzle.com/docs/transformers/markdown
* @param {PostHTMLConfig} [posthtmlOptions] A configuration object for PostHTML.
* @returns {Promise<string>} The compiled HTML string.
* @see https://maizzle.com/docs/markdown#api
*/
function markdown(input: string, options?: MarkdownConfig): string;
function markdown(input: string, options?: MarkdownConfig, posthtmlOptions?: PostHTMLConfig): Promise<string>;

/**
* Prevent widow words inside a tag by adding a `&nbsp;` between its last two words.
Expand Down

0 comments on commit 9dd5708

Please sign in to comment.