Skip to main content

markdownifyToURL

Parses a markdown string to a valid URL.

Signature

markdownifyToURL(
markdown: string,
context?: Context,
placeholder?: string,
allowedDataMIMEs: string[]
): string

Parameters

NameTypeOptionalDescription
markdownstringNoSpecifies the markdown text to parse.
contextContextYesOptional context for the parser. This context is used when referencing variables.
placeholderstringYesSpecifies a string for empty variables.
allowedDataMIMEsstring[]YesSpecifies the MIMEs that are allowed as data URL.

Return value

Returns the URL.